Ignore:
Timestamp:
02/23/04 22:43:22 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mcalib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MExtractBlindPixel.cc

    r3268 r3270  
    186186      *fLog << warn << "WARNING - saturation occurred in the Blind Pixel " << endl;
    187187
    188     //
    189     // catch the pointer to the event, because MHCalibrationChargeBlindPix will need it later
    190     //
    191     fPixelIter = &pixel;
    192 
    193188    fBlindPixel->SetReadyToSave();
    194189
     
    203198    if (&pedpix)
    204199    {
    205          fPed       = pedpix.GetPedestal()   * fNumSamples;
    206          fPedErr    = pedpix.GetPedestalRms()* fNumSamples / TMath::Sqrt((Float_t)fPedestals->GetTotalEntries());
    207          fPedRms    = pedpix.GetPedestalRms()* TMath::Sqrt((Float_t)fNumSamples);
    208          fPedRmsErr = fPedErr/2.;
     200         fBlindPixel->SetPed      ( pedpix.GetPedestal()   * fNumSamples );
     201         fBlindPixel->SetPedErr   ( pedpix.GetPedestalRms()* fNumSamples / TMath::Sqrt((Float_t)fPedestals->GetTotalEntries()) );
     202         fBlindPixel->SetPedRms   ( pedpix.GetPedestalRms()* TMath::Sqrt((Float_t)fNumSamples) );
     203         fBlindPixel->SetPedRmsErr( fBlindPixel->GetPedErr()/2. );
    209204    }
    210205
  • trunk/MagicSoft/Mars/mcalib/MExtractBlindPixel.h

    r3268 r3270  
    3333  MRawEvtData         *fRawEvt;       // raw event data (time slices)
    3434  MRawRunHeader       *fRunHeader;    // RunHeader information
    35   MRawEvtPixelIter    *fPixelIter;    // pointer to the MRawEvt information
    3635  MPedestalCam        *fPedestals;    // pointer to the pedestal information
    3736 
     
    4342
    4443  UInt_t  fBlindPixelIdx;
    45 
    46   Float_t fPed;
    47   Float_t fPedErr;
    48   Float_t fPedRms;
    49   Float_t fPedRmsErr;
    50 
    5144  Int_t  PreProcess(MParList *pList);
    5245  Int_t  Process();
     
    5851  MExtractBlindPixel(const char *name=NULL, const char *title=NULL);
    5952
    60   const MRawEvtPixelIter *GetPixelIter()    const { return fPixelIter; }
    61 
    6253  // Setters
    6354  void SetRange(const Byte_t first=fgFirst, const Byte_t last=fgLast);
    6455  void SetSaturationLimit(const Byte_t lim=fgSaturationLimit) { fSaturationLimit = lim; }
    6556  void SetBlindPixelIdx(  const UInt_t idx=fgBlindPixelIdx  ) { fBlindPixelIdx   = idx; } 
    66 
    67   Float_t GetPed()       const { return fPed;       }
    68   Float_t GetPedErr()    const { return fPedErr;    }
    69   Float_t GetPedRms()    const { return fPedRms;    }
    70   Float_t GetPedRmsErr() const { return fPedRmsErr; }
    7157
    7258  ClassDef(MExtractBlindPixel, 0) // Task to fill the Extracted BlindPixel Containers from raw data
  • trunk/MagicSoft/Mars/mcalib/MExtractedSignalBlindPixel.cc

    r3198 r3270  
    6969  fExtractedSignal    = gkSignalInitializer;
    7070
     71  fPed                = gkSignalInitializer;;     
     72  fPedErr             = gkSignalInitializer;;   
     73  fPedRms             = gkSignalInitializer;;   
     74  fPedRmsErr          = gkSignalInitializer;; 
     75 
    7176  fNumSaturated       = 0;
    7277}
Note: See TracChangeset for help on using the changeset viewer.