#include <GlobalParamsHelper.h>
Public Types | |
enum | { VERSION = 1 } |
Public Member Functions | |
const L1TGlobalParameters * | getReadInstance () const |
L1TGlobalParameters * | getWriteInstance () |
GlobalParamsHelper (L1TGlobalParameters *w) | |
unsigned int | numberChips () const |
get / set the number of condition chips in GTL More... | |
unsigned int | numberL1EG () const |
get / set the number of L1 e/gamma objects received by GT More... | |
unsigned int | numberL1Jet () const |
get / set the number of L1 jets received by GT More... | |
unsigned int | numberL1Mu () const |
get / set the number of L1 muons received by GT More... | |
unsigned int | numberL1Tau () const |
get / set the number of L1 tau received by GT More... | |
unsigned int | numberPhysTriggers () const |
get / set the number of physics trigger algorithms More... | |
const std::vector< int > & | orderOfChip () const |
unsigned int | pinsOnChip () const |
get / set the number of pins on the GTL condition chips More... | |
void | print (std::ostream &) const |
print all the L1 GT parameters More... | |
void | setNumberChips (const unsigned int &) |
void | setNumberL1EG (const unsigned int &) |
void | setNumberL1Jet (const unsigned int &) |
void | setNumberL1Mu (const unsigned int &) |
void | setNumberL1Tau (const unsigned int &) |
void | setNumberPhysTriggers (const unsigned int &) |
void | setOrderOfChip (const std::vector< int > &) |
void | setPinsOnChip (const unsigned int &) |
void | setTotalBxInEvent (const int &) |
int | totalBxInEvent () const |
get / set the number of bx in hardware More... | |
~GlobalParamsHelper () | |
Static Public Member Functions | |
static GlobalParamsHelper * | readAndWriteFromEventSetup (const L1TGlobalParameters *es) |
static const GlobalParamsHelper * | readFromEventSetup (const L1TGlobalParameters *es) |
Private Member Functions | |
void | check_write () |
GlobalParamsHelper (const L1TGlobalParameters *es) | |
void | useCopy () |
Private Attributes | |
const L1TGlobalParameters * | read_ |
bool | we_own_write_ |
L1TGlobalParameters * | write_ |
Definition at line 35 of file GlobalParamsHelper.h.
anonymous enum |
GlobalParamsHelper::~GlobalParamsHelper | ( | ) |
GlobalParamsHelper::GlobalParamsHelper | ( | L1TGlobalParameters * | w | ) |
Definition at line 16 of file GlobalParamsHelper.cc.
References check_write(), L1TGlobalParameters::m_version, read_, VERSION, w, we_own_write_, and write_.
Referenced by getWriteInstance(), readAndWriteFromEventSetup(), and readFromEventSetup().
|
private |
|
inlineprivate |
Definition at line 134 of file GlobalParamsHelper.h.
References write_.
Referenced by GlobalParamsHelper(), setNumberChips(), setNumberL1EG(), setNumberL1Jet(), setNumberL1Mu(), setNumberL1Tau(), setNumberPhysTriggers(), setOrderOfChip(), setPinsOnChip(), and setTotalBxInEvent().
|
inline |
|
inline |
Definition at line 129 of file GlobalParamsHelper.h.
References GlobalParamsHelper(), useCopy(), and write_.
Referenced by StableParametersTrivialProducer::produceGtStableParameters().
|
inline |
get / set the number of condition chips in GTL
Definition at line 101 of file GlobalParamsHelper.h.
References L1TGlobalParameters::m_numberChips, read_, and setNumberChips().
Referenced by L1TGlobalProducer::produce().
|
inline |
get / set the number of L1 e/gamma objects received by GT
Definition at line 76 of file GlobalParamsHelper.h.
References L1TGlobalParameters::m_numberL1EG, read_, and setNumberL1EG().
Referenced by L1TGlobalProducer::produce().
|
inline |
get / set the number of L1 jets received by GT
Definition at line 84 of file GlobalParamsHelper.h.
References L1TGlobalParameters::m_numberL1Jet, read_, and setNumberL1Jet().
Referenced by L1TGlobalProducer::produce().
|
inline |
get / set the number of L1 muons received by GT
Definition at line 69 of file GlobalParamsHelper.h.
References L1TGlobalParameters::m_numberL1Mu, read_, and setNumberL1Mu().
Referenced by L1TGlobalProducer::produce().
|
inline |
get / set the number of L1 tau received by GT
Definition at line 92 of file GlobalParamsHelper.h.
References L1TGlobalParameters::m_numberL1Tau, read_, and setNumberL1Tau().
Referenced by L1TGlobalProducer::produce().
|
inline |
get / set the number of physics trigger algorithms
Definition at line 61 of file GlobalParamsHelper.h.
References L1TGlobalParameters::m_numberPhysTriggers, read_, and setNumberPhysTriggers().
Referenced by L1TGlobalProducer::produce().
|
inline |
get / set the correspondence "condition chip - GTL algorithm word" in the hardware
Definition at line 116 of file GlobalParamsHelper.h.
References L1TGlobalParameters::m_orderOfChip, print(), read_, and setOrderOfChip().
Referenced by L1TGlobalProducer::produce().
|
inline |
get / set the number of pins on the GTL condition chips
Definition at line 108 of file GlobalParamsHelper.h.
References L1TGlobalParameters::m_pinsOnChip, read_, and setPinsOnChip().
Referenced by L1TGlobalProducer::produce().
void GlobalParamsHelper::print | ( | std::ostream & | myStr | ) | const |
print all the L1 GT parameters
Definition at line 111 of file GlobalParamsHelper.cc.
References L1TGlobalParameters::m_numberChips, L1TGlobalParameters::m_numberL1EG, L1TGlobalParameters::m_numberL1Jet, L1TGlobalParameters::m_numberL1Mu, L1TGlobalParameters::m_numberL1Tau, L1TGlobalParameters::m_numberPhysTriggers, L1TGlobalParameters::m_orderOfChip, L1TGlobalParameters::m_pinsOnChip, L1TGlobalParameters::m_totalBxInEvent, and read_.
Referenced by orderOfChip().
|
static |
Definition at line 10 of file GlobalParamsHelper.cc.
References GlobalParamsHelper(), useCopy(), and x().
|
static |
Definition at line 6 of file GlobalParamsHelper.cc.
References GlobalParamsHelper().
void GlobalParamsHelper::setNumberChips | ( | const unsigned int & | numberChipsValue | ) |
Definition at line 86 of file GlobalParamsHelper.cc.
References check_write(), L1TGlobalParameters::m_numberChips, and write_.
Referenced by numberChips(), and StableParametersTrivialProducer::StableParametersTrivialProducer().
void GlobalParamsHelper::setNumberL1EG | ( | const unsigned int & | numberL1EGValue | ) |
Definition at line 60 of file GlobalParamsHelper.cc.
References check_write(), L1TGlobalParameters::m_numberL1EG, and write_.
Referenced by numberL1EG(), and StableParametersTrivialProducer::StableParametersTrivialProducer().
void GlobalParamsHelper::setNumberL1Jet | ( | const unsigned int & | numberL1JetValue | ) |
Definition at line 68 of file GlobalParamsHelper.cc.
References check_write(), L1TGlobalParameters::m_numberL1Jet, and write_.
Referenced by numberL1Jet(), and StableParametersTrivialProducer::StableParametersTrivialProducer().
void GlobalParamsHelper::setNumberL1Mu | ( | const unsigned int & | numberL1MuValue | ) |
Definition at line 53 of file GlobalParamsHelper.cc.
References check_write(), L1TGlobalParameters::m_numberL1Mu, and write_.
Referenced by numberL1Mu(), and StableParametersTrivialProducer::StableParametersTrivialProducer().
void GlobalParamsHelper::setNumberL1Tau | ( | const unsigned int & | numberL1TauValue | ) |
Definition at line 76 of file GlobalParamsHelper.cc.
References check_write(), L1TGlobalParameters::m_numberL1Tau, and write_.
Referenced by numberL1Tau(), and StableParametersTrivialProducer::StableParametersTrivialProducer().
void GlobalParamsHelper::setNumberPhysTriggers | ( | const unsigned int & | numberPhysTriggersValue | ) |
Definition at line 45 of file GlobalParamsHelper.cc.
References check_write(), L1TGlobalParameters::m_numberPhysTriggers, and write_.
Referenced by numberPhysTriggers(), and StableParametersTrivialProducer::StableParametersTrivialProducer().
void GlobalParamsHelper::setOrderOfChip | ( | const std::vector< int > & | orderOfChipValue | ) |
Definition at line 103 of file GlobalParamsHelper.cc.
References check_write(), L1TGlobalParameters::m_orderOfChip, and write_.
Referenced by orderOfChip(), and StableParametersTrivialProducer::StableParametersTrivialProducer().
void GlobalParamsHelper::setPinsOnChip | ( | const unsigned int & | pinsOnChipValue | ) |
Definition at line 94 of file GlobalParamsHelper.cc.
References check_write(), L1TGlobalParameters::m_pinsOnChip, and write_.
Referenced by pinsOnChip(), and StableParametersTrivialProducer::StableParametersTrivialProducer().
void GlobalParamsHelper::setTotalBxInEvent | ( | const int & | numberBxValue | ) |
Definition at line 37 of file GlobalParamsHelper.cc.
References check_write(), L1TGlobalParameters::m_totalBxInEvent, and write_.
Referenced by StableParametersTrivialProducer::StableParametersTrivialProducer(), and totalBxInEvent().
|
inline |
get / set the number of bx in hardware
Definition at line 53 of file GlobalParamsHelper.h.
References L1TGlobalParameters::m_totalBxInEvent, read_, and setTotalBxInEvent().
Referenced by L1TGlobalProducer::produce().
|
private |
Definition at line 26 of file GlobalParamsHelper.cc.
References read_, we_own_write_, and write_.
Referenced by getWriteInstance(), and readAndWriteFromEventSetup().
|
private |
Definition at line 136 of file GlobalParamsHelper.h.
Referenced by getReadInstance(), GlobalParamsHelper(), numberChips(), numberL1EG(), numberL1Jet(), numberL1Mu(), numberL1Tau(), numberPhysTriggers(), orderOfChip(), pinsOnChip(), print(), totalBxInEvent(), and useCopy().
|
private |
Definition at line 138 of file GlobalParamsHelper.h.
Referenced by GlobalParamsHelper(), useCopy(), and ~GlobalParamsHelper().
|
private |
Definition at line 137 of file GlobalParamsHelper.h.
Referenced by check_write(), getWriteInstance(), GlobalParamsHelper(), setNumberChips(), setNumberL1EG(), setNumberL1Jet(), setNumberL1Mu(), setNumberL1Tau(), setNumberPhysTriggers(), setOrderOfChip(), setPinsOnChip(), setTotalBxInEvent(), useCopy(), and ~GlobalParamsHelper().