#include <L1GlobalTriggerObjectMapRecord.h>
Public Member Functions | |
const CombinationsInCond * | getCombinationsInCond (const std::string &algoNameVal, const std::string &condNameVal) const |
const CombinationsInCond * | getCombinationsInCond (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 L1GlobalTriggerObjectMap * | getObjectMap (const int algoBitNumberVal) const |
return the object map for the algorithm with bit number const int algoBitNumberVal | |
const L1GlobalTriggerObjectMap * | getObjectMap (const std::string &algoNameVal) const |
return the object map for the algorithm algoNameVal | |
const std::vector < L1GlobalTriggerObjectMap > & | gtObjectMap () const |
get / set the vector of object maps | |
L1GlobalTriggerObjectMapRecord () | |
constructor(s) | |
void | setGtObjectMap (const std::vector< L1GlobalTriggerObjectMap > >ObjectMapValue) |
void | swap (L1GlobalTriggerObjectMapRecord &rh) |
void | swapGtObjectMap (std::vector< L1GlobalTriggerObjectMap > >ObjectMapValue) |
~L1GlobalTriggerObjectMapRecord () | |
destructor | |
Private Attributes | |
std::vector < L1GlobalTriggerObjectMap > | m_gtObjectMap |
Description: map trigger objects to algorithms and conditions.
Implementation: <TODO: enter implementation details>
$Date$ $Revision$
Description: see header file.
Implementation: <TODO: enter implementation details>
$Date$ $Revision$
Description: see header file.
Implementation: <TODO: enter implementation details>
Definition at line 31 of file L1GlobalTriggerObjectMapRecord.h.
L1GlobalTriggerObjectMapRecord::L1GlobalTriggerObjectMapRecord | ( | ) | [inline] |
L1GlobalTriggerObjectMapRecord::~L1GlobalTriggerObjectMapRecord | ( | ) | [inline] |
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.
{ for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itObj = m_gtObjectMap.begin(); itObj != m_gtObjectMap.end(); ++itObj) { if ( itObj->algoName() == algoNameVal ) { return itObj->getCombinationsInCond(condNameVal); } } // no (algoName, condName) found, return zero pointer! edm::LogError("L1GlobalTriggerObjectMapRecord") << "\n\n ERROR: The requested \n (algorithm name, condition name) = (" << algoNameVal << ", " << condNameVal << ") \n does not exists in the trigger menu." << "\n Returning zero pointer for getCombinationsInCond\n\n" << std::endl; return 0; }
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.
{ for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itObj = m_gtObjectMap.begin(); itObj != m_gtObjectMap.end(); ++itObj) { if ( itObj->algoBitNumber() == algoBitNumberVal ) { return itObj->getCombinationsInCond(condNameVal); } } // no (algoBitNumber, condName) found, return zero pointer! edm::LogError("L1GlobalTriggerObjectMapRecord") << "\n\n ERROR: The requested \n (algorithm bit number, condition name) = (" << algoBitNumberVal << ", " << condNameVal << ") \n does not exists in the trigger menu." << "\n Returning zero pointer for getCombinationsInCond\n\n" << std::endl; return 0; }
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.
{ for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itObj = m_gtObjectMap.begin(); itObj != m_gtObjectMap.end(); ++itObj) { if ( itObj->algoName() == algoNameVal ) { return itObj->getConditionResult(condNameVal); } } // no (algoName, condName) found, return false! edm::LogError("L1GlobalTriggerObjectMapRecord") << "\n\n ERROR: The requested \n (algorithm name, condition name) = (" << algoNameVal << ", " << condNameVal << ") \n does not exists in the trigger menu." << "\n Returning false for condition result! Unknown result, in fact!\n\n" << std::endl; return false; }
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.
{ for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itObj = m_gtObjectMap.begin(); itObj != m_gtObjectMap.end(); ++itObj) { if ( itObj->algoBitNumber() == algoBitNumberVal ) { return itObj->getConditionResult(condNameVal); } } // no (algoBitNumber, condName) found, return false! edm::LogError("L1GlobalTriggerObjectMapRecord") << "\n\n ERROR: The requested \n (algorithm bit number, condition name) = (" << algoBitNumberVal << ", " << condNameVal << ") \n does not exists in the trigger menu." << "\n Returning false for condition result! Unknown result, in fact!\n\n" << std::endl; return false; }
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.
{ for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itObj = m_gtObjectMap.begin(); itObj != m_gtObjectMap.end(); ++itObj) { if (itObj->algoName() == algoNameVal) { return &((*itObj)); } } // no algoName found, return zero pointer! edm::LogError("L1GlobalTriggerObjectMapRecord") << "\n\n ERROR: The requested algorithm name = " << algoNameVal << "\n does not exists in the trigger menu." << "\n Returning zero pointer for getObjectMap\n\n" << std::endl; return 0; }
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.
{ for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itObj = m_gtObjectMap.begin(); itObj != m_gtObjectMap.end(); ++itObj) { if (itObj->algoBitNumber() == algoBitNumberVal) { return &((*itObj)); } } // no algoBitNumberVal found, return zero pointer! edm::LogError("L1GlobalTriggerObjectMapRecord") << "\n\n ERROR: The requested algorithm with bit number = " << algoBitNumberVal << "\n does not exists in the trigger menu." << "\n Returning zero pointer for getObjectMap\n\n" << std::endl; return 0; }
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().
{ return m_gtObjectMap; }
void L1GlobalTriggerObjectMapRecord::setGtObjectMap | ( | const std::vector< L1GlobalTriggerObjectMap > & | gtObjectMapValue | ) | [inline] |
Definition at line 80 of file L1GlobalTriggerObjectMapRecord.h.
References m_gtObjectMap.
{ m_gtObjectMap = gtObjectMapValue; }
void L1GlobalTriggerObjectMapRecord::swap | ( | L1GlobalTriggerObjectMapRecord & | rh | ) | [inline] |
Definition at line 42 of file L1GlobalTriggerObjectMapRecord.h.
References m_gtObjectMap.
Referenced by swap().
{ m_gtObjectMap.swap(rh.m_gtObjectMap); }
void L1GlobalTriggerObjectMapRecord::swapGtObjectMap | ( | std::vector< L1GlobalTriggerObjectMap > & | gtObjectMapValue | ) | [inline] |
Definition at line 85 of file L1GlobalTriggerObjectMapRecord.h.
References m_gtObjectMap.
{ m_gtObjectMap.swap(gtObjectMapValue); }
std::vector<L1GlobalTriggerObjectMap> L1GlobalTriggerObjectMapRecord::m_gtObjectMap [private] |
Definition at line 93 of file L1GlobalTriggerObjectMapRecord.h.
Referenced by getCombinationsInCond(), getConditionResult(), getObjectMap(), gtObjectMap(), setGtObjectMap(), swap(), and swapGtObjectMap().