CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
L1GlobalTriggerObjectMapRecord Class Reference

#include <L1GlobalTriggerObjectMapRecord.h>

Public Member Functions

const CombinationsInCondgetCombinationsInCond (const std::string &algoNameVal, const std::string &condNameVal) const
 
const CombinationsInCondgetCombinationsInCond (const int algoBitNumberVal, const std::string &condNameVal) const
 
bool getConditionResult (const std::string &algoNameVal, const std::string &condNameVal) const
 
bool getConditionResult (const int algoBitNumberVal, const std::string &condNameVal) const
 
const L1GlobalTriggerObjectMapgetObjectMap (const std::string &algoNameVal) const
 return the object map for the algorithm algoNameVal More...
 
const L1GlobalTriggerObjectMapgetObjectMap (const int algoBitNumberVal) const
 return the object map for the algorithm with bit number const int algoBitNumberVal More...
 
const std::vector< L1GlobalTriggerObjectMap > & gtObjectMap () const
 get / set the vector of object maps More...
 
 L1GlobalTriggerObjectMapRecord ()
 constructor(s) More...
 
void setGtObjectMap (const std::vector< L1GlobalTriggerObjectMap > &gtObjectMapValue)
 
void swap (L1GlobalTriggerObjectMapRecord &rh)
 
void swapGtObjectMap (std::vector< L1GlobalTriggerObjectMap > &gtObjectMapValue)
 
 ~L1GlobalTriggerObjectMapRecord ()
 destructor More...
 

Private Attributes

std::vector< L1GlobalTriggerObjectMapm_gtObjectMap
 

Detailed Description

Description: map trigger objects to algorithms and conditions.
Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

Description: see header file.
Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

Description: see header file.
Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna
: W. David Dagenhart

Definition at line 29 of file L1GlobalTriggerObjectMapRecord.h.

Constructor & Destructor Documentation

◆ L1GlobalTriggerObjectMapRecord()

L1GlobalTriggerObjectMapRecord::L1GlobalTriggerObjectMapRecord ( )
inline

constructor(s)

Definition at line 32 of file L1GlobalTriggerObjectMapRecord.h.

32 {}

◆ ~L1GlobalTriggerObjectMapRecord()

L1GlobalTriggerObjectMapRecord::~L1GlobalTriggerObjectMapRecord ( )
inline

destructor

Definition at line 35 of file L1GlobalTriggerObjectMapRecord.h.

35 {}

Member Function Documentation

◆ getCombinationsInCond() [1/2]

const CombinationsInCond * L1GlobalTriggerObjectMapRecord::getCombinationsInCond ( const std::string &  algoNameVal,
const std::string &  condNameVal 
) const

return all the combinations passing the requirements imposed in condition condNameVal from algorithm with name algoNameVal

Definition at line 71 of file L1GlobalTriggerObjectMapRecord.cc.

References m_gtObjectMap.

Referenced by L1GtAnalyzer::analyzeObjectMap().

72  {
73  for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itObj = m_gtObjectMap.begin();
74  itObj != m_gtObjectMap.end();
75  ++itObj) {
76  if (itObj->algoName() == algoNameVal) {
77  return itObj->getCombinationsInCond(condNameVal);
78  }
79  }
80 
81  // no (algoName, condName) found, return zero pointer!
82  edm::LogError("L1GlobalTriggerObjectMapRecord")
83  << " ERROR: The requested (algorithm name, condition name) = (" << algoNameVal << ", " << condNameVal
84  << ") does not exist in the trigger menu."
85  << " Returning zero pointer for getCombinationsInCond." << std::endl;
86 
87  return nullptr;
88 }
Log< level::Error, false > LogError
std::vector< L1GlobalTriggerObjectMap > m_gtObjectMap

◆ getCombinationsInCond() [2/2]

const CombinationsInCond * L1GlobalTriggerObjectMapRecord::getCombinationsInCond ( const int  algoBitNumberVal,
const std::string &  condNameVal 
) const

return all the combinations passing the requirements imposed in condition condNameVal from algorithm with bit number algoBitNumberVal

Definition at line 92 of file L1GlobalTriggerObjectMapRecord.cc.

References m_gtObjectMap.

93  {
94  for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itObj = m_gtObjectMap.begin();
95  itObj != m_gtObjectMap.end();
96  ++itObj) {
97  if (itObj->algoBitNumber() == algoBitNumberVal) {
98  return itObj->getCombinationsInCond(condNameVal);
99  }
100  }
101 
102  // no (algoBitNumber, condName) found, return zero pointer!
103  edm::LogError("L1GlobalTriggerObjectMapRecord")
104  << " ERROR: The requested (algorithm bit number, condition name) = (" << algoBitNumberVal << ", " << condNameVal
105  << ") does not exist in the trigger menu."
106  << " Returning zero pointer for getCombinationsInCond." << std::endl;
107 
108  return nullptr;
109 }
Log< level::Error, false > LogError
std::vector< L1GlobalTriggerObjectMap > m_gtObjectMap

◆ getConditionResult() [1/2]

bool L1GlobalTriggerObjectMapRecord::getConditionResult ( const std::string &  algoNameVal,
const std::string &  condNameVal 
) const

return the result for the condition condNameVal from algorithm with name algoNameVal

Definition at line 113 of file L1GlobalTriggerObjectMapRecord.cc.

References m_gtObjectMap.

Referenced by L1GtAnalyzer::analyzeObjectMap().

114  {
115  for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itObj = m_gtObjectMap.begin();
116  itObj != m_gtObjectMap.end();
117  ++itObj) {
118  if (itObj->algoName() == algoNameVal) {
119  return itObj->getConditionResult(condNameVal);
120  }
121  }
122 
123  // no (algoName, condName) found, return false!
124  edm::LogError("L1GlobalTriggerObjectMapRecord")
125  << " ERROR: The requested (algorithm name, condition name) = (" << algoNameVal << ", " << condNameVal
126  << ") does not exist in the trigger menu."
127  << " Returning false for condition result! Unknown result, in fact!" << std::endl;
128 
129  return false;
130 }
Log< level::Error, false > LogError
std::vector< L1GlobalTriggerObjectMap > m_gtObjectMap

◆ getConditionResult() [2/2]

bool L1GlobalTriggerObjectMapRecord::getConditionResult ( const int  algoBitNumberVal,
const std::string &  condNameVal 
) const

return the result for the condition condNameVal from algorithm with bit number algoBitNumberVal

Definition at line 134 of file L1GlobalTriggerObjectMapRecord.cc.

References m_gtObjectMap.

135  {
136  for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itObj = m_gtObjectMap.begin();
137  itObj != m_gtObjectMap.end();
138  ++itObj) {
139  if (itObj->algoBitNumber() == algoBitNumberVal) {
140  return itObj->getConditionResult(condNameVal);
141  }
142  }
143 
144  // no (algoBitNumber, condName) found, return false!
145  edm::LogError("L1GlobalTriggerObjectMapRecord")
146  << " ERROR: The requested (algorithm bit number, condition name) = (" << algoBitNumberVal << ", " << condNameVal
147  << ") does not exist in the trigger menu."
148  << " Returning false for condition result! Unknown result, in fact!" << std::endl;
149 
150  return false;
151 }
Log< level::Error, false > LogError
std::vector< L1GlobalTriggerObjectMap > m_gtObjectMap

◆ getObjectMap() [1/2]

const L1GlobalTriggerObjectMap * L1GlobalTriggerObjectMapRecord::getObjectMap ( const std::string &  algoNameVal) const

return the object map for the algorithm algoNameVal

Definition at line 33 of file L1GlobalTriggerObjectMapRecord.cc.

References m_gtObjectMap.

Referenced by CompareToObjectMapRecord::analyze(), ConvertObjectMapRecord::produce(), and HLTLevel1GTSeed::seedsL1TriggerObjectMaps().

33  {
34  for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itObj = m_gtObjectMap.begin();
35  itObj != m_gtObjectMap.end();
36  ++itObj) {
37  if (itObj->algoName() == algoNameVal) {
38  return &((*itObj));
39  }
40  }
41 
42  // no algoName found, return zero pointer!
43  edm::LogError("L1GlobalTriggerObjectMapRecord")
44  << " ERROR: The requested algorithm name = " << algoNameVal << " does not exist in the trigger menu."
45  << " Returning zero pointer for getObjectMap." << std::endl;
46 
47  return nullptr;
48 }
Log< level::Error, false > LogError
std::vector< L1GlobalTriggerObjectMap > m_gtObjectMap

◆ getObjectMap() [2/2]

const L1GlobalTriggerObjectMap * L1GlobalTriggerObjectMapRecord::getObjectMap ( const int  algoBitNumberVal) const

return the object map for the algorithm with bit number const int algoBitNumberVal

Definition at line 51 of file L1GlobalTriggerObjectMapRecord.cc.

References m_gtObjectMap.

51  {
52  for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itObj = m_gtObjectMap.begin();
53  itObj != m_gtObjectMap.end();
54  ++itObj) {
55  if (itObj->algoBitNumber() == algoBitNumberVal) {
56  return &((*itObj));
57  }
58  }
59 
60  // no algoBitNumberVal found, return zero pointer!
61  edm::LogError("L1GlobalTriggerObjectMapRecord")
62  << " ERROR: The requested algorithm with bit number = " << algoBitNumberVal
63  << " does not exist in the trigger menu."
64  << " Returning zero pointer for getObjectMap." << std::endl;
65 
66  return nullptr;
67 }
Log< level::Error, false > LogError
std::vector< L1GlobalTriggerObjectMap > m_gtObjectMap

◆ gtObjectMap()

const std::vector<L1GlobalTriggerObjectMap>& L1GlobalTriggerObjectMapRecord::gtObjectMap ( ) const
inline

◆ setGtObjectMap()

void L1GlobalTriggerObjectMapRecord::setGtObjectMap ( const std::vector< L1GlobalTriggerObjectMap > &  gtObjectMapValue)
inline

Definition at line 66 of file L1GlobalTriggerObjectMapRecord.h.

References m_gtObjectMap.

66  {
67  m_gtObjectMap = gtObjectMapValue;
68  }
std::vector< L1GlobalTriggerObjectMap > m_gtObjectMap

◆ swap()

void L1GlobalTriggerObjectMapRecord::swap ( L1GlobalTriggerObjectMapRecord rh)
inline

Definition at line 37 of file L1GlobalTriggerObjectMapRecord.h.

References m_gtObjectMap.

37 { m_gtObjectMap.swap(rh.m_gtObjectMap); }
std::vector< L1GlobalTriggerObjectMap > m_gtObjectMap

◆ swapGtObjectMap()

void L1GlobalTriggerObjectMapRecord::swapGtObjectMap ( std::vector< L1GlobalTriggerObjectMap > &  gtObjectMapValue)
inline

Definition at line 70 of file L1GlobalTriggerObjectMapRecord.h.

References m_gtObjectMap.

Referenced by L1GlobalTriggerGTL::run().

70  {
71  m_gtObjectMap.swap(gtObjectMapValue);
72  }
std::vector< L1GlobalTriggerObjectMap > m_gtObjectMap

Member Data Documentation

◆ m_gtObjectMap

std::vector<L1GlobalTriggerObjectMap> L1GlobalTriggerObjectMapRecord::m_gtObjectMap
private