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

Last change on this file since 6731 was 6281, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 2.2 KB
Line 
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
17class MParList;
18class MPedestalCam;
19class MCalibrationRelTimeCam;
20class MCalibrationChargeCam;
21class MCalibrationQECam;
22class MExtractor;
23class MExtractTime;
24
25class MJCalibTest : public MJCalib
26{
27private:
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
57public:
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 ProcessFile(MPedestalCam &pedcam);
77
78 ClassDef(MJCalibTest, 0) // Tool to calibrate and test the calibration run itself
79};
80
81#endif
Note: See TracBrowser for help on using the repository browser.