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