CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RootEventData/bak_RootEventData-00-05-12/RootEventData/TTrigData.h
Go to the documentation of this file.
1#ifndef RootEventData_TTrigData_H
2#define RootEventData_TTrigData_H 1
3
4#include "TObject.h"
5
6using namespace std;
7
8class TTrigData : public TObject {
9
10public:
11
13 virtual ~TTrigData();
14
15 void Clear(Option_t *option="");
16
17 void Print(Option_t *option="") const;
18
19//Set
20 void setTrigCondition(int i, int j) { m_trigcond[i] = j; }
21 void setTrigCondition(const int* cond) { for(int i = 0; i < 48; i++) m_trigcond[i] = cond[i]; }
22 void setTrigChannel( int i, int j) { m_trigChan[i] = j; }
23 void setTrigChannel(const int* chan) { for(int i = 0; i < 16; i++) m_trigChan[i] = chan[i]; }
24 void setTimeWindow( int i ) { m_timeWindow = i; }
25 void setTimingType( int i ) { m_Timing = i; }
26 void setPreScale( bool i ) { m_preScale = i; }
27
28//Get
29 const int getTrigCondition(int i) const { return m_trigcond[i]; }
30 const int* getTrigCondition() const { return m_trigcond; }
31 const int getTrigChannel(int i) const { return m_trigChan[i]; }
32 const int* getTrigChannel() const { return m_trigChan; }
33 const int getTimeWindow() const { return m_timeWindow; }
34 const int getTimingType() const { return m_Timing; }
35 const bool getPreScale() const { return m_preScale; }
36
37private:
38 Bool_t m_preScale; //PreScale for bhabha events
39 Int_t m_trigcond[48]; //Trigger conditions from 0 to 47
40 Int_t m_trigChan[16]; //Trigger channel from 0 to 15
41 Int_t m_timeWindow; //The time window of trigger system
42 Int_t m_Timing; //Time type, 0: No timing 1: TOF 2: MDC 3: EMC
43
44 ClassDef(TTrigData, 2)
45};
46
47#endif //TrackRootData_TTrigData_H
void Clear(Option_t *option="")
void Print(Option_t *option="") const