Line | |
---|
1 | #ifndef MARS_MJCalib
|
---|
2 | #define MARS_MJCalib
|
---|
3 |
|
---|
4 | #ifndef ROOT_TROOT
|
---|
5 | #include <TROOT.h>
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MRunIter;
|
---|
9 | class MJCalib
|
---|
10 | {
|
---|
11 | protected:
|
---|
12 |
|
---|
13 | MRunIter *fRuns; // Data files, only used for test applications, default is sequence files!
|
---|
14 |
|
---|
15 | enum DataType_t
|
---|
16 | {
|
---|
17 | kIsUseRawData,
|
---|
18 | kIsUseRootData,
|
---|
19 | kIsUseMC
|
---|
20 | };
|
---|
21 |
|
---|
22 | Byte_t fDataFlag; // Bit-field to store the data type
|
---|
23 |
|
---|
24 | Bool_t IsUseRawData() const { return TESTBIT(fDataFlag,kIsUseRawData); }
|
---|
25 | Bool_t IsUseRootData() const { return TESTBIT(fDataFlag,kIsUseRootData); }
|
---|
26 | Bool_t IsUseMC() const { return TESTBIT(fDataFlag,kIsUseMC); }
|
---|
27 |
|
---|
28 | void SetUseRawData ( const Bool_t b=kTRUE ) { b ? SETBIT(fDataFlag,kIsUseRawData) : CLRBIT(fDataFlag,kIsUseRawData); }
|
---|
29 | void SetUseRootData( const Bool_t b=kTRUE ) { b ? SETBIT(fDataFlag,kIsUseRootData) : CLRBIT(fDataFlag,kIsUseRootData); }
|
---|
30 | void SetUseMC ( const Bool_t b=kTRUE ) { b ? SETBIT(fDataFlag,kIsUseMC) : CLRBIT(fDataFlag,kIsUseMC); }
|
---|
31 |
|
---|
32 | public:
|
---|
33 |
|
---|
34 | MJCalib();
|
---|
35 |
|
---|
36 | void SetInput ( MRunIter *iter ) { fRuns = iter; }
|
---|
37 |
|
---|
38 | ClassDef(MJCalib, 0) // Base class for calibration jobs
|
---|
39 | };
|
---|
40 |
|
---|
41 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.