CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
< L1GlobalTriggerObjectMap
m_gtObjectMap
 

Detailed Description

Description: map trigger objects to algorithms and conditions.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Description: see header file.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Description: see header file.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna
: W. David Dagenhart
Date:
2012/03/02 21:46:28
Revision:
1.1

Definition at line 31 of file L1GlobalTriggerObjectMapRecord.h.

Constructor & Destructor Documentation

L1GlobalTriggerObjectMapRecord::L1GlobalTriggerObjectMapRecord ( )
inline

constructor(s)

Definition at line 37 of file L1GlobalTriggerObjectMapRecord.h.

37 {}
L1GlobalTriggerObjectMapRecord::~L1GlobalTriggerObjectMapRecord ( )
inline

destructor

Definition at line 40 of file L1GlobalTriggerObjectMapRecord.h.

40 {}

Member Function Documentation

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 86 of file L1GlobalTriggerObjectMapRecord.cc.

References m_gtObjectMap.

88 {
89 
90  for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itObj = m_gtObjectMap.begin();
91  itObj != m_gtObjectMap.end(); ++itObj) {
92 
93  if ( itObj->algoName() == algoNameVal ) {
94 
95  return itObj->getCombinationsInCond(condNameVal);
96 
97  }
98  }
99 
100  // no (algoName, condName) found, return zero pointer!
101  edm::LogError("L1GlobalTriggerObjectMapRecord")
102  << "\n\n ERROR: The requested \n (algorithm name, condition name) = ("
103  << algoNameVal << ", " << condNameVal
104  << ") \n does not exists in the trigger menu."
105  << "\n Returning zero pointer for getCombinationsInCond\n\n"
106  << std::endl;
107 
108  return 0;
109 
110 }
std::vector< L1GlobalTriggerObjectMap > m_gtObjectMap
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 114 of file L1GlobalTriggerObjectMapRecord.cc.

References m_gtObjectMap.

116 {
117 
118  for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itObj = m_gtObjectMap.begin();
119  itObj != m_gtObjectMap.end(); ++itObj) {
120 
121  if ( itObj->algoBitNumber() == algoBitNumberVal ) {
122  return itObj->getCombinationsInCond(condNameVal);
123  }
124  }
125 
126  // no (algoBitNumber, condName) found, return zero pointer!
127  edm::LogError("L1GlobalTriggerObjectMapRecord")
128  << "\n\n ERROR: The requested \n (algorithm bit number, condition name) = ("
129  << algoBitNumberVal << ", " << condNameVal
130  << ") \n does not exists in the trigger menu."
131  << "\n Returning zero pointer for getCombinationsInCond\n\n"
132  << std::endl;
133 
134  return 0;
135 
136 }
std::vector< L1GlobalTriggerObjectMap > m_gtObjectMap
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 140 of file L1GlobalTriggerObjectMapRecord.cc.

References m_gtObjectMap.

142 {
143 
144  for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itObj = m_gtObjectMap.begin();
145  itObj != m_gtObjectMap.end(); ++itObj) {
146 
147  if ( itObj->algoName() == algoNameVal ) {
148  return itObj->getConditionResult(condNameVal);
149  }
150  }
151 
152  // no (algoName, condName) found, return false!
153  edm::LogError("L1GlobalTriggerObjectMapRecord")
154  << "\n\n ERROR: The requested \n (algorithm name, condition name) = ("
155  << algoNameVal << ", " << condNameVal
156  << ") \n does not exists in the trigger menu."
157  << "\n Returning false for condition result! Unknown result, in fact!\n\n"
158  << std::endl;
159 
160  return false;
161 
162 }
std::vector< L1GlobalTriggerObjectMap > m_gtObjectMap
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 166 of file L1GlobalTriggerObjectMapRecord.cc.

References m_gtObjectMap.

168 {
169 
170  for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itObj = m_gtObjectMap.begin();
171  itObj != m_gtObjectMap.end(); ++itObj) {
172 
173  if ( itObj->algoBitNumber() == algoBitNumberVal ) {
174  return itObj->getConditionResult(condNameVal);
175  }
176  }
177 
178  // no (algoBitNumber, condName) found, return false!
179  edm::LogError("L1GlobalTriggerObjectMapRecord")
180  << "\n\n ERROR: The requested \n (algorithm bit number, condition name) = ("
181  << algoBitNumberVal << ", " << condNameVal
182  << ") \n does not exists in the trigger menu."
183  << "\n Returning false for condition result! Unknown result, in fact!\n\n"
184  << std::endl;
185 
186  return false;
187 
188 }
std::vector< L1GlobalTriggerObjectMap > m_gtObjectMap
const L1GlobalTriggerObjectMap * L1GlobalTriggerObjectMapRecord::getObjectMap ( const std::string &  algoNameVal) const

return the object map for the algorithm algoNameVal

Definition at line 37 of file L1GlobalTriggerObjectMapRecord.cc.

References m_gtObjectMap.

38  {
39 
40  for (std::vector<L1GlobalTriggerObjectMap>::const_iterator
41  itObj = m_gtObjectMap.begin(); itObj != m_gtObjectMap.end(); ++itObj) {
42 
43  if (itObj->algoName() == algoNameVal) {
44 
45  return &((*itObj));
46  }
47 
48  }
49 
50  // no algoName found, return zero pointer!
51  edm::LogError("L1GlobalTriggerObjectMapRecord")
52  << "\n\n ERROR: The requested algorithm name = " << algoNameVal
53  << "\n does not exists in the trigger menu."
54  << "\n Returning zero pointer for getObjectMap\n\n" << std::endl;
55 
56  return 0;
57 
58 }
std::vector< L1GlobalTriggerObjectMap > m_gtObjectMap
const L1GlobalTriggerObjectMap * L1GlobalTriggerObjectMapRecord::getObjectMap ( const int  algoBitNumberVal) const

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

Definition at line 61 of file L1GlobalTriggerObjectMapRecord.cc.

References m_gtObjectMap.

62  {
63 
64  for (std::vector<L1GlobalTriggerObjectMap>::const_iterator
65  itObj = m_gtObjectMap.begin(); itObj != m_gtObjectMap.end(); ++itObj) {
66 
67  if (itObj->algoBitNumber() == algoBitNumberVal) {
68 
69  return &((*itObj));
70  }
71 
72  }
73 
74  // no algoBitNumberVal found, return zero pointer!
75  edm::LogError("L1GlobalTriggerObjectMapRecord")
76  << "\n\n ERROR: The requested algorithm with bit number = " << algoBitNumberVal
77  << "\n does not exists in the trigger menu."
78  << "\n Returning zero pointer for getObjectMap\n\n" << std::endl;
79 
80  return 0;
81 
82 }
std::vector< L1GlobalTriggerObjectMap > m_gtObjectMap
const std::vector<L1GlobalTriggerObjectMap>& L1GlobalTriggerObjectMapRecord::gtObjectMap ( ) const
inline

get / set the vector of object maps

Definition at line 75 of file L1GlobalTriggerObjectMapRecord.h.

References m_gtObjectMap.

Referenced by L1TauAnalyzer::evalL1Decisions().

76  {
77  return m_gtObjectMap;
78  }
std::vector< L1GlobalTriggerObjectMap > m_gtObjectMap
void L1GlobalTriggerObjectMapRecord::setGtObjectMap ( const std::vector< L1GlobalTriggerObjectMap > &  gtObjectMapValue)
inline

Definition at line 80 of file L1GlobalTriggerObjectMapRecord.h.

References m_gtObjectMap.

81  {
82  m_gtObjectMap = gtObjectMapValue;
83  }
std::vector< L1GlobalTriggerObjectMap > m_gtObjectMap
void L1GlobalTriggerObjectMapRecord::swap ( L1GlobalTriggerObjectMapRecord rh)
inline

Definition at line 42 of file L1GlobalTriggerObjectMapRecord.h.

References m_gtObjectMap.

Referenced by swap().

42  {
44  }
std::vector< L1GlobalTriggerObjectMap > m_gtObjectMap
void L1GlobalTriggerObjectMapRecord::swapGtObjectMap ( std::vector< L1GlobalTriggerObjectMap > &  gtObjectMapValue)
inline

Definition at line 85 of file L1GlobalTriggerObjectMapRecord.h.

References m_gtObjectMap.

86  {
87  m_gtObjectMap.swap(gtObjectMapValue);
88  }
std::vector< L1GlobalTriggerObjectMap > m_gtObjectMap

Member Data Documentation

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