Ignore:
Timestamp:
02/04/04 15:03:44 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MPedCalcPedRun.cc

    r3005 r3015  
    124124  fNumPixels        = 0;
    125125  fNumSamplesTot    = 0;
    126   fUseHists         = kFALSE;
    127126 
    128127  fRawEvt    = NULL;
     
    160159
    161160    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     }
    168161
    169162    fNumSamplesTot=0;
     
    207200    // the other one
    208201    fNumHiGainSamples = runheader->GetNumSamplesHiGain() & ~1;
    209 
    210     if (fUseHists)
    211       fPedestals->InitUseHists();
    212202
    213203    return kTRUE;
     
    260250        fSumx2[idx] += msum*msum;
    261251
    262         if (fUseHists)
    263           {
    264             MExtractedSignalPix &sig =  (*fSignals)[idx];           
    265             const Float_t signal = sig.GetExtractedSignalHiGain();
    266             (*fPedestals)[idx].FillHists(signal);
    267           }
    268252    }
    269253   
     
    290274  while (pixel.Next())
    291275    {
    292       const UInt_t pixid = pixel.GetPixelId();
     276      const Int_t pixid = pixel.GetPixelId();
    293277     
    294278      const Float_t sum  = fSumx.At(pixid);
     
    307291      (*fPedestals)[pixid].Set(higainped, higainrms);
    308292
    309       if (fUseHists)
    310         (*fPedestals)[pixid].FitCharge();
    311      
    312293    }
    313294 
    314   fPedestals->SetNumTotSlices(fNumSamplesTot);
    315 
    316   if (fUseHists)
    317     fPedestals->SetNumExtractSlices(fSignals->GetNumUsedHiGainFADCSlices());
     295  fPedestals->SetTotalEntries(fNumSamplesTot);
    318296
    319297  return kTRUE;
Note: See TracChangeset for help on using the changeset viewer.