Line | |
---|
1 | #ifndef MARS_MFCosmics
|
---|
2 | #define MARS_MFCosmics
|
---|
3 |
|
---|
4 | #ifndef MARS_MFilter
|
---|
5 | #include "MFilter.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MRawEvtData;
|
---|
9 |
|
---|
10 | class MPedestalCam;
|
---|
11 | class MExtractedSignalCam;
|
---|
12 |
|
---|
13 | class MFCosmics : public MFilter
|
---|
14 | {
|
---|
15 | private:
|
---|
16 | MPedestalCam *fPedestals; // Pedestals of all pixels in the camera
|
---|
17 | MExtractedSignalCam *fSignals; // Calibration events of all pixels in the camera
|
---|
18 |
|
---|
19 | MRawEvtData *fRawEvt; // raw event data (time slices)
|
---|
20 |
|
---|
21 | Int_t fCut[2];
|
---|
22 | Bool_t fResult;
|
---|
23 |
|
---|
24 | Float_t fMaxEmptyPixels; // Maximum number of empty pixels before declaring event as cosmic
|
---|
25 | Float_t fSqrtHiGainSamples; // Square root of the number of used Hi-Gain Samples
|
---|
26 |
|
---|
27 | Bool_t ReInit(MParList *pList);
|
---|
28 | Int_t PreProcess(MParList *pList);
|
---|
29 | Int_t Process();
|
---|
30 | Int_t PostProcess();
|
---|
31 |
|
---|
32 | Bool_t CosmicsRejection() const;
|
---|
33 |
|
---|
34 | Bool_t IsExpressionTrue() const { return fResult; }
|
---|
35 |
|
---|
36 | public:
|
---|
37 | MFCosmics(const char *name=NULL, const char *title=NULL);
|
---|
38 |
|
---|
39 | void SetMaxEmptyPixels(const Float_t n) { fMaxEmptyPixels = n; }
|
---|
40 | Float_t GetMaxEmptyPixels() const { return fMaxEmptyPixels; }
|
---|
41 |
|
---|
42 | ClassDef(MFCosmics, 0) // Filter to perform a cosmics rejection
|
---|
43 | };
|
---|
44 |
|
---|
45 | #endif
|
---|
46 |
|
---|
47 |
|
---|
48 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.