1 | #ifndef MARS_MJPedestal
|
---|
2 | #define MARS_MJPedestal
|
---|
3 |
|
---|
4 | #ifndef MARS_MPedestalCam
|
---|
5 | #include "MPedestalCam.h"
|
---|
6 | #endif
|
---|
7 | #ifndef MARS_MBadPixelsCam
|
---|
8 | #include "MBadPixelsCam.h"
|
---|
9 | #endif
|
---|
10 |
|
---|
11 | class TCanvas;
|
---|
12 | class MParList;
|
---|
13 | class MRunIter;
|
---|
14 | class MHCamera;
|
---|
15 | class MExtractor;
|
---|
16 | class MJPedestal : public MParContainer
|
---|
17 | {
|
---|
18 | private:
|
---|
19 |
|
---|
20 | static const Double_t fgPedestalMin;
|
---|
21 | static const Double_t fgPedestalMax;
|
---|
22 | static const Double_t fgPedRmsMin;
|
---|
23 | static const Double_t fgPedRmsMax;
|
---|
24 |
|
---|
25 | TString fOutputPath;
|
---|
26 |
|
---|
27 | MRunIter *fRuns;
|
---|
28 | MExtractor *fExtractor; // Signal extractor, used to find the nr. of used FADC slices
|
---|
29 |
|
---|
30 | MPedestalCam fPedestalCam;
|
---|
31 | MBadPixelsCam fBadPixels;
|
---|
32 |
|
---|
33 | Bool_t fDataCheck; // Flag if the data check is run on raw data
|
---|
34 |
|
---|
35 | Bool_t ReadPedestalCam();
|
---|
36 | Bool_t WriteResult();
|
---|
37 |
|
---|
38 | void DisplayResult(MParList &plist);
|
---|
39 |
|
---|
40 | public:
|
---|
41 |
|
---|
42 | MJPedestal(const char *name=NULL, const char *title=NULL);
|
---|
43 |
|
---|
44 | MPedestalCam &GetPedestalCam() { return fPedestalCam; }
|
---|
45 | const MBadPixelsCam &GetBadPixels() const { return fBadPixels; }
|
---|
46 |
|
---|
47 | const char* GetOutputFile() const;
|
---|
48 | const Bool_t IsDataCheck() const { return fDataCheck; }
|
---|
49 |
|
---|
50 | Bool_t Process();
|
---|
51 | Bool_t ProcessFile();
|
---|
52 |
|
---|
53 | void SetBadPixels ( const MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
|
---|
54 | void SetDataCheck ( const Bool_t b=kTRUE ) { fDataCheck = b; }
|
---|
55 | void SetExtractor ( MExtractor* ext ) { fExtractor = ext; }
|
---|
56 | void SetInput ( MRunIter *iter ) { fRuns = iter; }
|
---|
57 | void SetOutputPath( const char *path="." );
|
---|
58 |
|
---|
59 | ClassDef(MJPedestal, 0) // Tool to create a pedestal file (MPedestalCam)
|
---|
60 | };
|
---|
61 |
|
---|
62 | #endif
|
---|