Line | |
---|
1 | #ifndef MARS_MJCalibrateSignal
|
---|
2 | #define MARS_MJCalibrateSignal
|
---|
3 |
|
---|
4 | #ifndef MARS_MJob
|
---|
5 | #include "MJob.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class TEnv;
|
---|
9 | class TList;
|
---|
10 | class MRunIter;
|
---|
11 | class MTask;
|
---|
12 | class MParList;
|
---|
13 | class MGeomCam;
|
---|
14 | class MSequence;
|
---|
15 | class MExtractor;
|
---|
16 | class MPedestalCam;
|
---|
17 | class MBadPixelsCam;
|
---|
18 |
|
---|
19 | class MJCalibrateSignal : public MJob
|
---|
20 | {
|
---|
21 | private:
|
---|
22 |
|
---|
23 | MRunIter *fRuns; // Data files
|
---|
24 |
|
---|
25 | Bool_t fIsInterlaced; // Distinguish interlaced from other calibration
|
---|
26 | Bool_t fIsRelTimesUpdate; // Choose to update relative times from interlaced
|
---|
27 | Bool_t fIsHiLoCalibration; // Choose to calibrate the high-gain vs. low-gains
|
---|
28 |
|
---|
29 | Bool_t CheckEnvLocal();
|
---|
30 |
|
---|
31 | void DisplayResult(MParList &plist);
|
---|
32 |
|
---|
33 | Bool_t WriteResult(TObjArray &cont);
|
---|
34 | Bool_t ReadCalibration(TObjArray &o, MBadPixelsCam &bpix,
|
---|
35 | MExtractor* &ext1, MExtractor* &ext2, TString &geom) const;
|
---|
36 |
|
---|
37 | public:
|
---|
38 | MJCalibrateSignal(const char *name=NULL, const char *title=NULL);
|
---|
39 |
|
---|
40 | Bool_t ProcessFile(MPedestalCam &camab, MPedestalCam &cam1, MPedestalCam &cam2);
|
---|
41 |
|
---|
42 | void SetInterlaced ( const Bool_t b=kTRUE ) { fIsInterlaced = b; }
|
---|
43 | void SetRelTimesUpdate ( const Bool_t b=kTRUE ) { fIsRelTimesUpdate = b; }
|
---|
44 | void SetHiLoCalibration( const Bool_t b=kTRUE ) { fIsHiLoCalibration = b; }
|
---|
45 |
|
---|
46 | void SetInput ( MRunIter *iter ) { fRuns = iter; }
|
---|
47 |
|
---|
48 | ClassDef(MJCalibrateSignal, 0) // Tool to create a pedestal file (MPedestalCam)
|
---|
49 | };
|
---|
50 |
|
---|
51 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.