BOSS 7.1.1
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
 

Static Public Member Functions

static const CLID & classID ()
 

Detailed Description

Definition at line 12 of file TrigData.h.

Constructor & Destructor Documentation

◆ TrigData() [1/2]

TrigData::TrigData ( )
inline

Definition at line 15 of file TrigData.h.

15{}

◆ TrigData() [2/2]

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()

virtual TrigData::~TrigData ( )
inlinevirtual

Definition at line 19 of file TrigData.h.

19{}

Member Function Documentation

◆ classID()

static const CLID & TrigData::classID ( )
inlinestatic

Definition at line 22 of file TrigData.h.

22{ return CLID_TrigData; }
const CLID & CLID_TrigData

Referenced by clID().

◆ clID()

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

Definition at line 21 of file TrigData.h.

21{ return TrigData::classID(); }
static const CLID & classID()
Definition TrigData.h:22

◆ getPreScale()

const bool TrigData::getPreScale ( ) const
inline

Definition at line 39 of file TrigData.h.

39{ return m_preScale; }

Referenced by TrigDataCnv::DataObjectToTObject().

◆ getTimeWindow()

const int TrigData::getTimeWindow ( ) const
inline

Definition at line 37 of file TrigData.h.

37{ return m_timeWindow; }

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

◆ getTimingType()

const int TrigData::getTimingType ( ) const
inline

Definition at line 38 of file TrigData.h.

38{ return m_Timing; }

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

◆ getTrigChannel() [1/2]

const int * TrigData::getTrigChannel ( ) const
inline

Definition at line 36 of file TrigData.h.

36{ return m_trigChan; }

◆ getTrigChannel() [2/2]

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

Definition at line 35 of file TrigData.h.

35{ return m_trigChan[i]; }

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

◆ getTrigCondition() [1/2]

const int * TrigData::getTrigCondition ( ) const
inline

Definition at line 34 of file TrigData.h.

34{ return m_trigcond; }

◆ getTrigCondition() [2/2]

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

Definition at line 33 of file TrigData.h.

33{ return m_trigcond[i]; }

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

◆ getTrigCondName()

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

Definition at line 32 of file TrigData.h.

32{ return s_CONDITIONS[i]; }

◆ print()

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}

◆ setPreScale()

void TrigData::setPreScale ( bool i)
inline

Definition at line 30 of file TrigData.h.

30{ m_preScale = i; }

Referenced by TrigDataCnv::TObjectToDataObject().

◆ setTimeWindow()

void TrigData::setTimeWindow ( int i)
inline

Definition at line 28 of file TrigData.h.

28{ m_timeWindow = i; }

Referenced by TrigDataCnv::TObjectToDataObject().

◆ setTimingType()

void TrigData::setTimingType ( int i)
inline

Definition at line 29 of file TrigData.h.

29{ m_Timing = i; }

Referenced by TrigDataCnv::TObjectToDataObject().

◆ setTrigChannel() [1/2]

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

Definition at line 27 of file TrigData.h.

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

◆ setTrigChannel() [2/2]

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

Definition at line 26 of file TrigData.h.

26{ m_trigChan[i] = j; }

Referenced by TrigDataCnv::TObjectToDataObject().

◆ setTrigCondition() [1/2]

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

Definition at line 25 of file TrigData.h.

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

◆ setTrigCondition() [2/2]

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

Definition at line 24 of file TrigData.h.

24{ m_trigcond[i] = j; }

Referenced by TrigDataCnv::TObjectToDataObject().


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