source: trunk/MagicSoft/Mars/mtemp/mmpi/MJCalibrateSignal.h@ 6724

Last change on this file since 6724 was 6016, checked in by mazin, 20 years ago
*** empty log message ***
File size: 1.5 KB
Line 
1#ifndef MARS_MJCalibrateSignal
2#define MARS_MJCalibrateSignal
3
4#ifndef MARS_MJob
5#include "MJob.h"
6#endif
7
8class TEnv;
9class TList;
10
11class MTask;
12class MParList;
13class MGeomCam;
14class MSequence;
15class MExtractor;
16class MPedestalCam;
17class MBadPixelsCam;
18
19class MJCalibrateSignal : public MJob
20{
21private:
22
23 Bool_t fIsDataCheck;
24 Bool_t fIsInterlaced; // Distinguish interlaced from other calibration
25 Bool_t fIsRelTimesUpdate; // Choose to update relative times from interlaced
26 Bool_t fIsHiLoCalibration; // Choose to calibrate the high-gain vs. low-gains
27
28 Bool_t CheckEnvLocal();
29
30 void DisplayResult(MParList &plist);
31 void DrawTab(MParList &plist, const char *cont, const char *name, Option_t *opt);
32
33 Bool_t WriteResult(TObjArray &cont);
34 Bool_t ReadCalibration(TObjArray &o, MBadPixelsCam &bpix,
35 MExtractor* &ext1, MExtractor* &ext2, TString &geom) const;
36
37 Bool_t IsDataCheck() const { return fIsDataCheck; }
38 void SetDataCheck(Bool_t b) { fIsDataCheck = b; }
39
40public:
41 MJCalibrateSignal(const char *name=NULL, const char *title=NULL);
42
43 Bool_t ProcessFile(MPedestalCam &camab, MPedestalCam &cam1, MPedestalCam &cam2);
44
45 void SetInterlaced ( const Bool_t b=kTRUE ) { fIsInterlaced = b; }
46 void SetRelTimesUpdate ( const Bool_t b=kTRUE ) { fIsRelTimesUpdate = b; }
47 void SetHiLoCalibration( const Bool_t b=kTRUE ) { fIsHiLoCalibration = b; }
48
49 ClassDef(MJCalibrateSignal, 0) // Tool to create a pedestal file (MPedestalCam)
50};
51
52#endif
Note: See TracBrowser for help on using the repository browser.