CMS 3D CMS Logo

L1GlobalTriggerObjectMapRecord Class Reference

Description: map trigger objects to algorithms and conditions. More...

#include <DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerObjectMapRecord.h>

List of all members.

Public Member Functions

const CombinationsInCondgetCombinationsInCond (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
const CombinationsInCondgetCombinationsInCond (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
const bool getConditionResult (const int algoBitNumberVal, const std::string &condNameVal) const
 return the result for the condition condNameVal from algorithm with bit number algoBitNumberVal
const bool getConditionResult (const std::string &algoNameVal, const std::string &condNameVal) const
 return the result for the condition condNameVal from algorithm with name algoNameVal
const L1GlobalTriggerObjectMapgetObjectMap (const int algoBitNumberVal) const
 return the object map for the algorithm with bit number const int algoBitNumberVal
const L1GlobalTriggerObjectMapgetObjectMap (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 > &gtObjectMapValue)
virtual ~L1GlobalTriggerObjectMapRecord ()
 destructor

Private Attributes

std::vector
< L1GlobalTriggerObjectMap
m_gtObjectMap


Detailed Description

Description: map trigger objects to algorithms and conditions.

Description: see header file.

Implementation: <TODO: enter implementation details>

Author:
: Vasile Mihai Ghete - HEPHY Vienna
$Date$ $Revision$

Definition at line 31 of file L1GlobalTriggerObjectMapRecord.h.


Constructor & Destructor Documentation

L1GlobalTriggerObjectMapRecord::L1GlobalTriggerObjectMapRecord (  ) 

constructor(s)

Definition at line 34 of file L1GlobalTriggerObjectMapRecord.cc.

00034                                                                {
00035     // empty    
00036 }

L1GlobalTriggerObjectMapRecord::~L1GlobalTriggerObjectMapRecord (  )  [virtual]

destructor

Definition at line 39 of file L1GlobalTriggerObjectMapRecord.cc.

00039                                                                 {
00040     // empty
00041 }


Member Function Documentation

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

References lat::endl(), and m_gtObjectMap.

00125 {
00126 
00127     for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itObj = m_gtObjectMap.begin();
00128             itObj != m_gtObjectMap.end(); ++itObj) {
00129 
00130         if ( itObj->algoBitNumber() == algoBitNumberVal ) {
00131             return itObj->getCombinationsInCond(condNameVal);
00132         }
00133     }
00134 
00135     // no (algoBitNumber, condName) found, return zero pointer!
00136     edm::LogError("L1GlobalTriggerObjectMapRecord")
00137     << "\n\n  ERROR: The requested \n    (algorithm bit number, condition name) = ("
00138     << algoBitNumberVal << ", " << condNameVal
00139     << ") \n  does not exists in the trigger menu."
00140     << "\n  Returning zero pointer for getCombinationsInCond\n\n"
00141     << std::endl;
00142 
00143     return 0;
00144 
00145 }

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

References lat::endl(), and m_gtObjectMap.

00097 {
00098 
00099     for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itObj = m_gtObjectMap.begin();
00100             itObj != m_gtObjectMap.end(); ++itObj) {
00101 
00102         if ( itObj->algoName() == algoNameVal ) {
00103 
00104             return itObj->getCombinationsInCond(condNameVal);
00105             
00106         }
00107     }
00108 
00109     // no (algoName, condName) found, return zero pointer!
00110     edm::LogError("L1GlobalTriggerObjectMapRecord")
00111     << "\n\n  ERROR: The requested \n    (algorithm name, condition name) = ("
00112     << algoNameVal << ", " << condNameVal
00113     << ") \n  does not exists in the trigger menu."
00114     << "\n  Returning zero pointer for getCombinationsInCond\n\n"
00115     << std::endl;
00116 
00117     return 0;
00118 
00119 }

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

References lat::endl(), and m_gtObjectMap.

00177 {
00178 
00179     for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itObj = m_gtObjectMap.begin();
00180             itObj != m_gtObjectMap.end(); ++itObj) {
00181 
00182         if ( itObj->algoBitNumber() == algoBitNumberVal ) {
00183             return itObj->getConditionResult(condNameVal);
00184         }
00185     }
00186 
00187     // no (algoBitNumber, condName) found, return false!
00188     edm::LogError("L1GlobalTriggerObjectMapRecord")
00189     << "\n\n  ERROR: The requested \n    (algorithm bit number, condition name) = ("
00190     << algoBitNumberVal << ", " << condNameVal
00191     << ") \n  does not exists in the trigger menu."
00192     << "\n  Returning false for condition result! Unknown result, in fact!\n\n"
00193     << std::endl;
00194 
00195     return false;
00196 
00197 }

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

References lat::endl(), and m_gtObjectMap.

00151 {
00152 
00153     for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itObj = m_gtObjectMap.begin();
00154             itObj != m_gtObjectMap.end(); ++itObj) {
00155 
00156         if ( itObj->algoName() == algoNameVal ) {
00157             return itObj->getConditionResult(condNameVal);
00158         }
00159     }
00160 
00161     // no (algoName, condName) found, return false!
00162     edm::LogError("L1GlobalTriggerObjectMapRecord")
00163     << "\n\n  ERROR: The requested \n    (algorithm name, condition name) = ("
00164     << algoNameVal << ", " << condNameVal
00165     << ") \n  does not exists in the trigger menu."
00166     << "\n  Returning false for condition result! Unknown result, in fact!\n\n"
00167     << std::endl;
00168 
00169     return false;
00170 
00171 }

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

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

Definition at line 70 of file L1GlobalTriggerObjectMapRecord.cc.

References lat::endl(), and m_gtObjectMap.

00071                                       {
00072  
00073     for (std::vector<L1GlobalTriggerObjectMap>::const_iterator 
00074         itObj = m_gtObjectMap.begin(); itObj != m_gtObjectMap.end(); ++itObj) {
00075 
00076         if (itObj->algoBitNumber() == algoBitNumberVal) {
00077 
00078             return &((*itObj));
00079         }
00080 
00081     }
00082 
00083     // no algoBitNumberVal found, return zero pointer!
00084     edm::LogError("L1GlobalTriggerObjectMapRecord")
00085         << "\n\n  ERROR: The requested algorithm with bit number = " << algoBitNumberVal
00086         << "\n  does not exists in the trigger menu."
00087         << "\n  Returning zero pointer for getObjectMap\n\n" << std::endl;
00088 
00089     return 0;
00090     
00091 }

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

return the object map for the algorithm algoNameVal

Definition at line 46 of file L1GlobalTriggerObjectMapRecord.cc.

References lat::endl(), and m_gtObjectMap.

00047                                         {
00048 
00049     for (std::vector<L1GlobalTriggerObjectMap>::const_iterator 
00050         itObj = m_gtObjectMap.begin(); itObj != m_gtObjectMap.end(); ++itObj) {
00051 
00052         if (itObj->algoName() == algoNameVal) {
00053 
00054             return &((*itObj));
00055         }
00056 
00057     }
00058 
00059     // no algoName found, return zero pointer!
00060     edm::LogError("L1GlobalTriggerObjectMapRecord")
00061         << "\n\n  ERROR: The requested algorithm name = " << algoNameVal
00062         << "\n  does not exists in the trigger menu."
00063         << "\n  Returning zero pointer for getObjectMap\n\n" << std::endl;
00064 
00065     return 0;
00066 
00067 }

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

get / set the vector of object maps

Definition at line 71 of file L1GlobalTriggerObjectMapRecord.h.

References m_gtObjectMap.

Referenced by L1TauAnalyzer::evalL1Decisions().

00072     {
00073         return m_gtObjectMap;
00074     }

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

Definition at line 76 of file L1GlobalTriggerObjectMapRecord.h.

References m_gtObjectMap.

00077     {
00078         m_gtObjectMap = gtObjectMapValue;
00079     }


Member Data Documentation

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

Definition at line 83 of file L1GlobalTriggerObjectMapRecord.h.

Referenced by getCombinationsInCond(), getConditionResult(), getObjectMap(), gtObjectMap(), and setGtObjectMap().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:26:41 2009 for CMSSW by  doxygen 1.5.4