source: trunk/MagicSoft/Mars/mfilter/MFCosmics.h@ 4949

Last change on this file since 4949 was 3262, checked in by gaug, 21 years ago
*** empty log message ***
File size: 1.2 KB
Line 
1#ifndef MARS_MFCosmics
2#define MARS_MFCosmics
3
4#ifndef MARS_MFilter
5#include "MFilter.h"
6#endif
7
8class MRawEvtData;
9
10class MPedestalCam;
11class MExtractedSignalCam;
12
13class MFCosmics : public MFilter
14{
15private:
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
36public:
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.