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

Last change on this file since 4007 was 3982, 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_MPedPhotCam
8#include "MPedPhotCam.h"
9#endif
10#ifndef MARS_MBadPixelsCam
11#include "MBadPixelsCam.h"
12#endif
13#ifndef MARS_MGCamDisplays
14#include "MGCamDisplays.h"
15#endif
16
17class MRunIter;
18class MParList;
19class MPedestalCam;
20class MCalibrationRelTimeCam;
21class MCalibrationChargeCam;
22class MCalibrationQECam;
23class MExtractor;
24class MExtractTime;
25class MJExtractCalibTest : public MParContainer, public MGCamDisplays
26{
27private:
28
29 TString fOutputPath;
30
31 MRunIter *fRuns; // Data files
32 MExtractor *fExtractor; // Signal extractor
33 MExtractTime *fTimeExtractor; // Arrival time extractor
34
35 MBadPixelsCam fBadPixels;
36 MHCalibrationTestCam fTestCam;
37 MPedPhotCam fPedPhotCam;
38
39 Bool_t ReadPedPhotCam();
40
41 void DisplayResult(MParList &plist);
42
43 Bool_t ProcessFileD(MPedestalCam &pedcam, MCalibrationChargeCam &calcam, MCalibrationQECam &qecam);
44 Bool_t ProcessFileP(MPedestalCam &pedcam, MCalibrationChargeCam &calcam, MCalibrationQECam &qecam);
45 Bool_t ProcessFileT(MPedestalCam &pedcam, MCalibrationRelTimeCam &relcam);
46
47public:
48 MJExtractCalibTest(const char *name=NULL, const char *title=NULL);
49
50 void SetInput(MRunIter *iter) { fRuns = iter; }
51 void SetOutputPath(const char *path=".");
52
53 TString GetOutputFileP() const;
54 TString GetOutputFileD() const;
55 TString GetOutputFileT() const;
56
57 MHCalibrationTestCam &GetTestCam() { return fTestCam; }
58 MPedPhotCam &GetPedPhotCam() { return fPedPhotCam; }
59 const MBadPixelsCam &GetBadPixels() const { return fBadPixels; }
60
61 void SetExtractor(MExtractor* ext) { fExtractor = ext; }
62 void SetTimeExtractor(MExtractTime* ext) { fTimeExtractor = ext; }
63 void SetBadPixels(const MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
64
65 Bool_t ProcessD(MPedestalCam &pedcam, MCalibrationChargeCam &calcam, MCalibrationQECam &qecam);
66 Bool_t ProcessP(MPedestalCam &pedcam, MCalibrationChargeCam &calcam, MCalibrationQECam &qecam);
67 Bool_t ProcessT(MPedestalCam &pedcam, MCalibrationRelTimeCam &relcam);
68
69 ClassDef(MJExtractCalibTest, 0) // Tool to extract, calibrate and test the signal
70};
71
72#endif
Note: See TracBrowser for help on using the repository browser.