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