Changeset 3270
- Timestamp:
- 02/23/04 22:43:22 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3269 r3270 12 12 13 13 * mcalib/MExtractedSignalBlindPixel.h 14 * mcalib/MExtractBlindPixel.[h,cc] 14 15 - included storage of pedestal 15 16 -
trunk/MagicSoft/Mars/mcalib/MExtractBlindPixel.cc
r3268 r3270 186 186 *fLog << warn << "WARNING - saturation occurred in the Blind Pixel " << endl; 187 187 188 //189 // catch the pointer to the event, because MHCalibrationChargeBlindPix will need it later190 //191 fPixelIter = &pixel;192 193 188 fBlindPixel->SetReadyToSave(); 194 189 … … 203 198 if (&pedpix) 204 199 { 205 f Ped = pedpix.GetPedestal() * fNumSamples;206 f PedErr = pedpix.GetPedestalRms()* fNumSamples / TMath::Sqrt((Float_t)fPedestals->GetTotalEntries());207 f PedRms = pedpix.GetPedestalRms()* TMath::Sqrt((Float_t)fNumSamples);208 f PedRmsErr = 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. ); 209 204 } 210 205 -
trunk/MagicSoft/Mars/mcalib/MExtractBlindPixel.h
r3268 r3270 33 33 MRawEvtData *fRawEvt; // raw event data (time slices) 34 34 MRawRunHeader *fRunHeader; // RunHeader information 35 MRawEvtPixelIter *fPixelIter; // pointer to the MRawEvt information36 35 MPedestalCam *fPedestals; // pointer to the pedestal information 37 36 … … 43 42 44 43 UInt_t fBlindPixelIdx; 45 46 Float_t fPed;47 Float_t fPedErr;48 Float_t fPedRms;49 Float_t fPedRmsErr;50 51 44 Int_t PreProcess(MParList *pList); 52 45 Int_t Process(); … … 58 51 MExtractBlindPixel(const char *name=NULL, const char *title=NULL); 59 52 60 const MRawEvtPixelIter *GetPixelIter() const { return fPixelIter; }61 62 53 // Setters 63 54 void SetRange(const Byte_t first=fgFirst, const Byte_t last=fgLast); 64 55 void SetSaturationLimit(const Byte_t lim=fgSaturationLimit) { fSaturationLimit = lim; } 65 56 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; }71 57 72 58 ClassDef(MExtractBlindPixel, 0) // Task to fill the Extracted BlindPixel Containers from raw data -
trunk/MagicSoft/Mars/mcalib/MExtractedSignalBlindPixel.cc
r3198 r3270 69 69 fExtractedSignal = gkSignalInitializer; 70 70 71 fPed = gkSignalInitializer;; 72 fPedErr = gkSignalInitializer;; 73 fPedRms = gkSignalInitializer;; 74 fPedRmsErr = gkSignalInitializer;; 75 71 76 fNumSaturated = 0; 72 77 }
Note:
See TracChangeset
for help on using the changeset viewer.