1 | #ifndef MARS_MJCalibrateSignalFromOutside
|
---|
2 | #define MARS_MJCalibrateSignalFromOutside
|
---|
3 |
|
---|
4 | #ifndef MARS_MJob
|
---|
5 | #include "MJob.h"
|
---|
6 | #endif
|
---|
7 | #ifndef MARS_MBadPixelsCam
|
---|
8 | #include "MBadPixelsCam.h"
|
---|
9 | #endif
|
---|
10 |
|
---|
11 | class TEnv;
|
---|
12 | class TList;
|
---|
13 |
|
---|
14 | class MTask;
|
---|
15 | class MParList;
|
---|
16 | class MGeomCam;
|
---|
17 | class MSequence;
|
---|
18 | class MExtractor;
|
---|
19 | class MPedestalCam;
|
---|
20 | class MBadPixelsCam;
|
---|
21 | class MRunIter;
|
---|
22 | class MCalibrationChargeCam;
|
---|
23 | class MCalibrationQECam;
|
---|
24 | class MCalibrationRelTimeCam;
|
---|
25 |
|
---|
26 | class MJCalibrateSignalFromOutside : public MJob
|
---|
27 | {
|
---|
28 | private:
|
---|
29 | Bool_t fIsDataCheck;
|
---|
30 | TString fGeometry; // Class name geometry
|
---|
31 |
|
---|
32 | MRunIter *fRuns; // Data files
|
---|
33 | MExtractor *fExtractor; // Signal extractor
|
---|
34 |
|
---|
35 | MBadPixelsCam fBadPixels; // Bad Pixels cam, can be set from previous runs
|
---|
36 |
|
---|
37 | enum Storage_t // Possible devices for calibration
|
---|
38 | {
|
---|
39 | kNoStorage,
|
---|
40 | kHistsStorage
|
---|
41 | }; // Possible flags for the storage of results
|
---|
42 |
|
---|
43 | Byte_t fStorage; // Bit-field for chosen storage type
|
---|
44 |
|
---|
45 | Bool_t IsNoStorage () const { return TESTBIT(fStorage,kNoStorage); }
|
---|
46 | Bool_t IsHistsStorage () const { return TESTBIT(fStorage,kHistsStorage); }
|
---|
47 |
|
---|
48 | Bool_t WriteResult();
|
---|
49 |
|
---|
50 | Bool_t IsDataCheck() const { return fIsDataCheck; }
|
---|
51 | void SetDataCheck(Bool_t b) { fIsDataCheck = b; }
|
---|
52 |
|
---|
53 | public:
|
---|
54 | MJCalibrateSignalFromOutside(const char *name=NULL, const char *title=NULL);
|
---|
55 |
|
---|
56 | // const char* GetOutputFile() const;
|
---|
57 |
|
---|
58 | void SetBadPixels ( const MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
|
---|
59 | void SetExtractor ( MExtractor* ext) { fExtractor = ext; }
|
---|
60 | void SetInput ( MRunIter *iter) { fRuns = iter; }
|
---|
61 |
|
---|
62 | // Camera Geomtry
|
---|
63 | void SetGeometry(const char *geom) { fGeometry = geom; }
|
---|
64 |
|
---|
65 | // Storage
|
---|
66 | void SetNoStorage ( const Bool_t b=kTRUE ) { b ? SETBIT(fStorage,kNoStorage) : CLRBIT(fStorage,kNoStorage); }
|
---|
67 | void SetHistsStorage ( const Bool_t b=kTRUE ) { b ? SETBIT(fStorage,kHistsStorage) : CLRBIT(fStorage,kHistsStorage); }
|
---|
68 |
|
---|
69 | Bool_t ProcessFile(MPedestalCam &camab, MPedestalCam &cam, MCalibrationChargeCam &chargecam,
|
---|
70 | MCalibrationQECam &qecam, MCalibrationRelTimeCam &relcam, Byte_t filetype=2);
|
---|
71 |
|
---|
72 | ClassDef(MJCalibrateSignalFromOutside, 0) // Tool to create a pedestal file (MPedestalCam)
|
---|
73 | };
|
---|
74 |
|
---|
75 | #endif
|
---|