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

Last change on this file since 3976 was 3862, checked in by gaug, 21 years ago
*** empty log message ***
File size: 1.9 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 MCalibrationChargeCam;
21class MCalibrationQECam;
22class MExtractor;
23class MJExtractCalibTest : public MParContainer, public MGCamDisplays
24{
25private:
26
27 TString fOutputPath;
28
29 MRunIter *fRuns; // Data files
30 MExtractor *fExtractor; // Signal extractor
31
32 MBadPixelsCam fBadPixels;
33 MHCalibrationTestCam fTestCam;
34 MPedPhotCam fPedPhotCam;
35
36 Bool_t ReadPedPhotCam();
37
38 void DisplayResult(MParList &plist);
39
40 Bool_t ProcessFileD(MPedestalCam &pedcam, MCalibrationChargeCam &calcam, MCalibrationQECam &qecam);
41 Bool_t ProcessFileP(MPedestalCam &pedcam, MCalibrationChargeCam &calcam, MCalibrationQECam &qecam);
42
43public:
44 MJExtractCalibTest(const char *name=NULL, const char *title=NULL);
45
46 void SetInput(MRunIter *iter) { fRuns = iter; }
47 void SetOutputPath(const char *path=".");
48
49 TString GetOutputFileP() const;
50 TString GetOutputFileD() const;
51
52 MHCalibrationTestCam &GetTestCam() { return fTestCam; }
53 MPedPhotCam &GetPedPhotCam() { return fPedPhotCam; }
54 const MBadPixelsCam &GetBadPixels() const { return fBadPixels; }
55
56 void SetExtractor(MExtractor* ext) { fExtractor = ext; }
57 void SetBadPixels(const MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
58
59 Bool_t ProcessD(MPedestalCam &pedcam, MCalibrationChargeCam &calcam, MCalibrationQECam &qecam);
60 Bool_t ProcessP(MPedestalCam &pedcam, MCalibrationChargeCam &calcam, MCalibrationQECam &qecam);
61
62 ClassDef(MJExtractCalibTest, 0) // Tool to extract, calibrate and test the signal
63};
64
65#endif
Note: See TracBrowser for help on using the repository browser.