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

#include <TrigConfSeq.h>

Collaboration diagram for TrigConfSeq:

Public Member Functions

 TrigConfSeq ()
 
 TrigConfSeq (unsigned int id, unsigned int index, const std::string &name)
 
 ~TrigConfSeq ()
 
void clearStrings ()
 
void addAlg (const TrigConfAlg &alg)
 
void addInputTE (uint32_t te_id)
 
void setTopoTE (uint32_t te_id)
 
uint16_t getIndex () const
 
uint32_t getId () const
 
const std::string & getName () const
 
uint32_t getTopoTE () const
 
const std::vector< uint32_t > & getInputTEs () const
 
const TrigConfAlggetAlg (unsigned int pos) const
 
const std::vector< TrigConfAlg > & getAlg () const
 
unsigned int getNAlg () const
 
std::vector< TrigConfAlg >::const_iterator algBeg () const
 
std::vector< TrigConfAlg >::const_iterator algEnd () const
 
std::vector< TrigConfAlg >::const_iterator findName (const std::string &aname) const
 
std::vector< TrigConfAlg >::const_iterator findType (const std::string &atype) const
 
bool matchAlgName (const std::string &aname) const
 
bool matchAlgType (const std::string &atype) const
 
void print (std::ostream &os=std::cout) const
 

Private Attributes

std::string m_output_te_name
 
uint16_t m_output_te_index
 
uint32_t m_output_te_id
 
uint32_t m_topo_te
 
std::vector< TrigConfAlgm_alg
 
std::vector< uint32_t > m_input_te
 

Detailed Description

Definition at line 28 of file TrigConfSeq.h.

Constructor & Destructor Documentation

◆ TrigConfSeq() [1/2]

TrigConfSeq::TrigConfSeq ( )

Definition at line 14 of file TrigConfSeq.cxx.

17  m_output_te_id(0),
18  m_topo_te(0)
19 {
20 }

◆ TrigConfSeq() [2/2]

TrigConfSeq::TrigConfSeq ( unsigned int  id,
unsigned int  index,
const std::string &  name 
)

Definition at line 23 of file TrigConfSeq.cxx.

28  m_output_te_id(id),
29  m_topo_te(0)
30 {
31 }

◆ ~TrigConfSeq()

TrigConfSeq::~TrigConfSeq ( )
inline

Definition at line 34 of file TrigConfSeq.h.

34 {}

Member Function Documentation

◆ addAlg()

void TrigConfSeq::addAlg ( const TrigConfAlg alg)
inline

Definition at line 38 of file TrigConfSeq.h.

38 { m_alg.push_back(alg); }

◆ addInputTE()

void TrigConfSeq::addInputTE ( uint32_t  te_id)
inline

Definition at line 39 of file TrigConfSeq.h.

39 { m_input_te.push_back(te_id); }

◆ algBeg()

std::vector<TrigConfAlg>::const_iterator TrigConfSeq::algBeg ( ) const
inline

Definition at line 54 of file TrigConfSeq.h.

54 { return m_alg.begin(); }

◆ algEnd()

std::vector<TrigConfAlg>::const_iterator TrigConfSeq::algEnd ( ) const
inline

Definition at line 55 of file TrigConfSeq.h.

55 { return m_alg.end(); }

◆ clearStrings()

void TrigConfSeq::clearStrings ( )

Definition at line 34 of file TrigConfSeq.cxx.

35 {
36  //
37  // Clear all string variables
38  //
39  m_output_te_name.clear();
40  for(unsigned int i = 0; i < m_alg.size(); ++i) m_alg[i].clearStrings();
41 }

◆ findName()

std::vector< TrigConfAlg >::const_iterator TrigConfSeq::findName ( const std::string &  aname) const

Definition at line 60 of file TrigConfSeq.cxx.

61 {
62  // find first algorithm by name
63  std::vector<TrigConfAlg>::const_iterator it = m_alg.begin();
64 
65  for(; it != m_alg.end(); ++it) {
66  if(it->getName() == aname) break;
67  }
68 
69  return it;
70 }

◆ findType()

std::vector< TrigConfAlg >::const_iterator TrigConfSeq::findType ( const std::string &  atype) const

Definition at line 73 of file TrigConfSeq.cxx.

74 {
75  // find first algorithm by type
76  std::vector<TrigConfAlg>::const_iterator it = m_alg.begin();
77 
78  for(; it != m_alg.end(); ++it) {
79  if(it->getType() == atype) break;
80  }
81 
82  return it;
83 }

◆ getAlg() [1/2]

const std::vector<TrigConfAlg>& TrigConfSeq::getAlg ( ) const
inline

Definition at line 50 of file TrigConfSeq.h.

50 { return m_alg; }

◆ getAlg() [2/2]

const TrigConfAlg & TrigConfSeq::getAlg ( unsigned int  pos) const

Definition at line 44 of file TrigConfSeq.cxx.

45 {
46  if(pos >= m_alg.size()) {
47  REPORT_MESSAGE_WITH_CONTEXT(MSG::ERROR, "TrigConfSeq")
48  << "getAlg(" << pos << ") error! Index is greater than alg size=" << m_alg.size() << " for " << m_output_te_name;
49  return m_alg.front();
50  }
51  if(m_alg[pos].getPosition() != pos) {
52  REPORT_MESSAGE_WITH_CONTEXT(MSG::ERROR, "TrigConfSeq")
53  << "getAlg(" << pos << ") error! Index mismatch: " << m_alg[pos].getPosition() << "!=" << pos;
54  }
55 
56  return m_alg[pos];
57 }

◆ getId()

uint32_t TrigConfSeq::getId ( ) const
inline

Definition at line 43 of file TrigConfSeq.h.

43 { return m_output_te_id; }

◆ getIndex()

uint16_t TrigConfSeq::getIndex ( ) const
inline

Definition at line 42 of file TrigConfSeq.h.

42 { return m_output_te_index; }

◆ getInputTEs()

const std::vector<uint32_t>& TrigConfSeq::getInputTEs ( ) const
inline

Definition at line 47 of file TrigConfSeq.h.

47 { return m_input_te; }

◆ getNAlg()

unsigned int TrigConfSeq::getNAlg ( ) const
inline

Definition at line 52 of file TrigConfSeq.h.

52 { return m_alg.size(); }

◆ getName()

const std::string& TrigConfSeq::getName ( ) const
inline

Definition at line 44 of file TrigConfSeq.h.

44 { return m_output_te_name; }

◆ getTopoTE()

uint32_t TrigConfSeq::getTopoTE ( ) const
inline

Definition at line 45 of file TrigConfSeq.h.

45 { return m_topo_te; }

◆ matchAlgName()

bool TrigConfSeq::matchAlgName ( const std::string &  aname) const

Definition at line 86 of file TrigConfSeq.cxx.

87 {
88  //
89  // Match algorithm name to a list of my configured algorithms
90  //
91  return (TrigConfSeq::findName(aname) != m_alg.end());
92 }

◆ matchAlgType()

bool TrigConfSeq::matchAlgType ( const std::string &  atype) const

Definition at line 95 of file TrigConfSeq.cxx.

96 {
97  //
98  // Match algorithm type to a list of my configured algorithms
99  //
100  return (TrigConfSeq::findType(atype) != m_alg.end());
101 }

◆ print()

void TrigConfSeq::print ( std::ostream &  os = std::cout) const

Definition at line 104 of file TrigConfSeq.cxx.

105 {
106  os << str(*this) << std::endl;
107 }

◆ setTopoTE()

void TrigConfSeq::setTopoTE ( uint32_t  te_id)
inline

Definition at line 40 of file TrigConfSeq.h.

40 { m_topo_te = te_id; }

Member Data Documentation

◆ m_alg

std::vector<TrigConfAlg> TrigConfSeq::m_alg
private

Definition at line 71 of file TrigConfSeq.h.

◆ m_input_te

std::vector<uint32_t> TrigConfSeq::m_input_te
private

Definition at line 72 of file TrigConfSeq.h.

◆ m_output_te_id

uint32_t TrigConfSeq::m_output_te_id
private

Definition at line 69 of file TrigConfSeq.h.

◆ m_output_te_index

uint16_t TrigConfSeq::m_output_te_index
private

Definition at line 68 of file TrigConfSeq.h.

◆ m_output_te_name

std::string TrigConfSeq::m_output_te_name
private

Definition at line 67 of file TrigConfSeq.h.

◆ m_topo_te

uint32_t TrigConfSeq::m_topo_te
private

Definition at line 70 of file TrigConfSeq.h.


The documentation for this class was generated from the following files:
TrigConfSeq::clearStrings
void clearStrings()
Definition: TrigConfSeq.cxx:34
SGout2dot.alg
alg
Definition: SGout2dot.py:243
index
Definition: index.py:1
TrigConfSeq::findName
std::vector< TrigConfAlg >::const_iterator findName(const std::string &aname) const
Definition: TrigConfSeq.cxx:60
skel.it
it
Definition: skel.GENtoEVGEN.py:396
str
std::string str(const TrigConfSeq &o)
Definition: TrigConfSeq.cxx:110
TrigConfSeq::m_alg
std::vector< TrigConfAlg > m_alg
Definition: TrigConfSeq.h:71
TrigConfSeq::m_topo_te
uint32_t m_topo_te
Definition: TrigConfSeq.h:70
TrigConfSeq::findType
std::vector< TrigConfAlg >::const_iterator findType(const std::string &atype) const
Definition: TrigConfSeq.cxx:73
TrigConfSeq::m_output_te_index
uint16_t m_output_te_index
Definition: TrigConfSeq.h:68
python.Dumpers.aname
string aname
Definition: Dumpers.py:5546
Pmt::getPosition
Eigen::Vector3d getPosition(const xAOD::TrackParticle &trk)
Definition: PoorMansIpAugmenterAlg.cxx:43
lumiFormat.i
int i
Definition: lumiFormat.py:85
TrigConfSeq::m_input_te
std::vector< uint32_t > m_input_te
Definition: TrigConfSeq.h:72
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
REPORT_MESSAGE_WITH_CONTEXT
#define REPORT_MESSAGE_WITH_CONTEXT(LVL, CONTEXT_NAME)
Report a message, with an explicitly specified context name.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:345
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
TrigConfSeq::m_output_te_name
std::string m_output_te_name
Definition: TrigConfSeq.h:67
TrigConfSeq::m_output_te_id
uint32_t m_output_te_id
Definition: TrigConfSeq.h:69