source: trunk/MagicSoft/Mars/mjobs/MJExtractCalibTest.h@ 4014

Last change on this file since 4014 was 4014, checked in by gaug, 21 years ago
*** empty log message ***
File size: 2.3 KB
Line 
1#ifndef MARS_MJExtractCalibTest
2#define MARS_MJExtractCalibTest
3
4#ifndef MARS_MHCalibrationTestCam
5#include "MHCalibrationTestCam.h"
6#endif
7#ifndef MARS_MHCalibrationTestTimeCam
8#include "MHCalibrationTestTimeCam.h"
9#endif
10#ifndef MARS_MPedPhotCam
11#include "MPedPhotCam.h"
12#endif
13#ifndef MARS_MBadPixelsCam
14#include "MBadPixelsCam.h"
15#endif
16#ifndef MARS_MGCamDisplays
17#include "MGCamDisplays.h"
18#endif
19
20class MRunIter;
21class MParList;
22class MPedestalCam;
23class MCalibrationRelTimeCam;
24class MCalibrationChargeCam;
25class MCalibrationQECam;
26class MExtractor;
27class MExtractTime;
28class MJExtractCalibTest : public MParContainer, public MGCamDisplays
29{
30private:
31
32 TString fOutputPath;
33
34 MRunIter *fRuns; // Data files
35 MExtractor *fExtractor; // Signal extractor
36 MExtractTime *fTimeExtractor; // Arrival time extractor
37
38 MBadPixelsCam fBadPixels;
39 MHCalibrationTestCam fTestCam;
40 MHCalibrationTestTimeCam fTestTimeCam;
41 MPedPhotCam fPedPhotCam;
42
43 Bool_t ReadPedPhotCam();
44
45 void DisplayResult(MParList &plist);
46
47 Bool_t ProcessFileD(MPedestalCam &pedcam, MCalibrationChargeCam &calcam, MCalibrationQECam &qecam);
48 Bool_t ProcessFileP(MPedestalCam &pedcam, MCalibrationChargeCam &calcam, MCalibrationQECam &qecam);
49 Bool_t ProcessFileT(MPedestalCam &pedcam, MCalibrationRelTimeCam &relcam);
50
51public:
52 MJExtractCalibTest(const char *name=NULL, const char *title=NULL);
53
54 void SetInput(MRunIter *iter) { fRuns = iter; }
55 void SetOutputPath(const char *path=".");
56
57 TString GetOutputFile() const;
58
59 MHCalibrationTestCam &GetTestCam() { return fTestCam; }
60 MHCalibrationTestTimeCam &GetTestTimeCam() { return fTestTimeCam; }
61 MPedPhotCam &GetPedPhotCam() { return fPedPhotCam; }
62 const MBadPixelsCam &GetBadPixels() const { return fBadPixels; }
63
64 void SetExtractor(MExtractor* ext) { fExtractor = ext; }
65 void SetTimeExtractor(MExtractTime* ext) { fTimeExtractor = ext; }
66 void SetBadPixels(const MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
67
68 Bool_t ProcessD(MPedestalCam &pedcam, MCalibrationChargeCam &calcam, MCalibrationQECam &qecam);
69 Bool_t ProcessT(MPedestalCam &pedcam, MCalibrationRelTimeCam &relcam);
70
71 ClassDef(MJExtractCalibTest, 0) // Tool to extract, calibrate and test the signal
72};
73
74#endif
Note: See TracBrowser for help on using the repository browser.