1 | #ifndef MARS_MJExtractCalibTest
|
---|
2 | #define MARS_MJExtractCalibTest
|
---|
3 |
|
---|
4 | #ifndef MARS_MHCalibrationTestCam
|
---|
5 | #include "MHCalibrationTestCam.h"
|
---|
6 | #endif
|
---|
7 | #ifndef MARS_MHCalibrationTestTimeCam
|
---|
8 | #include "MHCalibrationTestTimeCam.h"
|
---|
9 | #endif
|
---|
10 | #ifndef MARS_MPedPhotCam
|
---|
11 | #include "MPedPhotCam.h"
|
---|
12 | #endif
|
---|
13 | #ifndef MARS_MBadPixelsCam
|
---|
14 | #include "MBadPixelsCam.h"
|
---|
15 | #endif
|
---|
16 |
|
---|
17 | class MRunIter;
|
---|
18 | class MParList;
|
---|
19 | class MPedestalCam;
|
---|
20 | class MCalibrationRelTimeCam;
|
---|
21 | class MCalibrationChargeCam;
|
---|
22 | class MCalibrationQECam;
|
---|
23 | class MExtractor;
|
---|
24 | class MExtractTime;
|
---|
25 | class MJExtractCalibTest : public MParContainer
|
---|
26 | {
|
---|
27 | private:
|
---|
28 |
|
---|
29 | TString fOutputPath;
|
---|
30 | Bool_t fUseCosmicsFilter;
|
---|
31 |
|
---|
32 | MRunIter *fRuns; // Data files
|
---|
33 | MExtractor *fExtractor; // Signal extractor
|
---|
34 | MExtractTime *fTimeExtractor; // Arrival time extractor
|
---|
35 |
|
---|
36 | MBadPixelsCam fBadPixels;
|
---|
37 | MHCalibrationTestCam fTestCam;
|
---|
38 | MHCalibrationTestTimeCam fTestTimeCam;
|
---|
39 | MPedPhotCam fPedPhotCam;
|
---|
40 |
|
---|
41 | Bool_t ReadPedPhotCam();
|
---|
42 |
|
---|
43 | void DisplayResult(MParList &plist);
|
---|
44 | void DisplayResultT(MParList &plist);
|
---|
45 |
|
---|
46 | Bool_t WriteResultD();
|
---|
47 | Bool_t WriteResultT();
|
---|
48 |
|
---|
49 | Bool_t ProcessFileD(MPedestalCam &pedcam, MCalibrationChargeCam &calcam, MCalibrationQECam &qecam);
|
---|
50 | Bool_t ProcessFileT(MPedestalCam &pedcam, MCalibrationRelTimeCam &relcam);
|
---|
51 |
|
---|
52 | public:
|
---|
53 | MJExtractCalibTest(const char *name=NULL, const char *title=NULL);
|
---|
54 |
|
---|
55 | void SetInput(MRunIter *iter) { fRuns = iter; }
|
---|
56 | void SetOutputPath(const char *path=".");
|
---|
57 |
|
---|
58 | const char* GetOutputFile() const;
|
---|
59 |
|
---|
60 | MHCalibrationTestCam &GetTestCam() { return fTestCam; }
|
---|
61 | MHCalibrationTestTimeCam &GetTestTimeCam() { return fTestTimeCam; }
|
---|
62 | MPedPhotCam &GetPedPhotCam() { return fPedPhotCam; }
|
---|
63 | const MBadPixelsCam &GetBadPixels() const { return fBadPixels; }
|
---|
64 |
|
---|
65 | void SetExtractor(MExtractor* ext) { fExtractor = ext; }
|
---|
66 | void SetTimeExtractor(MExtractTime* ext) { fTimeExtractor = ext; }
|
---|
67 | void SetBadPixels(const MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
|
---|
68 | void SetUseCosmicsFilter( const Bool_t b ) { fUseCosmicsFilter = b; }
|
---|
69 |
|
---|
70 | Bool_t ProcessD(MPedestalCam &pedcam, MCalibrationChargeCam &calcam, MCalibrationQECam &qecam);
|
---|
71 | Bool_t ProcessT(MPedestalCam &pedcam, MCalibrationRelTimeCam &relcam);
|
---|
72 |
|
---|
73 | ClassDef(MJExtractCalibTest, 0) // Tool to extract, calibrate and test the signal
|
---|
74 | };
|
---|
75 |
|
---|
76 | #endif
|
---|