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

Last change on this file since 6198 was 6198, checked in by gaug, 20 years ago
*** empty log message ***
File size: 2.5 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_MPedPhotCam
17#include "MPedPhotCam.h"
18#endif
19#ifndef MARS_MBadPixelsCam
20#include "MBadPixelsCam.h"
21#endif
22
23class MParList;
24class MPedestalCam;
25class MCalibrationRelTimeCam;
26class MCalibrationChargeCam;
27class MCalibrationQECam;
28class MExtractor;
29class MExtractTime;
30class MJCalibTest : public MJob, public MJCalib
31{
32private:
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 void DisplayResultT(MParList &plist);
58
59 Bool_t WriteResult();
60
61 Bool_t ReadCalibration(TObjArray &o, MBadPixelsCam &bpix,
62 MExtractor* &ext1, MExtractor* &ext2, TString &geom) const;
63
64public:
65
66 MJCalibTest(const char *name=NULL, const char *title=NULL);
67
68 const char* GetOutputFile() const;
69 const char* GetInputFile() const;
70
71 MCalibrationTestCam &GetTestCam() { return fTestCam; }
72 MHCalibrationTestTimeCam &GetTestTimeCam() { return fTestTimeCam; }
73 MPedPhotCam &GetPedPhotCam() { return fPedPhotCam; }
74 const MBadPixelsCam &GetBadPixels() const { return fBadPixels; }
75
76 void SetExtractor(MExtractor* ext) { fExtractor = ext; }
77 void SetTimeExtractor(MExtractTime* ext) { fTimeExtractor = ext; }
78 void SetBadPixels(const MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
79 void SetUseCosmicsFilter( const Bool_t b ) { fUseCosmicsFilter = b; }
80
81 // Displays
82 void SetDataCheckDisplay() { fDisplayType = kDataCheckDisplay; }
83 void SetNormalDisplay() { fDisplayType = kNormalDisplay; }
84
85 Bool_t ProcessFile(MPedestalCam &pedcam);
86
87 ClassDef(MJCalibTest, 0) // Tool to calibrate and test the calibration run itself
88};
89
90#endif
Note: See TracBrowser for help on using the repository browser.