BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RootEventData/include/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 TTrigData();
12 virtual ~TTrigData();
13
14 void Clear( Option_t* option = "" );
15
16 void Print( Option_t* option = "" ) const;
17
18 // Set
19 void setTrigCondition( int i, int j ) { m_trigcond[i] = j; }
20 void setTrigCondition( const int* cond ) {
21 for ( int i = 0; i < 48; i++ ) m_trigcond[i] = cond[i];
22 }
23 void setTrigChannel( int i, int j ) { m_trigChan[i] = j; }
24 void setTrigChannel( const int* chan ) {
25 for ( int i = 0; i < 16; i++ ) m_trigChan[i] = chan[i];
26 }
27 void setTimeWindow( int i ) { m_timeWindow = i; }
28 void setTimingType( int i ) { m_Timing = i; }
29 void setPreScale( bool i ) { m_preScale = i; }
30
31 // Get
32 int getTrigCondition( int i ) const { return m_trigcond[i]; }
33 const int* getTrigCondition() const { return m_trigcond; }
34 int getTrigChannel( int i ) const { return m_trigChan[i]; }
35 const int* getTrigChannel() const { return m_trigChan; }
36 int getTimeWindow() const { return m_timeWindow; }
37 int getTimingType() const { return m_Timing; }
38 bool getPreScale() const { return m_preScale; }
39
40private:
41 Bool_t m_preScale; // PreScale for bhabha events
42 Int_t m_trigcond[48]; // Trigger conditions from 0 to 47
43 Int_t m_trigChan[16]; // Trigger channel from 0 to 15
44 Int_t m_timeWindow; // The time window of trigger system
45 Int_t m_Timing; // Time type, 0: No timing 1: TOF 2: MDC 3: EMC
46
47 ClassDef( TTrigData, 2 )
48};
49
50#endif // TrackRootData_TTrigData_H
virtual ~TTrigData()
Definition TTrigData.cxx:10
void Clear(Option_t *option="")
Definition TTrigData.cxx:12
void Print(Option_t *option="") const
Definition TTrigData.cxx:14