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

Last change on this file since 6517 was 6480, checked in by gaug, 20 years ago
*** empty log message ***
File size: 1.5 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 Byte_t GetDataFlag() { return fDataFlag; }
35
36public:
37 MJCalib();
38
39 void SetInput(MRunIter *iter) { fRuns = iter; }
40
41 Bool_t IsUseRawData() const { return fDataFlag==kIsUseRawData; }
42 Bool_t IsUseRootData() const { return fDataFlag==kIsUseRootData; }
43 Bool_t IsUseMC() const { return fDataFlag==kIsUseMC; }
44
45 void SetUseRawData () { fDataFlag=kIsUseRawData; }
46 void SetUseRootData() { fDataFlag=kIsUseRootData; }
47 void SetUseMC () { fDataFlag=kIsUseMC; }
48
49 void SetDataType(DataType_t type) { fDataFlag=type; }
50
51 void SetPixelCheck ( const Bool_t b=kTRUE ) { fPixelCheck = b; }
52 void SetCheckedPixId( const Int_t i=fgCheckedPixId ) { fCheckedPixId = i; }
53
54 ClassDef(MJCalib, 0) // Base class for calibration jobs
55};
56
57#endif
Note: See TracBrowser for help on using the repository browser.