Changeset 3317 for trunk/MagicSoft/Mars/mcalib/MHCalibrationRelTimeCam.cc
- Timestamp:
- 02/26/04 04:21:51 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MHCalibrationRelTimeCam.cc
r3181 r3317 39 39 #include "MHCalibrationRelTimePix.h" 40 40 41 #include "MArrivalTime.h" 41 #include "MArrivalTimeCam.h" 42 #include "MArrivalTimePix.h" 42 43 43 44 ClassImp(MHCalibrationRelTimeCam); … … 147 148 { 148 149 149 MArrivalTime *arrtime = (MArrivalTime*)par;150 MArrivalTimeCam *arrtime = (MArrivalTimeCam*)par; 150 151 if (!arrtime) 151 152 { … … 175 176 } 176 177 178 const MArrivalTimePix &refpix = (*arrtime)[1]; 179 const Float_t reftime = refpix.IsLoGainUsed() ? refpix.GetArrivalTimeLoGain() : refpix.GetArrivalTimeHiGain(); 180 177 181 for (Int_t i=0; i<n; i++) 178 182 { 179 180 const Float_t reltime = (*arrtime)[i] - (*arrtime)[1]; 181 182 183 hist.FillHistAndArray(reltime);183 const MArrivalTimePix &pix = (*arrtime)[i]; 184 const Float_t time = pix.IsLoGainUsed() ? pix.GetArrivalTimeLoGain() : pix.GetArrivalTimeHiGain(); 185 186 MHCalibrationRelTimePix &hist = (*this)[i]; 187 hist.FillHistAndArray(time - reftime); 184 188 } 185 189
Note:
See TracChangeset
for help on using the changeset viewer.