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