BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
TrigData Class Reference

#include <TrigData.h>

+ Inheritance diagram for TrigData:

Public Member Functions

 TrigData ()
 
 TrigData (int window, int timing, const int *trigCond, const int *trigChan, bool preScale)
 
virtual ~TrigData ()
 
virtual const CLID & clID () const
 
void setTrigCondition (int i, int j)
 
void setTrigCondition (const int *cond)
 
void setTrigChannel (int i, int j)
 
void setTrigChannel (const int *chan)
 
void setTimeWindow (int i)
 
void setTimingType (int i)
 
void setPreScale (bool i)
 
const std::string getTrigCondName (int i) const
 
const int getTrigCondition (int i) const
 
const int * getTrigCondition () const
 
const int getTrigChannel (int i) const
 
const int * getTrigChannel () const
 
const int getTimeWindow () const
 
const int getTimingType () const
 
const bool getPreScale () const
 
void print () const
 
 TrigData ()
 
 TrigData (int window, int timing, const int *trigCond, const int *trigChan, bool preScale)
 
virtual ~TrigData ()
 
virtual const CLID & clID () const
 
void setTrigCondition (int i, int j)
 
void setTrigCondition (const int *cond)
 
void setTrigChannel (int i, int j)
 
void setTrigChannel (const int *chan)
 
void setTimeWindow (int i)
 
void setTimingType (int i)
 
void setPreScale (bool i)
 
const std::string getTrigCondName (int i) const
 
const int getTrigCondition (int i) const
 
const int * getTrigCondition () const
 
const int getTrigChannel (int i) const
 
const int * getTrigChannel () const
 
const int getTimeWindow () const
 
const int getTimingType () const
 
const bool getPreScale () const
 
void print () const
 

Static Public Member Functions

static const CLID & classID ()
 
static const CLID & classID ()
 

Detailed Description

Constructor & Destructor Documentation

◆ TrigData() [1/4]

TrigData::TrigData ( )
inline

◆ TrigData() [2/4]

TrigData::TrigData ( int  window,
int  timing,
const int *  trigCond,
const int *  trigChan,
bool  preScale 
)

Definition at line 55 of file TrigData.cxx.

56{
57 m_timeWindow = window;
58 m_Timing = timing;
59 m_preScale = preScale;
60 for(int i = 0; i < 48; i++) {
61 if(i<16) {
62 m_trigChan[i] = trigChan[i];
63 }
64 m_trigcond[i] = trigCond[i];
65 }
66}

◆ ~TrigData() [1/2]

virtual TrigData::~TrigData ( )
inlinevirtual

◆ TrigData() [3/4]

TrigData::TrigData ( )
inline

Definition at line 15 of file InstallArea/include/TrigEvent/TrigEvent/TrigData.h.

15{}

◆ TrigData() [4/4]

TrigData::TrigData ( int  window,
int  timing,
const int *  trigCond,
const int *  trigChan,
bool  preScale 
)

◆ ~TrigData() [2/2]

virtual TrigData::~TrigData ( )
inlinevirtual

Definition at line 19 of file InstallArea/include/TrigEvent/TrigEvent/TrigData.h.

19{}

Member Function Documentation

◆ classID() [1/2]

static const CLID & TrigData::classID ( )
inlinestatic

Definition at line 22 of file Event/TrigEvent/TrigEvent-00-01-02/TrigEvent/TrigData.h.

22{ return CLID_TrigData; }
const CLID & CLID_TrigData
Definition: EventModel.cxx:280

Referenced by clID().

◆ classID() [2/2]

static const CLID & TrigData::classID ( )
inlinestatic

Definition at line 22 of file InstallArea/include/TrigEvent/TrigEvent/TrigData.h.

22{ return CLID_TrigData; }

◆ clID() [1/2]

virtual const CLID & TrigData::clID ( ) const
inlinevirtual

◆ clID() [2/2]

virtual const CLID & TrigData::clID ( ) const
inlinevirtual

Definition at line 21 of file InstallArea/include/TrigEvent/TrigEvent/TrigData.h.

21{ return TrigData::classID(); }

◆ getPreScale() [1/2]

const bool TrigData::getPreScale ( ) const
inline

Definition at line 39 of file Event/TrigEvent/TrigEvent-00-01-02/TrigEvent/TrigData.h.

39{ return m_preScale; }

Referenced by TrigDataCnv::DataObjectToTObject().

◆ getPreScale() [2/2]

const bool TrigData::getPreScale ( ) const
inline

Definition at line 39 of file InstallArea/include/TrigEvent/TrigEvent/TrigData.h.

39{ return m_preScale; }

◆ getTimeWindow() [1/2]

const int TrigData::getTimeWindow ( ) const
inline

Definition at line 37 of file Event/TrigEvent/TrigEvent-00-01-02/TrigEvent/TrigData.h.

37{ return m_timeWindow; }

Referenced by TrigDataCnv::DataObjectToTObject(), and TofCheckDigi::Fill_TofTrack().

◆ getTimeWindow() [2/2]

const int TrigData::getTimeWindow ( ) const
inline

Definition at line 37 of file InstallArea/include/TrigEvent/TrigEvent/TrigData.h.

37{ return m_timeWindow; }

◆ getTimingType() [1/2]

const int TrigData::getTimingType ( ) const
inline

◆ getTimingType() [2/2]

const int TrigData::getTimingType ( ) const
inline

Definition at line 38 of file InstallArea/include/TrigEvent/TrigEvent/TrigData.h.

38{ return m_Timing; }

◆ getTrigChannel() [1/4]

const int * TrigData::getTrigChannel ( ) const
inline

Definition at line 36 of file Event/TrigEvent/TrigEvent-00-01-02/TrigEvent/TrigData.h.

36{ return m_trigChan; }

◆ getTrigChannel() [2/4]

const int * TrigData::getTrigChannel ( ) const
inline

Definition at line 36 of file InstallArea/include/TrigEvent/TrigEvent/TrigData.h.

36{ return m_trigChan; }

◆ getTrigChannel() [3/4]

const int TrigData::getTrigChannel ( int  i) const
inline

Definition at line 35 of file Event/TrigEvent/TrigEvent-00-01-02/TrigEvent/TrigData.h.

35{ return m_trigChan[i]; }

Referenced by TrigDataCnv::DataObjectToTObject(), and TofCheckDigi::Fill_TofTrack().

◆ getTrigChannel() [4/4]

const int TrigData::getTrigChannel ( int  i) const
inline

Definition at line 35 of file InstallArea/include/TrigEvent/TrigEvent/TrigData.h.

35{ return m_trigChan[i]; }

◆ getTrigCondition() [1/4]

const int * TrigData::getTrigCondition ( ) const
inline

Definition at line 34 of file Event/TrigEvent/TrigEvent-00-01-02/TrigEvent/TrigData.h.

34{ return m_trigcond; }

◆ getTrigCondition() [2/4]

const int * TrigData::getTrigCondition ( ) const
inline

Definition at line 34 of file InstallArea/include/TrigEvent/TrigEvent/TrigData.h.

34{ return m_trigcond; }

◆ getTrigCondition() [3/4]

const int TrigData::getTrigCondition ( int  i) const
inline

Definition at line 33 of file Event/TrigEvent/TrigEvent-00-01-02/TrigEvent/TrigData.h.

33{ return m_trigcond[i]; }

Referenced by TrigDataCnv::DataObjectToTObject(), and TofCheckDigi::Fill_TofTrack().

◆ getTrigCondition() [4/4]

const int TrigData::getTrigCondition ( int  i) const
inline

Definition at line 33 of file InstallArea/include/TrigEvent/TrigEvent/TrigData.h.

33{ return m_trigcond[i]; }

◆ getTrigCondName() [1/2]

const std::string TrigData::getTrigCondName ( int  i) const
inline

Definition at line 32 of file Event/TrigEvent/TrigEvent-00-01-02/TrigEvent/TrigData.h.

32{ return s_CONDITIONS[i]; }

◆ getTrigCondName() [2/2]

const std::string TrigData::getTrigCondName ( int  i) const
inline

Definition at line 32 of file InstallArea/include/TrigEvent/TrigEvent/TrigData.h.

32{ return s_CONDITIONS[i]; }

◆ print() [1/2]

void TrigData::print ( ) const

Definition at line 68 of file TrigData.cxx.

68 {
69 std::cout << "TrigData contains the following effective conditions:" << std::endl;
70 for (int i = 0; i < 48; i++) {
71 if(m_trigcond[i] == 1) std::cout << '\t' << s_CONDITIONS[i] << std::endl;
72 }
73}

◆ print() [2/2]

void TrigData::print ( ) const

◆ setPreScale() [1/2]

void TrigData::setPreScale ( bool  i)
inline

Definition at line 30 of file Event/TrigEvent/TrigEvent-00-01-02/TrigEvent/TrigData.h.

30{ m_preScale = i; }

Referenced by TrigDataCnv::TObjectToDataObject().

◆ setPreScale() [2/2]

void TrigData::setPreScale ( bool  i)
inline

Definition at line 30 of file InstallArea/include/TrigEvent/TrigEvent/TrigData.h.

30{ m_preScale = i; }

◆ setTimeWindow() [1/2]

void TrigData::setTimeWindow ( int  i)
inline

Definition at line 28 of file Event/TrigEvent/TrigEvent-00-01-02/TrigEvent/TrigData.h.

28{ m_timeWindow = i; }

Referenced by TrigDataCnv::TObjectToDataObject().

◆ setTimeWindow() [2/2]

void TrigData::setTimeWindow ( int  i)
inline

Definition at line 28 of file InstallArea/include/TrigEvent/TrigEvent/TrigData.h.

28{ m_timeWindow = i; }

◆ setTimingType() [1/2]

void TrigData::setTimingType ( int  i)
inline

Definition at line 29 of file Event/TrigEvent/TrigEvent-00-01-02/TrigEvent/TrigData.h.

29{ m_Timing = i; }

Referenced by TrigDataCnv::TObjectToDataObject().

◆ setTimingType() [2/2]

void TrigData::setTimingType ( int  i)
inline

Definition at line 29 of file InstallArea/include/TrigEvent/TrigEvent/TrigData.h.

29{ m_Timing = i; }

◆ setTrigChannel() [1/4]

void TrigData::setTrigChannel ( const int *  chan)
inline

Definition at line 27 of file Event/TrigEvent/TrigEvent-00-01-02/TrigEvent/TrigData.h.

27{ for(int i = 0; i < 16; i++) m_trigChan[i] = chan[i]; }

◆ setTrigChannel() [2/4]

void TrigData::setTrigChannel ( const int *  chan)
inline

Definition at line 27 of file InstallArea/include/TrigEvent/TrigEvent/TrigData.h.

27{ for(int i = 0; i < 16; i++) m_trigChan[i] = chan[i]; }

◆ setTrigChannel() [3/4]

void TrigData::setTrigChannel ( int  i,
int  j 
)
inline

Definition at line 26 of file Event/TrigEvent/TrigEvent-00-01-02/TrigEvent/TrigData.h.

26{ m_trigChan[i] = j; }

Referenced by TrigDataCnv::TObjectToDataObject().

◆ setTrigChannel() [4/4]

void TrigData::setTrigChannel ( int  i,
int  j 
)
inline

Definition at line 26 of file InstallArea/include/TrigEvent/TrigEvent/TrigData.h.

26{ m_trigChan[i] = j; }

◆ setTrigCondition() [1/4]

void TrigData::setTrigCondition ( const int *  cond)
inline

Definition at line 25 of file Event/TrigEvent/TrigEvent-00-01-02/TrigEvent/TrigData.h.

25{ for(int i = 0; i < 48; i++) m_trigcond[i] = cond[i]; }

◆ setTrigCondition() [2/4]

void TrigData::setTrigCondition ( const int *  cond)
inline

Definition at line 25 of file InstallArea/include/TrigEvent/TrigEvent/TrigData.h.

25{ for(int i = 0; i < 48; i++) m_trigcond[i] = cond[i]; }

◆ setTrigCondition() [3/4]

void TrigData::setTrigCondition ( int  i,
int  j 
)
inline

Definition at line 24 of file Event/TrigEvent/TrigEvent-00-01-02/TrigEvent/TrigData.h.

24{ m_trigcond[i] = j; }

Referenced by TrigDataCnv::TObjectToDataObject().

◆ setTrigCondition() [4/4]

void TrigData::setTrigCondition ( int  i,
int  j 
)
inline

Definition at line 24 of file InstallArea/include/TrigEvent/TrigEvent/TrigData.h.

24{ m_trigcond[i] = j; }

The documentation for this class was generated from the following files: