BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
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
const bool getPreScale() const
Definition: TTrigData.h:35
void setTrigCondition(const int *cond)
Definition: TTrigData.h:21
virtual ~TTrigData()
Definition: TTrigData.cxx:13
void setTimeWindow(int i)
Definition: TTrigData.h:24
const int getTrigChannel(int i) const
Definition: TTrigData.h:31
const int getTimeWindow() const
Definition: TTrigData.h:33
void setTrigChannel(const int *chan)
Definition: TTrigData.h:23
void setPreScale(bool i)
Definition: TTrigData.h:26
const int getTrigCondition(int i) const
Definition: TTrigData.h:29
const int * getTrigChannel() const
Definition: TTrigData.h:32
const int getTimingType() const
Definition: TTrigData.h:34
void Clear(Option_t *option="")
Definition: TTrigData.cxx:17
void setTrigCondition(int i, int j)
Definition: TTrigData.h:20
void Print(Option_t *option="") const
Definition: TTrigData.cxx:21
void setTrigChannel(int i, int j)
Definition: TTrigData.h:22
void setTimingType(int i)
Definition: TTrigData.h:25
const int * getTrigCondition() const
Definition: TTrigData.h:30