source: branches/Mars_use_drstimefiles/mcalib/MCalibrationPatternDecode.h@ 17989

Last change on this file since 17989 was 9329, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 1.8 KB
Line 
1#ifndef MARS_MCalibrationPatternDecode
2#define MARS_MCalibrationPatternDecode
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8class MParList;
9class MRawEvtHeader;
10class MRawRunHeader;
11class MCalibrationPattern;
12
13class MCalibrationPatternDecode : public MTask
14{
15private:
16
17 enum PulserColorCode_t
18 {
19 kSlot1Green = BIT(0),
20 kSlot2Green = BIT(1),
21 kSlot3Blue = BIT(2),
22 kSlot4UV = BIT(3),
23 kSlot5UV = BIT(4),
24 kSlot6Blue = BIT(5),
25 kSlot7Blue = BIT(6),
26 kSlot8Blue = BIT(7),
27 kSlot9AttBlue = BIT(8),
28 kSlot10Blue = BIT(9),
29 kSlot11Blue = BIT(10),
30 kSlot12UV = BIT(11),
31 kSlot13UV = BIT(12),
32 kSlot14Blue = BIT(13),
33 kSlot15Green = BIT(14),
34 kSlot16AttGreen = BIT(15),
35// kCT1Pulser = BIT(16),
36 kAnyGreen = kSlot1Green | kSlot2Green | kSlot15Green | kSlot16AttGreen,
37 kAnyUV = kSlot4UV | kSlot5UV | kSlot12UV | kSlot13UV,
38 kAnyBlue = kSlot3Blue | kSlot6Blue | kSlot7Blue | kSlot8Blue
39 | kSlot9AttBlue| kSlot10Blue | kSlot11Blue | kSlot14Blue,
40 kGreenAndBlue = kAnyGreen & kAnyBlue,
41 kBlueAndUV = kAnyBlue & kAnyUV,
42 kGreenAndUV = kAnyGreen & kAnyUV,
43 kIFAEPulser = kAnyGreen | kAnyBlue | kAnyUV/*,
44 kAny = kAnyGreen | kAnyBlue | kAnyUV | kCT1Pulser*/
45 };
46
47 MRawRunHeader *fRunHeader;
48 MRawEvtHeader *fEvtHeader;
49 MCalibrationPattern *fPattern;
50
51 Int_t PreProcess(MParList *pList);
52 Int_t Process();
53
54public:
55
56 MCalibrationPatternDecode(const char *name=0, const char *title=0);
57
58 ClassDef(MCalibrationPatternDecode, 1) // Task to decode the Trigger Pattern
59};
60
61#endif
Note: See TracBrowser for help on using the repository browser.