1 | #ifndef MARS_MJCalibrateSignal
|
---|
2 | #define MARS_MJCalibrateSignal
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class TEnv;
|
---|
9 |
|
---|
10 | class MTask;
|
---|
11 | class MParList;
|
---|
12 | class MSequence;
|
---|
13 | class MBadPixelsCam;
|
---|
14 | class MCalibrationCam;
|
---|
15 | class MCalibrationQECam;
|
---|
16 | class MCalibrationRelTimeCam;
|
---|
17 | class MCalibrationChargeCam;
|
---|
18 |
|
---|
19 | class MJCalibrateSignal : public MParContainer
|
---|
20 | {
|
---|
21 | private:
|
---|
22 | TString fOutputPath; // Directory to write signal*.root file to
|
---|
23 | TString fInputPath; // Directory to read calib*.root file from
|
---|
24 |
|
---|
25 | Bool_t fOverwrite; // Allow overwriting files
|
---|
26 | Int_t fMaxEvents; // Maximum number of events
|
---|
27 |
|
---|
28 | void CheckEnv(const char *env);
|
---|
29 | Bool_t WriteResult(const MSequence &seq);
|
---|
30 | Bool_t ReadCalibration(const MSequence &seq, const char *path, MCalibrationCam &calcam,
|
---|
31 | MCalibrationCam &qecam, MCalibrationCam &tmcam,
|
---|
32 | MBadPixelsCam &badpix, MTask* &ext1, MTask* &ext2) const;
|
---|
33 |
|
---|
34 | public:
|
---|
35 | MJCalibrateSignal(const char *name=NULL, const char *title=NULL);
|
---|
36 | ~MJCalibrateSignal();
|
---|
37 |
|
---|
38 | Bool_t ProcessFile(const MSequence &seq, const char *env, const char *path=0);
|
---|
39 |
|
---|
40 | void SetOutputPath(const char *path=".");
|
---|
41 | void SetInputPath(const char *path=".");
|
---|
42 | void SetMaxEvents(Int_t max) { fMaxEvents = max; }
|
---|
43 |
|
---|
44 | void SetOverwrite(Bool_t b=kTRUE) { fOverwrite=b; }
|
---|
45 |
|
---|
46 | MStatusDisplay *GetDisplay() { return fDisplay; }
|
---|
47 |
|
---|
48 | ClassDef(MJCalibrateSignal, 0) // Tool to create a pedestal file (MPedestalCam)
|
---|
49 | };
|
---|
50 |
|
---|
51 | #endif
|
---|