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