source: trunk/MagicSoft/Mars/mjobs/MJCalib.h@ 6282

Last change on this file since 6282 was 6282, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.0 KB
Line 
1#ifndef MARS_MJCalib
2#define MARS_MJCalib
3
4#ifndef MARS_MJob
5#include "MJob.h"
6#endif
7
8class MRunIter;
9
10class MJCalib : public MJob
11{
12public:
13 enum DataType_t
14 {
15 kIsUseRootData,
16 kIsUseRawData,
17 kIsUseMC
18 };
19
20private:
21 Byte_t fDataFlag; // Bit-field to store the data type
22
23protected:
24 MRunIter *fRuns; // Data files, only used for test applications, default is sequence files!
25
26 Bool_t CheckEnvLocal();
27
28public:
29 MJCalib();
30
31 void SetInput(MRunIter *iter) { fRuns = iter; }
32
33 Bool_t IsUseRawData() const { return fDataFlag==kIsUseRawData; }
34 Bool_t IsUseRootData() const { return fDataFlag==kIsUseRootData; }
35 Bool_t IsUseMC() const { return fDataFlag==kIsUseMC; }
36
37 void SetUseRawData () { fDataFlag=kIsUseRawData; }
38 void SetUseRootData() { fDataFlag=kIsUseRootData; }
39 void SetUseMC () { fDataFlag=kIsUseMC; }
40
41 void SetDataType(DataType_t type) { fDataFlag=type; }
42
43 ClassDef(MJCalib, 0) // Base class for calibration jobs
44};
45
46#endif
Note: See TracBrowser for help on using the repository browser.