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

Last change on this file since 6910 was 5803, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.3 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 static const TString fgNamePedestalCam;
17
18 MPedestalCam *fPedestals; // Pedestals of all pixels in the camera
19 MExtractedSignalCam *fSignals; // Calibration events of all pixels in the camera
20
21 MRawEvtData *fRawEvt; // raw event data (time slices)
22
23 TString fNamePedestalCam;
24
25 Int_t fCut[2];
26 Bool_t fResult;
27
28 Float_t fMaxEmptyPixels; // Maximum number of empty pixels before declaring event as cosmic
29 Float_t fSqrtHiGainSamples; // Square root of the number of used Hi-Gain Samples
30
31 Bool_t ReInit(MParList *pList);
32 Int_t PreProcess(MParList *pList);
33 Int_t Process();
34 Int_t PostProcess();
35
36 Bool_t CosmicsRejection() const;
37
38 Bool_t IsExpressionTrue() const { return fResult; }
39
40public:
41 MFCosmics(const char *name=NULL, const char *title=NULL);
42
43 void SetMaxEmptyPixels(const Float_t n) { fMaxEmptyPixels = n; }
44 Float_t GetMaxEmptyPixels() const { return fMaxEmptyPixels; }
45
46 void SetNamePedestalCam(const char *name) { fNamePedestalCam = name; }
47
48 ClassDef(MFCosmics, 0) // Filter to perform a cosmics rejection
49};
50
51#endif
52
53
54
Note: See TracBrowser for help on using the repository browser.