source: trunk/MagicSoft/Mars/mtrigger/MTriggerPattern.h@ 5725

Last change on this file since 5725 was 5725, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 943 bytes
Line 
1#ifndef MARS_MTriggerPattern
2#define MARS_MTriggerPattern
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class MTriggerPattern : public MParContainer
9{
10 friend class MTriggerPatternDecode;
11
12public:
13 enum Pattern_t {
14 kTriggerLvl1 = BIT(1),
15 kCalibration = BIT(2), // Pulse Trigger
16 kTriggerLvl2 = BIT(3), // LUT Pseudo Size selection
17 kPedestal = BIT(4),
18 kPinDiode = BIT(5)
19 //kUnused = BIT(6)
20 //kUnused = BIT(7)
21 //kUnused = BIT(8)
22 };
23
24private:
25 Byte_t fPrescaled; // Bit Pattern as defined above
26 Byte_t fUnprescaled; // Bit Pattern as defined above
27
28public:
29 MTriggerPattern(const char *name, const char *title);
30
31 Byte_t GetPrescaled() const { return fPrescaled; }
32 Byte_t GetUnprescaled() const { return fUnprescaled; }
33
34 ClassDef(MTriggerPattern, 1) // Container storing the decoded trigger pattern
35};
36
37#endif
Note: See TracBrowser for help on using the repository browser.