1 | #ifndef MARS_MJCalibTest
|
---|
2 | #define MARS_MJCalibTest
|
---|
3 |
|
---|
4 | #ifndef MARS_MJCalib
|
---|
5 | #include "MJCalib.h"
|
---|
6 | #endif
|
---|
7 | #ifndef MARS_MCalibrationTestCam
|
---|
8 | #include "MCalibrationTestCam.h"
|
---|
9 | #endif
|
---|
10 | #ifndef MARS_MHCalibrationTestTimeCam
|
---|
11 | #include "MHCalibrationTestTimeCam.h"
|
---|
12 | #endif
|
---|
13 | #ifndef MARS_MBadPixelsCam
|
---|
14 | #include "MBadPixelsCam.h"
|
---|
15 | #endif
|
---|
16 |
|
---|
17 | class MParList;
|
---|
18 | class MPedestalCam;
|
---|
19 | class MCalibrationRelTimeCam;
|
---|
20 | class MCalibrationChargeCam;
|
---|
21 | class MCalibrationQECam;
|
---|
22 | class MExtractor;
|
---|
23 | class MExtractTime;
|
---|
24 |
|
---|
25 | class MJCalibTest : public MJCalib
|
---|
26 | {
|
---|
27 | private:
|
---|
28 |
|
---|
29 | Bool_t fUseCosmicsFilter;
|
---|
30 |
|
---|
31 | MExtractor *fExtractor; // Signal extractor
|
---|
32 | MExtractTime *fTimeExtractor; // Arrival time extractor
|
---|
33 |
|
---|
34 | MBadPixelsCam fBadPixels;
|
---|
35 | MCalibrationTestCam fTestCam;
|
---|
36 | MHCalibrationTestTimeCam fTestTimeCam;
|
---|
37 |
|
---|
38 | enum Display_t // Possible Display types
|
---|
39 | {
|
---|
40 | kDataCheckDisplay,
|
---|
41 | kNormalDisplay
|
---|
42 | };
|
---|
43 |
|
---|
44 | Display_t fDisplayType; // Chosen Display type
|
---|
45 |
|
---|
46 | TString fGeometry;
|
---|
47 |
|
---|
48 | void DisplayResult(MParList &plist);
|
---|
49 |
|
---|
50 | Bool_t WriteResult();
|
---|
51 |
|
---|
52 | Bool_t ReadCalibration(TObjArray &o, MBadPixelsCam &bpix,
|
---|
53 | MExtractor* &ext1, MExtractor* &ext2, TString &geom) const;
|
---|
54 |
|
---|
55 | const char* GetOutputFileName() const;
|
---|
56 |
|
---|
57 | public:
|
---|
58 |
|
---|
59 | MJCalibTest(const char *name=NULL, const char *title=NULL);
|
---|
60 |
|
---|
61 | const char* GetOutputFile() const;
|
---|
62 |
|
---|
63 | MCalibrationTestCam &GetTestCam() { return fTestCam; }
|
---|
64 | MHCalibrationTestTimeCam &GetTestTimeCam() { return fTestTimeCam; }
|
---|
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 | void SetUseCosmicsFilter( const Bool_t b ) { fUseCosmicsFilter = b; }
|
---|
71 |
|
---|
72 | // Displays
|
---|
73 | void SetDataCheckDisplay() { fDisplayType = kDataCheckDisplay; }
|
---|
74 | void SetNormalDisplay() { fDisplayType = kNormalDisplay; }
|
---|
75 |
|
---|
76 | Bool_t Process(MPedestalCam &pedcam);
|
---|
77 |
|
---|
78 | ClassDef(MJCalibTest, 0) // Tool to calibrate and test the calibration run itself
|
---|
79 | };
|
---|
80 |
|
---|
81 | #endif
|
---|