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

Last change on this file since 6475 was 6475, checked in by gaug, 20 years ago
*** empty log message ***
File size: 1.4 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
22 static const Int_t fgCheckedPixId; //! Default for fCheckedPixId
23
24 Byte_t fDataFlag; // Bit-field to store the data type
25
26protected:
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
35public:
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.