Line | |
---|
1 | #ifndef MARS_MJCalib
|
---|
2 | #define MARS_MJCalib
|
---|
3 |
|
---|
4 | #ifndef MARS_MJob
|
---|
5 | #include "MJob.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MRunIter;
|
---|
9 |
|
---|
10 | class MJCalib : public MJob
|
---|
11 | {
|
---|
12 | public:
|
---|
13 | enum DataType_t
|
---|
14 | {
|
---|
15 | kIsUseRootData,
|
---|
16 | kIsUseRawData,
|
---|
17 | kIsUseMC
|
---|
18 | };
|
---|
19 |
|
---|
20 | private:
|
---|
21 |
|
---|
22 | static const Int_t fgCheckedPixId; //! Default for fCheckedPixId
|
---|
23 |
|
---|
24 | Byte_t fDataFlag; // Bit-field to store the data type
|
---|
25 |
|
---|
26 | protected:
|
---|
27 |
|
---|
28 | Bool_t fPixelCheck; // Check a test pixel?
|
---|
29 | Int_t fCheckedPixId; // ID of checked pixel
|
---|
30 |
|
---|
31 | MRunIter *fRuns; // Data files, only used for test applications, default is sequence files!
|
---|
32 |
|
---|
33 | Bool_t CheckEnvLocal();
|
---|
34 |
|
---|
35 | public:
|
---|
36 | MJCalib();
|
---|
37 |
|
---|
38 | void SetInput(MRunIter *iter) { fRuns = iter; }
|
---|
39 |
|
---|
40 | Bool_t IsUseRawData() const { return fDataFlag==kIsUseRawData; }
|
---|
41 | Bool_t IsUseRootData() const { return fDataFlag==kIsUseRootData; }
|
---|
42 | Bool_t IsUseMC() const { return fDataFlag==kIsUseMC; }
|
---|
43 |
|
---|
44 | void SetUseRawData () { fDataFlag=kIsUseRawData; }
|
---|
45 | void SetUseRootData() { fDataFlag=kIsUseRootData; }
|
---|
46 | void SetUseMC () { fDataFlag=kIsUseMC; }
|
---|
47 |
|
---|
48 | void SetDataType(DataType_t type) { fDataFlag=type; }
|
---|
49 |
|
---|
50 | void SetPixelCheck ( const Bool_t b=kTRUE ) { fPixelCheck = b; }
|
---|
51 | void SetCheckedPixId( const Int_t i=fgCheckedPixId ) { fCheckedPixId = i; }
|
---|
52 |
|
---|
53 | ClassDef(MJCalib, 0) // Base class for calibration jobs
|
---|
54 | };
|
---|
55 |
|
---|
56 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.