source: trunk/MagicSoft/Mars/mcalib/MCalibColorSet.h@ 6994

Last change on this file since 6994 was 6231, checked in by gaug, 20 years ago
*** empty log message ***
File size: 1.7 KB
Line 
1#ifndef MARS_MCalibColorSet
2#define MARS_MCalibColorSet
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8#ifndef MARS_MCalibrationCam
9#include "MCalibrationCam.h"
10#endif
11
12class MParList;
13class MCalibrationPattern;
14class MRawEvtHeader;
15
16class MCalibColorSet : public MTask
17{
18private:
19
20 static const Int_t gkIFAEBoxInaugurationRun; //! Run number of first IFAE box calibration (set to: 20113)
21 static const Int_t gkMCRunLimit; //! Maximum MC run number (now set to: 1000)
22 static const UInt_t gkFirstRunWithFinalBits; //! Run number of first functionning digital modules
23
24 MCalibrationPattern *fPattern; //! Calibration Pattern with the pulse pattern information
25 MRawEvtHeader *fHeader; //! Event header with the project name
26
27 MCalibrationCam::PulserColor_t fColor; // Pulser Color to be set
28 Float_t fStrength; // Pulser Strength to be set
29
30 Bool_t fIsValid; // Have to set the pulse pattern?
31 Bool_t fIsExplicitColor; // Is colour set explicitely from outside (for MC)?
32
33 void CheckAndSet(const TString &str, const char *regexp, MCalibrationCam::PulserColor_t col, Float_t strength);
34
35 Bool_t ReInit(MParList *pList);
36 Int_t PreProcess(MParList *pList);
37 Int_t Process();
38
39 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
40
41public:
42
43 MCalibColorSet(const char *name=NULL, const char *title=NULL);
44
45 void Clear(const Option_t *o="");
46
47 void SetExplicitColor( const MCalibrationCam::PulserColor_t col, const Float_t strength=10.)
48 {
49 fIsExplicitColor = kTRUE;
50 fColor = col;
51 fStrength = 10.;
52 }
53
54 ClassDef(MCalibColorSet, 0) // Task to workaround missing colors
55};
56
57#endif
58
Note: See TracBrowser for help on using the repository browser.