source: trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.h@ 9432

Last change on this file since 9432 was 8518, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 1.5 KB
Line 
1#ifndef MARS_MJCalibrateSignal
2#define MARS_MJCalibrateSignal
3
4#ifndef MARS_MJCalib
5#include "MJCalib.h"
6#endif
7
8class TEnv;
9class TList;
10class MTask;
11class MParList;
12class MGeomCam;
13class MSequence;
14class MExtractor;
15class MPedestalCam;
16class MBadPixelsCam;
17class MRunIter;
18
19class MJCalibrateSignal : public MJCalib
20{
21private:
22 MExtractor *fExtractor;
23
24 Bool_t fIsInterlaced; // Distinguish interlaced from other calibration
25 Bool_t fIsRelTimesUpdate; // Choose to update relative times from interlaced
26 Bool_t fIsMovieMode; // Choose to encode a movie
27
28 Bool_t CheckEnvLocal();
29
30 void DisplayResult(MParList &plist);
31
32 Bool_t WriteResult() const;
33 Bool_t ReadCalibration(TObjArray &o, MBadPixelsCam &bpix,
34 MExtractor* &ext1, MExtractor* &ext2, TString &geom) const;
35 Bool_t ReadExtractorCosmics(MExtractor* &ext1) const;
36
37 const char* GetInputFile() const;
38
39public:
40 MJCalibrateSignal(const char *name=NULL, const char *title=NULL);
41 ~MJCalibrateSignal();
42
43 Bool_t Process(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 SetMovieMode (const Bool_t b=kTRUE) { fIsMovieMode = b; }
48
49 void SetExtractor(const MExtractor *ext=NULL);
50
51 ClassDef(MJCalibrateSignal, 0) // Tool to create a pedestal file (MPedestalCam)
52};
53
54#endif
Note: See TracBrowser for help on using the repository browser.