source: trunk/MagicSoft/Mars/mjobs/MJCalibrateSignalFromOutside.h@ 5817

Last change on this file since 5817 was 5683, checked in by gaug, 20 years ago
*** empty log message ***
File size: 2.4 KB
Line 
1#ifndef MARS_MJCalibrateSignalFromOutside
2#define MARS_MJCalibrateSignalFromOutside
3
4#ifndef MARS_MJob
5#include "MJob.h"
6#endif
7#ifndef MARS_MBadPixelsCam
8#include "MBadPixelsCam.h"
9#endif
10
11class TEnv;
12class TList;
13
14class MTask;
15class MParList;
16class MGeomCam;
17class MSequence;
18class MExtractor;
19class MPedestalCam;
20class MBadPixelsCam;
21class MRunIter;
22class MCalibrationChargeCam;
23class MCalibrationQECam;
24class MCalibrationRelTimeCam;
25
26class MJCalibrateSignalFromOutside : public MJob
27{
28private:
29 Bool_t fIsDataCheck;
30 TString fGeometry; // Class name geometry
31
32 MRunIter *fRuns; // Data files
33 MExtractor *fExtractor; // Signal extractor
34
35 MBadPixelsCam fBadPixels; // Bad Pixels cam, can be set from previous runs
36
37 enum Storage_t // Possible devices for calibration
38 {
39 kNoStorage,
40 kHistsStorage
41 }; // Possible flags for the storage of results
42
43 Byte_t fStorage; // Bit-field for chosen storage type
44
45 Bool_t IsNoStorage () const { return TESTBIT(fStorage,kNoStorage); }
46 Bool_t IsHistsStorage () const { return TESTBIT(fStorage,kHistsStorage); }
47
48 Bool_t WriteResult();
49
50 Bool_t IsDataCheck() const { return fIsDataCheck; }
51 void SetDataCheck(Bool_t b) { fIsDataCheck = b; }
52
53public:
54 MJCalibrateSignalFromOutside(const char *name=NULL, const char *title=NULL);
55
56 // const char* GetOutputFile() const;
57
58 void SetBadPixels ( const MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
59 void SetExtractor ( MExtractor* ext) { fExtractor = ext; }
60 void SetInput ( MRunIter *iter) { fRuns = iter; }
61
62 // Camera Geomtry
63 void SetGeometry(const char *geom) { fGeometry = geom; }
64
65 // Storage
66 void SetNoStorage ( const Bool_t b=kTRUE ) { b ? SETBIT(fStorage,kNoStorage) : CLRBIT(fStorage,kNoStorage); }
67 void SetHistsStorage ( const Bool_t b=kTRUE ) { b ? SETBIT(fStorage,kHistsStorage) : CLRBIT(fStorage,kHistsStorage); }
68
69 Bool_t ProcessFile(MPedestalCam &camab, MPedestalCam &cam, MCalibrationChargeCam &chargecam,
70 MCalibrationQECam &qecam, MCalibrationRelTimeCam &relcam, Byte_t filetype=2);
71
72 ClassDef(MJCalibrateSignalFromOutside, 0) // Tool to create a pedestal file (MPedestalCam)
73};
74
75#endif
Note: See TracBrowser for help on using the repository browser.