source: trunk/MagicSoft/Mars/mcalib/MExtractBlindPixel.h@ 3268

Last change on this file since 3268 was 3268, checked in by gaug, 21 years ago
*** empty log message ***
File size: 2.5 KB
Line 
1#ifndef MARS_MExtractBlindPixel
2#define MARS_MExtractBlindPixel
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MExtractBlindPixel //
7// //
8// Integrates the time slices of the all pixels of a calibration event //
9// and substract the pedestal value //
10// //
11/////////////////////////////////////////////////////////////////////////////
12
13#ifndef MARS_MTask
14#include "MTask.h"
15#endif
16
17class MRawEvtData;
18class MRawRunHeader;
19class MRawEvtPixelIter;
20class MPedestalCam;
21class MExtractedSignalBlindPixel;
22class MExtractBlindPixel : public MTask
23{
24private:
25
26 static const UInt_t fgBlindPixelIdx;
27 static const Byte_t fgSaturationLimit;
28 static const Byte_t fgFirst;
29 static const Byte_t fgLast;
30
31 MExtractedSignalBlindPixel *fBlindPixel; // Extracted signal of the Blind Pixel
32
33 MRawEvtData *fRawEvt; // raw event data (time slices)
34 MRawRunHeader *fRunHeader; // RunHeader information
35 MRawEvtPixelIter *fPixelIter; // pointer to the MRawEvt information
36 MPedestalCam *fPedestals; // pointer to the pedestal information
37
38 Byte_t fFirst;
39 Byte_t fLast;
40 Byte_t fNumSamples;
41 Float_t fSqrtSamples;
42 Byte_t fSaturationLimit;
43
44 UInt_t fBlindPixelIdx;
45
46 Float_t fPed;
47 Float_t fPedErr;
48 Float_t fPedRms;
49 Float_t fPedRmsErr;
50
51 Int_t PreProcess(MParList *pList);
52 Int_t Process();
53 Int_t PostProcess();
54 void StreamPrimitive(ofstream &out) const;
55
56public:
57
58 MExtractBlindPixel(const char *name=NULL, const char *title=NULL);
59
60 const MRawEvtPixelIter *GetPixelIter() const { return fPixelIter; }
61
62 // Setters
63 void SetRange(const Byte_t first=fgFirst, const Byte_t last=fgLast);
64 void SetSaturationLimit(const Byte_t lim=fgSaturationLimit) { fSaturationLimit = lim; }
65 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
72 ClassDef(MExtractBlindPixel, 0) // Task to fill the Extracted BlindPixel Containers from raw data
73};
74
75#endif
76
Note: See TracBrowser for help on using the repository browser.