Changeset 3015 for trunk/MagicSoft/Mars/manalysis/MPedCalcPedRun.cc
- Timestamp:
- 02/04/04 15:03:44 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MPedCalcPedRun.cc
r3005 r3015 124 124 fNumPixels = 0; 125 125 fNumSamplesTot = 0; 126 fUseHists = kFALSE;127 126 128 127 fRawEvt = NULL; … … 160 159 161 160 fSignals = (MExtractedSignalCam*)pList->FindObject("MExtractedSignalCam"); 162 163 if (!fSignals && fUseHists)164 {165 *fLog << warn << "Cannot find MExtractedSignalCam... will not use histograms!" << endl;166 fUseHists = kFALSE;167 }168 161 169 162 fNumSamplesTot=0; … … 207 200 // the other one 208 201 fNumHiGainSamples = runheader->GetNumSamplesHiGain() & ~1; 209 210 if (fUseHists)211 fPedestals->InitUseHists();212 202 213 203 return kTRUE; … … 260 250 fSumx2[idx] += msum*msum; 261 251 262 if (fUseHists)263 {264 MExtractedSignalPix &sig = (*fSignals)[idx];265 const Float_t signal = sig.GetExtractedSignalHiGain();266 (*fPedestals)[idx].FillHists(signal);267 }268 252 } 269 253 … … 290 274 while (pixel.Next()) 291 275 { 292 const UInt_t pixid = pixel.GetPixelId();276 const Int_t pixid = pixel.GetPixelId(); 293 277 294 278 const Float_t sum = fSumx.At(pixid); … … 307 291 (*fPedestals)[pixid].Set(higainped, higainrms); 308 292 309 if (fUseHists)310 (*fPedestals)[pixid].FitCharge();311 312 293 } 313 294 314 fPedestals->SetNumTotSlices(fNumSamplesTot); 315 316 if (fUseHists) 317 fPedestals->SetNumExtractSlices(fSignals->GetNumUsedHiGainFADCSlices()); 295 fPedestals->SetTotalEntries(fNumSamplesTot); 318 296 319 297 return kTRUE;
Note:
See TracChangeset
for help on using the changeset viewer.