source: trunk/MagicSoft/Mars/mjobs/MJCalibTest.h@ 6232

Last change on this file since 6232 was 6216, checked in by gaug, 20 years ago
*** empty log message ***
File size: 2.3 KB
Line 
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_MBadPixelsCam
17#include "MBadPixelsCam.h"
18#endif
19
20class MParList;
21class MPedestalCam;
22class MCalibrationRelTimeCam;
23class MCalibrationChargeCam;
24class MCalibrationQECam;
25class MExtractor;
26class MExtractTime;
27class MJCalibTest : public MJob, public MJCalib
28{
29private:
30
31 Bool_t fUseCosmicsFilter;
32
33 MExtractor *fExtractor; // Signal extractor
34 MExtractTime *fTimeExtractor; // Arrival time extractor
35
36 MBadPixelsCam fBadPixels;
37 MCalibrationTestCam fTestCam;
38 MHCalibrationTestTimeCam fTestTimeCam;
39
40 enum Display_t // Possible Display types
41 {
42 kDataCheckDisplay,
43 kNormalDisplay
44 };
45
46 Display_t fDisplayType; // Chosen Display type
47
48 TString fGeometry;
49
50 Bool_t CheckEnvLocal();
51
52 void DisplayResult(MParList &plist);
53
54 Bool_t WriteResult();
55
56 Bool_t ReadCalibration(TObjArray &o, MBadPixelsCam &bpix,
57 MExtractor* &ext1, MExtractor* &ext2, TString &geom) const;
58
59 const char* GetOutputFileName() const;
60
61public:
62
63 MJCalibTest(const char *name=NULL, const char *title=NULL);
64
65 const char* GetOutputFile() const;
66
67 MCalibrationTestCam &GetTestCam() { return fTestCam; }
68 MHCalibrationTestTimeCam &GetTestTimeCam() { return fTestTimeCam; }
69 const MBadPixelsCam &GetBadPixels() const { return fBadPixels; }
70
71 void SetExtractor(MExtractor* ext) { fExtractor = ext; }
72 void SetTimeExtractor(MExtractTime* ext) { fTimeExtractor = ext; }
73 void SetBadPixels(const MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
74 void SetUseCosmicsFilter( const Bool_t b ) { fUseCosmicsFilter = b; }
75
76 // Displays
77 void SetDataCheckDisplay() { fDisplayType = kDataCheckDisplay; }
78 void SetNormalDisplay() { fDisplayType = kNormalDisplay; }
79
80 Bool_t ProcessFile(MPedestalCam &pedcam);
81
82 ClassDef(MJCalibTest, 0) // Tool to calibrate and test the calibration run itself
83};
84
85#endif
Note: See TracBrowser for help on using the repository browser.