Changeset 2540 for trunk/MagicSoft/Mars
- Timestamp:
- 11/20/03 00:39:37 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2537 r2540 12 12 * manalysis/MCalibrationCam.cc: 13 13 - function GetPixelContent enlarged 14 15 * manalysis/MCalibrationCalc: 16 - function ReInit added like in MPedCalcPedRun 14 17 15 18 -
trunk/MagicSoft/Mars/manalysis/MCalibrationCalc.cc
r2525 r2540 123 123 // 124 124 // The PreProcess searches for the following input containers: 125 // - MRawRunHeader126 125 // - MRawEvtData 127 126 // - MPedestalCam … … 139 138 fOverFlow = 0; 140 139 fNrEvents = 0; 141 142 fRunHeader = (MRawRunHeader*)pList->FindObject("MRawRunHeader");143 if (!fRunHeader)144 {145 *fLog << dbginf << "MRawRunHeader not found... aborting." << endl;146 return kFALSE;147 }148 140 149 141 fRawEvt = (MRawEvtData*)pList->FindObject("MRawEvtData"); … … 211 203 } 212 204 205 206 // -------------------------------------------------------------------------- 207 // 208 // The ReInit searches for the following input containers: 209 // - MRawRunHeader 210 // 211 Bool_t MCalibrationCalc::ReInit(MParList *pList ) 212 { 213 214 fRunHeader = (MRawRunHeader*)pList->FindObject("MRawRunHeader"); 215 if (!fRunHeader) 216 { 217 *fLog << dbginf << "MRawRunHeader not found... aborting." << endl; 218 return kFALSE; 219 } 220 221 fNumHiGainSamples = fRunHeader->GetNumSamplesHiGain(); 222 fNumLoGainSamples = fRunHeader->GetNumSamplesLoGain(); 223 224 return kTRUE; 225 226 } 227 228 213 229 // -------------------------------------------------------------------------- 214 230 // … … 282 298 // Assume pedestals per time slice ==> multiply with number of slices 283 299 // 284 pedes *= (sat ? f RawEvt->GetNumLoGainSamples() : fRawEvt->GetNumHiGainSamples());300 pedes *= (sat ? fNumLoGainSamples : fNumHiGainSamples ); 285 301 286 302 Float_t rsum = (float)sum - pedes; -
trunk/MagicSoft/Mars/manalysis/MCalibrationCalc.h
r2525 r2540 38 38 Int_t fOverFlow; // Number of events with saturated Low Gain 39 39 40 Byte_t fNumHiGainSamples; 41 Byte_t fNumLoGainSamples; 42 40 43 Byte_t fFlags; // Flag for the fits used 41 44 45 42 46 enum 43 47 { … … 55 59 PulserColor_t fColor; 56 60 61 Bool_t ReInit(MParList *pList); 57 62 Int_t PreProcess(MParList *pList); 58 63 Int_t Process();
Note:
See TracChangeset
for help on using the changeset viewer.