Changeset 7444 for trunk/MagicSoft/Mars/mcamera/MCameraTH.cc
- Timestamp:
- 12/06/05 14:24:59 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcamera/MCameraTH.cc
r7430 r7444 53 53 // -------------------------------------------------------------------------- 54 54 // 55 // Print the d c currents55 // Print the discriminator thresholds 56 56 // 57 57 void MCameraTH::Print(Option_t *) const … … 59 59 *fLog << all << underline << GetDescriptor() << endl; 60 60 for (int i=0; i<fTH.GetSize(); i++) 61 *fLog << " " << GetThreshold(i);61 *fLog << " " << (int)fTH[i]; 62 62 *fLog << endl; 63 63 } … … 65 65 // -------------------------------------------------------------------------- 66 66 // 67 // Return the minimum dc current67 // Return the discriminator thresholds 68 68 // 69 Float_t MCameraTH::GetMin() const69 Byte_t MCameraTH::GetMin() const 70 70 { 71 Float_t val = (UInt_t)-1;71 Byte_t val = 0xff; 72 72 for (int i=0; i<fTH.GetSize(); i++) 73 val = TMath::Min(val, GetThreshold(i));73 val = TMath::Min(val, fTH[i]); 74 74 return val; 75 75 } … … 77 77 // -------------------------------------------------------------------------- 78 78 // 79 // Return the maximum dc current79 // Return the discriminator thresholds 80 80 // 81 Float_t MCameraTH::GetMax() const81 Byte_t MCameraTH::GetMax() const 82 82 { 83 Float_t val = 0;83 Byte_t val = 0; 84 84 for (int i=0; i<fTH.GetSize(); i++) 85 val = TMath::Max(val, GetThreshold(i));85 val = TMath::Max(val, fTH[i]); 86 86 return val; 87 87 }
Note:
See TracChangeset
for help on using the changeset viewer.