source: trunk/Mars/mfilter/MFCosmics.h@ 17200

Last change on this file since 17200 was 7046, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.8 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 MBadPixelsCam;
12class MExtractedSignalCam;
13
14class MFCosmics : public MFilter
15{
16private:
17 static const TString fgNamePedestalCam;
18
19 MPedestalCam *fPedestals; // Pedestals of all pixels in the camera
20 MExtractedSignalCam *fSignals; // Calibration events of all pixels in the camera
21 MBadPixelsCam *fBadPixels; // Bad pixel used for exclusions
22
23 MRawEvtData *fRawEvt; // raw event data (time slices)
24
25 TString fNamePedestalCam;
26
27 Int_t fCut[2];
28 Bool_t fResult;
29
30 Float_t fMaxEmptyPixels; // Maximum number of empty pixels before declaring event as cosmic
31 Float_t fSqrtHiGainSamples; // Square root of the number of used Hi-Gain Samples
32
33 Float_t fMinAcceptedFraction; // return error if exceeded
34 Float_t fMaxAcceptedFraction; // return error if exceeded
35
36 // MFCosmics
37 Bool_t CosmicsRejection() const;
38
39 // MTask
40 Bool_t ReInit(MParList *pList);
41 Int_t PreProcess(MParList *pList);
42 Int_t Process();
43 Int_t PostProcess();
44 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE);
45
46 // MFilter
47 Bool_t IsExpressionTrue() const { return fResult; }
48
49public:
50 MFCosmics(const char *name=NULL, const char *title=NULL);
51
52 void SetMaxEmptyPixels(const Float_t n) { fMaxEmptyPixels = n; }
53 Float_t GetMaxEmptyPixels() const { return fMaxEmptyPixels; }
54
55 void SetMaxAcceptedFraction(const Float_t n) { fMaxAcceptedFraction = n; }
56 void SetMinAcceptedFraction(const Float_t n) { fMinAcceptedFraction = n; }
57
58 void SetNamePedestalCam(const char *name) { fNamePedestalCam = name; }
59
60 ClassDef(MFCosmics, 0) // Filter to perform a cosmics rejection
61};
62
63#endif
64
65
66
Note: See TracBrowser for help on using the repository browser.