CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes | Friends
L1GtTriggerMenuLite Class Reference

#include <L1GtTriggerMenuLite.h>

Public Types

typedef
L1TriggerMap::const_iterator 
CItL1Trig
 iterators through map containing the physics algorithms or the technical triggers More...
 
typedef L1TriggerMap::iterator ItL1Trig
 
typedef std::map< unsigned int,
std::string > 
L1TriggerMap
 map containing the physics algorithms or the technical triggers More...
 

Public Member Functions

const std::string * gtAlgorithmAlias (const unsigned int bitNumber, int &errorCode) const
 get the alias for a physics algorithm with a given bit number More...
 
const L1TriggerMapgtAlgorithmAliasMap () const
 get / set the algorithm map (by alias) More...
 
const L1TriggerMapgtAlgorithmMap () const
 get / set the algorithm map (by name) More...
 
const std::string * gtAlgorithmName (const unsigned int bitNumber, int &errorCode) const
 
const unsigned int gtBitNumber (const std::string &trigName, int &errorCode) const
 
const std::vector< std::vector
< int > > & 
gtPrescaleFactorsAlgoTrig () const
 get the prescale factors by reference / set the prescale factors More...
 
const std::vector< std::vector
< int > > & 
gtPrescaleFactorsTechTrig () const
 
const std::string & gtScaleDbKey () const
 menu associated scale key More...
 
const L1TriggerMapgtTechnicalTriggerMap () const
 get / set the technical trigger map More...
 
const std::string * gtTechTrigName (const unsigned int bitNumber, int &errorCode) const
 
const std::vector< unsigned int > & gtTriggerMaskAlgoTrig () const
 get the trigger mask for physics algorithms More...
 
const std::vector< unsigned int > & gtTriggerMaskTechTrig () const
 get the trigger mask for technical triggers More...
 
const std::string & gtTriggerMenuImplementation () const
 
const std::string & gtTriggerMenuInterface () const
 get / set the trigger menu names More...
 
const std::string & gtTriggerMenuName () const
 
const bool gtTriggerResult (const std::string &trigName, const std::vector< bool > &decWord, int &errorCode) const
 
bool isProductEqual (const L1GtTriggerMenuLite &) const
 merge rule: test on isProductEqual More...
 
 L1GtTriggerMenuLite ()
 constructor More...
 
 L1GtTriggerMenuLite (const std::string &, const L1TriggerMap &, const L1TriggerMap &, const L1TriggerMap &, const std::vector< unsigned int > &, const std::vector< unsigned int > &, const std::vector< std::vector< int > > &, const std::vector< std::vector< int > > &)
 
 L1GtTriggerMenuLite (const L1GtTriggerMenuLite &)
 copy constructor More...
 
bool operator!= (const L1GtTriggerMenuLite &) const
 unequal operator More...
 
L1GtTriggerMenuLiteoperator= (const L1GtTriggerMenuLite &)
 assignment operator More...
 
bool operator== (const L1GtTriggerMenuLite &) const
 equal operator More...
 
void print (std::ostream &, int &) const
 
void setGtAlgorithmAliasMap (const L1TriggerMap &)
 
void setGtAlgorithmMap (const L1TriggerMap &)
 
void setGtPrescaleFactorsAlgoTrig (const std::vector< std::vector< int > > &)
 
void setGtPrescaleFactorsTechTrig (const std::vector< std::vector< int > > &)
 
void setGtScaleDbKey (const std::string &)
 
void setGtTechnicalTriggerMap (const L1TriggerMap &)
 
void setGtTriggerMaskAlgoTrig (const std::vector< unsigned int > &)
 set the trigger mask for physics algorithms More...
 
void setGtTriggerMaskTechTrig (const std::vector< unsigned int > &)
 set the trigger mask for technical triggers More...
 
void setGtTriggerMenuImplementation (const std::string &)
 
void setGtTriggerMenuInterface (const std::string &)
 
void setGtTriggerMenuName (const std::string &)
 
virtual ~L1GtTriggerMenuLite ()
 

Private Attributes

L1TriggerMap m_algorithmAliasMap
 map containing the physics algorithms (by alias) More...
 
L1TriggerMap m_algorithmMap
 map containing the physics algorithms (by name) More...
 
std::vector< std::vector< int > > m_prescaleFactorsAlgoTrig
 prescale factors More...
 
std::vector< std::vector< int > > m_prescaleFactorsTechTrig
 
std::string m_scaleDbKey
 menu associated scale key More...
 
L1TriggerMap m_technicalTriggerMap
 map containing the technical triggers More...
 
std::vector< unsigned int > m_triggerMaskAlgoTrig
 trigger mask for physics algorithms More...
 
std::vector< unsigned int > m_triggerMaskTechTrig
 trigger mask for technical triggers More...
 
std::string m_triggerMenuImplementation
 
std::string m_triggerMenuInterface
 menu names More...
 
std::string m_triggerMenuName
 

Friends

std::ostream & operator<< (std::ostream &, const L1GtTriggerMenuLite &)
 output stream operator More...
 

Detailed Description

Description: L1 trigger menu and masks, lite version not using event setup.

Implementation: This is the lite version of the L1 trigger menu, with trigger masks included, to be used in the environments not having access to event setup. It offers limited access to the full L1 trigger menu which is implemented as event setup (CondFormats/L1TObjects/interface/L1GtTriggerMenu.h). The masks are provided for the physics partition only.

An EDM product is created and saved in the Run Data, under the assumption that the menu remains the same in a run. The corresponding producer will read the full L1 trigger menu and the trigger masks from event setup, fill the corresponding members and save it as EDM product.

Author
: Vasile Mihai Ghete - HEPHY Vienna

Definition at line 40 of file L1GtTriggerMenuLite.h.

Member Typedef Documentation

typedef L1TriggerMap::const_iterator L1GtTriggerMenuLite::CItL1Trig

iterators through map containing the physics algorithms or the technical triggers

Definition at line 48 of file L1GtTriggerMenuLite.h.

typedef L1TriggerMap::iterator L1GtTriggerMenuLite::ItL1Trig

Definition at line 49 of file L1GtTriggerMenuLite.h.

typedef std::map<unsigned int, std::string> L1GtTriggerMenuLite::L1TriggerMap

map containing the physics algorithms or the technical triggers

Definition at line 45 of file L1GtTriggerMenuLite.h.

Constructor & Destructor Documentation

L1GtTriggerMenuLite::L1GtTriggerMenuLite ( )

constructor

Definition at line 37 of file L1GtTriggerMenuLite.cc.

L1GtTriggerMenuLite::L1GtTriggerMenuLite ( const std::string &  triggerMenuNameVal,
const L1TriggerMap algorithmMapVal,
const L1TriggerMap algorithmAliasMapVal,
const L1TriggerMap technicalTriggerMapVal,
const std::vector< unsigned int > &  triggerMaskAlgoTrigVal,
const std::vector< unsigned int > &  triggerMaskTechTrigVal,
const std::vector< std::vector< int > > &  prescaleFactorsAlgoTrigVal,
const std::vector< std::vector< int > > &  prescaleFactorsTechTrigVal 
)

Definition at line 45 of file L1GtTriggerMenuLite.cc.

L1GtTriggerMenuLite::L1GtTriggerMenuLite ( const L1GtTriggerMenuLite rhs)

copy constructor

Definition at line 75 of file L1GtTriggerMenuLite.cc.

L1GtTriggerMenuLite::~L1GtTriggerMenuLite ( )
virtual

Definition at line 101 of file L1GtTriggerMenuLite.cc.

Member Function Documentation

const std::string * L1GtTriggerMenuLite::gtAlgorithmAlias ( const unsigned int  bitNumber,
int &  errorCode 
) const

get the alias for a physics algorithm with a given bit number

Definition at line 383 of file L1GtTriggerMenuLite.cc.

const L1TriggerMap& L1GtTriggerMenuLite::gtAlgorithmAliasMap ( ) const
inline

get / set the algorithm map (by alias)

Definition at line 118 of file L1GtTriggerMenuLite.h.

const L1TriggerMap& L1GtTriggerMenuLite::gtAlgorithmMap ( ) const
inline

get / set the algorithm map (by name)

Definition at line 111 of file L1GtTriggerMenuLite.h.

Referenced by FWL1TriggerTableView::fillTable().

const std::string * L1GtTriggerMenuLite::gtAlgorithmName ( const unsigned int  bitNumber,
int &  errorCode 
) const

get the name for a physics algorithm or a technical trigger with a given bit number

Definition at line 407 of file L1GtTriggerMenuLite.cc.

const unsigned int L1GtTriggerMenuLite::gtBitNumber ( const std::string &  trigName,
int &  errorCode 
) const

get the bit number for a physics algorithm or a technical trigger with a given name or alias

Definition at line 453 of file L1GtTriggerMenuLite.cc.

const std::vector<std::vector<int> >& L1GtTriggerMenuLite::gtPrescaleFactorsAlgoTrig ( ) const
inline

get the prescale factors by reference / set the prescale factors

Definition at line 151 of file L1GtTriggerMenuLite.h.

Referenced by FWL1TriggerTableView::fillTable().

const std::vector<std::vector<int> >& L1GtTriggerMenuLite::gtPrescaleFactorsTechTrig ( ) const
inline

Definition at line 158 of file L1GtTriggerMenuLite.h.

Referenced by FWL1TriggerTableView::fillTable().

const std::string& L1GtTriggerMenuLite::gtScaleDbKey ( ) const
inline

menu associated scale key

Definition at line 104 of file L1GtTriggerMenuLite.h.

const L1TriggerMap& L1GtTriggerMenuLite::gtTechnicalTriggerMap ( ) const
inline

get / set the technical trigger map

Definition at line 125 of file L1GtTriggerMenuLite.h.

const std::string * L1GtTriggerMenuLite::gtTechTrigName ( const unsigned int  bitNumber,
int &  errorCode 
) const

Definition at line 429 of file L1GtTriggerMenuLite.cc.

const std::vector<unsigned int>& L1GtTriggerMenuLite::gtTriggerMaskAlgoTrig ( ) const
inline

get the trigger mask for physics algorithms

Definition at line 132 of file L1GtTriggerMenuLite.h.

const std::vector<unsigned int>& L1GtTriggerMenuLite::gtTriggerMaskTechTrig ( ) const
inline

get the trigger mask for technical triggers

Definition at line 142 of file L1GtTriggerMenuLite.h.

const std::string& L1GtTriggerMenuLite::gtTriggerMenuImplementation ( ) const
inline

Definition at line 97 of file L1GtTriggerMenuLite.h.

const std::string& L1GtTriggerMenuLite::gtTriggerMenuInterface ( ) const
inline

get / set the trigger menu names

Definition at line 83 of file L1GtTriggerMenuLite.h.

const std::string& L1GtTriggerMenuLite::gtTriggerMenuName ( ) const
inline

Definition at line 90 of file L1GtTriggerMenuLite.h.

const bool L1GtTriggerMenuLite::gtTriggerResult ( const std::string &  trigName,
const std::vector< bool > &  decWord,
int &  errorCode 
) const

get the result for a physics algorithm or a technical trigger with name trigName use directly the format of decisionWord (no typedef)

Definition at line 502 of file L1GtTriggerMenuLite.cc.

Referenced by FWL1TriggerTableView::fillTable().

bool L1GtTriggerMenuLite::isProductEqual ( const L1GtTriggerMenuLite otherObj) const

merge rule: test on isProductEqual

Definition at line 198 of file L1GtTriggerMenuLite.cc.

bool L1GtTriggerMenuLite::operator!= ( const L1GtTriggerMenuLite otherObj) const

unequal operator

Definition at line 191 of file L1GtTriggerMenuLite.cc.

L1GtTriggerMenuLite & L1GtTriggerMenuLite::operator= ( const L1GtTriggerMenuLite rhs)

assignment operator

Definition at line 111 of file L1GtTriggerMenuLite.cc.

bool L1GtTriggerMenuLite::operator== ( const L1GtTriggerMenuLite rhs) const

equal operator

Definition at line 139 of file L1GtTriggerMenuLite.cc.

void L1GtTriggerMenuLite::print ( std::ostream &  myCout,
int &  printVerbosity 
) const

print the trigger menu allow various verbosity levels

Definition at line 272 of file L1GtTriggerMenuLite.cc.

void L1GtTriggerMenuLite::setGtAlgorithmAliasMap ( const L1TriggerMap algoMap)

Definition at line 230 of file L1GtTriggerMenuLite.cc.

void L1GtTriggerMenuLite::setGtAlgorithmMap ( const L1TriggerMap algoMap)

Definition at line 225 of file L1GtTriggerMenuLite.cc.

void L1GtTriggerMenuLite::setGtPrescaleFactorsAlgoTrig ( const std::vector< std::vector< int > > &  factorValue)

Definition at line 257 of file L1GtTriggerMenuLite.cc.

void L1GtTriggerMenuLite::setGtPrescaleFactorsTechTrig ( const std::vector< std::vector< int > > &  factorValue)

Definition at line 264 of file L1GtTriggerMenuLite.cc.

void L1GtTriggerMenuLite::setGtScaleDbKey ( const std::string &  scaleKey)

Definition at line 220 of file L1GtTriggerMenuLite.cc.

void L1GtTriggerMenuLite::setGtTechnicalTriggerMap ( const L1TriggerMap ttMap)

Definition at line 235 of file L1GtTriggerMenuLite.cc.

void L1GtTriggerMenuLite::setGtTriggerMaskAlgoTrig ( const std::vector< unsigned int > &  maskValue)

set the trigger mask for physics algorithms

Definition at line 240 of file L1GtTriggerMenuLite.cc.

void L1GtTriggerMenuLite::setGtTriggerMaskTechTrig ( const std::vector< unsigned int > &  maskValue)

set the trigger mask for technical triggers

Definition at line 248 of file L1GtTriggerMenuLite.cc.

void L1GtTriggerMenuLite::setGtTriggerMenuImplementation ( const std::string &  menuImplementation)

Definition at line 214 of file L1GtTriggerMenuLite.cc.

void L1GtTriggerMenuLite::setGtTriggerMenuInterface ( const std::string &  menuInterface)

Definition at line 205 of file L1GtTriggerMenuLite.cc.

void L1GtTriggerMenuLite::setGtTriggerMenuName ( const std::string &  menuName)

Definition at line 210 of file L1GtTriggerMenuLite.cc.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  streamRec,
const L1GtTriggerMenuLite result 
)
friend

output stream operator

Definition at line 373 of file L1GtTriggerMenuLite.cc.

Member Data Documentation

L1TriggerMap L1GtTriggerMenuLite::m_algorithmAliasMap
private

map containing the physics algorithms (by alias)

Definition at line 206 of file L1GtTriggerMenuLite.h.

L1TriggerMap L1GtTriggerMenuLite::m_algorithmMap
private

map containing the physics algorithms (by name)

Definition at line 203 of file L1GtTriggerMenuLite.h.

std::vector<std::vector<int> > L1GtTriggerMenuLite::m_prescaleFactorsAlgoTrig
private

prescale factors

Definition at line 218 of file L1GtTriggerMenuLite.h.

std::vector<std::vector<int> > L1GtTriggerMenuLite::m_prescaleFactorsTechTrig
private

Definition at line 219 of file L1GtTriggerMenuLite.h.

std::string L1GtTriggerMenuLite::m_scaleDbKey
private

menu associated scale key

Definition at line 200 of file L1GtTriggerMenuLite.h.

L1TriggerMap L1GtTriggerMenuLite::m_technicalTriggerMap
private

map containing the technical triggers

Definition at line 209 of file L1GtTriggerMenuLite.h.

std::vector<unsigned int> L1GtTriggerMenuLite::m_triggerMaskAlgoTrig
private

trigger mask for physics algorithms

Definition at line 212 of file L1GtTriggerMenuLite.h.

std::vector<unsigned int> L1GtTriggerMenuLite::m_triggerMaskTechTrig
private

trigger mask for technical triggers

Definition at line 215 of file L1GtTriggerMenuLite.h.

std::string L1GtTriggerMenuLite::m_triggerMenuImplementation
private

Definition at line 197 of file L1GtTriggerMenuLite.h.

std::string L1GtTriggerMenuLite::m_triggerMenuInterface
private

menu names

Definition at line 195 of file L1GtTriggerMenuLite.h.

std::string L1GtTriggerMenuLite::m_triggerMenuName
private

Definition at line 196 of file L1GtTriggerMenuLite.h.