ATLAS Offline Software
Public Member Functions | Private Attributes | Friends | List of all members
TBTriggerPatternUnit Class Reference

#include <TBTriggerPatternUnit.h>

Collaboration diagram for TBTriggerPatternUnit:

Public Member Functions

 TBTriggerPatternUnit ()
 
 ~TBTriggerPatternUnit ()
 
void setTriggerWord (unsigned int word)
 
bool getBit (unsigned int i) const
 
const std::vector< bool > & getTriggers () const
 
unsigned int getTriggerWord () const
 
bool isParticle () const
 
bool isRandom () const
 
bool isPedestal () const
 
bool isMonitor () const
 
bool isCalib () const
 
bool hasS1 () const
 
bool hasS2 () const
 
bool hasS3 () const
 
bool hasVeto () const
 
bool hasTCFront () const
 
bool hasTCBack () const
 
bool hasMuon () const
 
bool hasFibre () const
 
bool hasLatePileUp () const
 
bool hasEarlyPileUp () const
 
bool hasCedar6of8 () const
 
bool hasCedar7of8 () const
 
bool hasCedar8of8 () const
 

Private Attributes

unsigned int m_triggerWord
 
std::vector< bool > m_triggers
 

Friends

class TBTriggerPatternUnitCnv_p1
 

Detailed Description

Definition at line 26 of file TBTriggerPatternUnit.h.

Constructor & Destructor Documentation

◆ TBTriggerPatternUnit()

TBTriggerPatternUnit::TBTriggerPatternUnit ( )

Definition at line 11 of file TBTriggerPatternUnit.cxx.

12  : m_triggerWord(0)
13 {
14 }

◆ ~TBTriggerPatternUnit()

TBTriggerPatternUnit::~TBTriggerPatternUnit ( )

Definition at line 18 of file TBTriggerPatternUnit.cxx.

19 { }

Member Function Documentation

◆ getBit()

bool TBTriggerPatternUnit::getBit ( unsigned int  i) const
inline

Definition at line 47 of file TBTriggerPatternUnit.h.

47 {return i<m_triggers.size()? m_triggers[i]:false ;}

◆ getTriggers()

const std::vector<bool>& TBTriggerPatternUnit::getTriggers ( ) const
inline

Definition at line 48 of file TBTriggerPatternUnit.h.

48 { return m_triggers; }

◆ getTriggerWord()

unsigned int TBTriggerPatternUnit::getTriggerWord ( ) const
inline

Definition at line 50 of file TBTriggerPatternUnit.h.

50 {return m_triggerWord;}

◆ hasCedar6of8()

bool TBTriggerPatternUnit::hasCedar6of8 ( ) const
inline

Definition at line 84 of file TBTriggerPatternUnit.h.

85  { return ( m_triggerWord & 0x00002000 ) != 0; }

◆ hasCedar7of8()

bool TBTriggerPatternUnit::hasCedar7of8 ( ) const
inline

Definition at line 86 of file TBTriggerPatternUnit.h.

87  { return ( m_triggerWord & 0x00004000 ) != 0; }

◆ hasCedar8of8()

bool TBTriggerPatternUnit::hasCedar8of8 ( ) const
inline

Definition at line 88 of file TBTriggerPatternUnit.h.

89  { return ( m_triggerWord & 0x00008000 ) != 0; }

◆ hasEarlyPileUp()

bool TBTriggerPatternUnit::hasEarlyPileUp ( ) const
inline

Definition at line 82 of file TBTriggerPatternUnit.h.

83  { return ( m_triggerWord & 0x00001000 ) != 0; }

◆ hasFibre()

bool TBTriggerPatternUnit::hasFibre ( ) const
inline

Definition at line 78 of file TBTriggerPatternUnit.h.

79  { return ( m_triggerWord & 0x00000080 ) != 0; }

◆ hasLatePileUp()

bool TBTriggerPatternUnit::hasLatePileUp ( ) const
inline

Definition at line 80 of file TBTriggerPatternUnit.h.

81  { return ( m_triggerWord & 0x00000800 ) != 0; }

◆ hasMuon()

bool TBTriggerPatternUnit::hasMuon ( ) const
inline

Definition at line 76 of file TBTriggerPatternUnit.h.

77  { return ( m_triggerWord & 0x00000040 ) != 0; }

◆ hasS1()

bool TBTriggerPatternUnit::hasS1 ( ) const
inline

Definition at line 64 of file TBTriggerPatternUnit.h.

65  { return ( m_triggerWord & 0x00000001 ) != 0; }

◆ hasS2()

bool TBTriggerPatternUnit::hasS2 ( ) const
inline

Definition at line 66 of file TBTriggerPatternUnit.h.

67  { return ( m_triggerWord & 0x00000002 ) != 0; }

◆ hasS3()

bool TBTriggerPatternUnit::hasS3 ( ) const
inline

Definition at line 68 of file TBTriggerPatternUnit.h.

69  { return ( m_triggerWord & 0x00000004 ) != 0; }

◆ hasTCBack()

bool TBTriggerPatternUnit::hasTCBack ( ) const
inline

Definition at line 74 of file TBTriggerPatternUnit.h.

75  { return ( m_triggerWord & 0x00000020 ) != 0; }

◆ hasTCFront()

bool TBTriggerPatternUnit::hasTCFront ( ) const
inline

Definition at line 72 of file TBTriggerPatternUnit.h.

73  { return ( m_triggerWord & 0x00000010 ) != 0; }

◆ hasVeto()

bool TBTriggerPatternUnit::hasVeto ( ) const
inline

Definition at line 70 of file TBTriggerPatternUnit.h.

71  { return ( m_triggerWord & 0x00000008 ) != 0; }

◆ isCalib()

bool TBTriggerPatternUnit::isCalib ( ) const
inline

Definition at line 61 of file TBTriggerPatternUnit.h.

61 { return this->isMonitor(); }

◆ isMonitor()

bool TBTriggerPatternUnit::isMonitor ( ) const
inline

Definition at line 59 of file TBTriggerPatternUnit.h.

60  { return ( m_triggerWord & 0x00000400 ) != 0; }

◆ isParticle()

bool TBTriggerPatternUnit::isParticle ( ) const
inline

Definition at line 54 of file TBTriggerPatternUnit.h.

55  { return ( m_triggerWord & 0x00000100 ) != 0; }

◆ isPedestal()

bool TBTriggerPatternUnit::isPedestal ( ) const
inline

Definition at line 58 of file TBTriggerPatternUnit.h.

58 { return this->isRandom(); }

◆ isRandom()

bool TBTriggerPatternUnit::isRandom ( ) const
inline

Definition at line 56 of file TBTriggerPatternUnit.h.

57  { return ( m_triggerWord & 0x00000200 ) != 0; }

◆ setTriggerWord()

void TBTriggerPatternUnit::setTriggerWord ( unsigned int  word)

Definition at line 26 of file TBTriggerPatternUnit.cxx.

27 {
28 
29  unsigned int mask = 0x00000001;
30  m_triggerWord = triggerword;
31  m_triggers.resize(16);
32  for (unsigned int i=0; i<16; i++ )
33  {
35  mask *= 2;
36  }
37 }

Friends And Related Function Documentation

◆ TBTriggerPatternUnitCnv_p1

friend class TBTriggerPatternUnitCnv_p1
friend

Definition at line 94 of file TBTriggerPatternUnit.h.

Member Data Documentation

◆ m_triggers

std::vector<bool> TBTriggerPatternUnit::m_triggers
private

Definition at line 97 of file TBTriggerPatternUnit.h.

◆ m_triggerWord

unsigned int TBTriggerPatternUnit::m_triggerWord
private

Definition at line 96 of file TBTriggerPatternUnit.h.


The documentation for this class was generated from the following files:
TBTriggerPatternUnit::isRandom
bool isRandom() const
Definition: TBTriggerPatternUnit.h:56
python.utils.AtlRunQueryLookup.mask
string mask
Definition: AtlRunQueryLookup.py:460
lumiFormat.i
int i
Definition: lumiFormat.py:92
TBTriggerPatternUnit::isMonitor
bool isMonitor() const
Definition: TBTriggerPatternUnit.h:59
TBTriggerPatternUnit::m_triggerWord
unsigned int m_triggerWord
Definition: TBTriggerPatternUnit.h:96
TBTriggerPatternUnit::m_triggers
std::vector< bool > m_triggers
Definition: TBTriggerPatternUnit.h:97