source: trunk/MagicSoft/Mars/mcalib/MCalibrationPattern.h@ 9439

Last change on this file since 9439 was 7194, checked in by tbretz, 19 years ago
*** empty log message ***
File size: 2.1 KB
Line 
1#ifndef MARS_MCalibrationPattern
2#define MARS_MCalibrationPattern
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8#ifndef MARS_MCalibrationCam
9#include "MCalibrationCam.h"
10#endif
11
12class MCalibrationPattern : public MParContainer
13{
14 friend class MCalibrationPatternDecode;
15
16public:
17
18 enum CLColor_t
19 {
20 kCLUV = BIT(0),
21 kCLGreen = BIT(1),
22 kCLAmber = BIT(2),
23 kCLRed = BIT(3),
24 kCLRedAmber = kCLRed & kCLAmber,
25 kCLRedGreen = kCLRed & kCLGreen,
26 kCLRedUV = kCLRed & kCLUV ,
27 kCLAmberGreen = kCLAmber & kCLGreen,
28 kCLAmberUV = kCLAmber & kCLUV ,
29 kCLGreenUV = kCLGreen & kCLUV ,
30 kCLRedAmberGreen = kCLRedAmber & kCLGreen,
31 kCLRedGreenUV = kCLRedGreen & kCLUV,
32 kCLAmberGreenUV = kCLAmberGreen & kCLUV,
33 kCLAll = kCLRedAmberGreen & kCLUV,
34 kCLNone = BIT(4)
35 };
36
37private:
38
39 UShort_t fCLStrength; // Continuous light strenth
40 CLColor_t fCLColor; // Color (combinations) of the continuous light
41 Float_t fPulserStrength; // Strength of the pulsed light (in nr. of equiv. LEDs)
42
43 MCalibrationCam::PulserColor_t fPulserColor; // Colour of the pulsed light
44
45public:
46
47 MCalibrationPattern(const char *name=0, const char *title=0);
48
49 void Reset() { fCLStrength=0; fCLColor=kCLNone; fPulserColor=MCalibrationCam::kNONE; fPulserStrength=0.; }
50
51 UShort_t GetCLStrength() const { return fCLStrength; }
52 CLColor_t GetCLColor() const { return fCLColor; }
53 Float_t GetPulserStrength() const { return fPulserStrength; }
54
55 const MCalibrationCam::PulserColor_t GetPulserColor() const { return fPulserColor; }
56 TString GetPulserColorStr() const { return MCalibrationCam::GetPulserColorStr(fPulserColor); }
57
58 void SetPulserColor ( const MCalibrationCam::PulserColor_t col) { fPulserColor = col; }
59 void SetPulserStrength( const Float_t strength ) { fPulserStrength = strength; }
60
61 ClassDef(MCalibrationPattern, 1) // Container storing the decoded calibration pattern
62};
63
64#endif
Note: See TracBrowser for help on using the repository browser.