source: branches/MarsWobble/mcalib/MCalibColorSet.h@ 18237

Last change on this file since 18237 was 14151, checked in by tbretz, 12 years ago
Removed an obsolete function argument.
File size: 1.6 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 UInt_t gkFirstRunWithFinalBits; //! Run number of first functionning digital modules
22
23 MCalibrationPattern *fPattern; //! Calibration Pattern with the pulse pattern information
24 MRawEvtHeader *fHeader; //! Event header with the project name
25
26 MCalibrationCam::PulserColor_t fColor; // Pulser Color to be set
27 Float_t fStrength; // Pulser Strength to be set
28
29 Bool_t fIsValid; // Have to set the pulse pattern?
30 Bool_t fIsExplicitColor; // Is colour set explicitely from outside (for MC)?
31
32 void CheckAndSet(const TString &str, const char *regexp, MCalibrationCam::PulserColor_t col, Float_t strength);
33
34 Bool_t ReInit(MParList *pList);
35 Int_t PreProcess(MParList *pList);
36 Int_t Process();
37
38 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
39
40public:
41
42 MCalibColorSet(const char *name=NULL, const char *title=NULL);
43
44 void Clear(const Option_t *o="");
45
46 void SetExplicitColor( const MCalibrationCam::PulserColor_t col)
47 {
48 fIsExplicitColor = kTRUE;
49 fColor = col;
50 fStrength = 10.;
51 }
52
53 ClassDef(MCalibColorSet, 0) // Task to workaround missing colors
54};
55
56#endif
57
Note: See TracBrowser for help on using the repository browser.