Line | |
---|
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 | TString fOutputPath;
|
---|
21 |
|
---|
22 | MRunIter *fRuns;
|
---|
23 | MExtractor *fExtractor; // Signal extractor, used to find the nr. of used FADC slices
|
---|
24 |
|
---|
25 | MPedestalCam fPedestalCam;
|
---|
26 | MBadPixelsCam fBadPixels;
|
---|
27 |
|
---|
28 | Bool_t fDataCheck; // Flag if the data check is run on raw data
|
---|
29 |
|
---|
30 | Bool_t ReadPedestalCam();
|
---|
31 | Bool_t WriteResult();
|
---|
32 |
|
---|
33 | void DisplayResult(MParList &plist);
|
---|
34 |
|
---|
35 | public:
|
---|
36 |
|
---|
37 | MJPedestal(const char *name=NULL, const char *title=NULL);
|
---|
38 |
|
---|
39 | MPedestalCam &GetPedestalCam() { return fPedestalCam; }
|
---|
40 | const MBadPixelsCam &GetBadPixels() const { return fBadPixels; }
|
---|
41 |
|
---|
42 | const char* GetOutputFile() const;
|
---|
43 |
|
---|
44 | Bool_t Process();
|
---|
45 | Bool_t ProcessFile();
|
---|
46 |
|
---|
47 | void SetBadPixels ( const MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
|
---|
48 | void SetDataCheck ( const Bool_t b=kTRUE ) { fDataCheck = b; }
|
---|
49 | void SetExtractor ( MExtractor* ext ) { fExtractor = ext; }
|
---|
50 | void SetInput ( MRunIter *iter ) { fRuns = iter; }
|
---|
51 | void SetOutputPath( const char *path="." );
|
---|
52 |
|
---|
53 | ClassDef(MJPedestal, 0) // Tool to create a pedestal file (MPedestalCam)
|
---|
54 | };
|
---|
55 |
|
---|
56 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.