#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 33 of file GlobalParamsHelper.h.
anonymous enum |
GlobalParamsHelper::~GlobalParamsHelper | ( | ) |
Definition at line 34 of file GlobalParamsHelper.cc.
References we_own_write_, and write_.
GlobalParamsHelper::GlobalParamsHelper | ( | L1TGlobalParameters * | w | ) |
Definition at line 15 of file GlobalParamsHelper.cc.
References check_write(), L1TGlobalParameters::m_version, read_, VERSION, w, we_own_write_, and write_.
Referenced by readAndWriteFromEventSetup(), and readFromEventSetup().
|
private |
|
inlineprivate |
Definition at line 105 of file GlobalParamsHelper.h.
References cms::cuda::assert(), and write_.
Referenced by GlobalParamsHelper(), setNumberChips(), setNumberL1EG(), setNumberL1Jet(), setNumberL1Mu(), setNumberL1Tau(), setNumberPhysTriggers(), setOrderOfChip(), setPinsOnChip(), and setTotalBxInEvent().
|
inline |
|
inline |
Definition at line 100 of file GlobalParamsHelper.h.
References write_.
Referenced by StableParametersTrivialProducer::produceGtStableParameters().
|
inline |
get / set the number of condition chips in GTL
Definition at line 80 of file GlobalParamsHelper.h.
References L1TGlobalParameters::m_numberChips, and read_.
|
inline |
get / set the number of L1 e/gamma objects received by GT
Definition at line 65 of file GlobalParamsHelper.h.
References L1TGlobalParameters::m_numberL1EG, and read_.
|
inline |
get / set the number of L1 jets received by GT
Definition at line 70 of file GlobalParamsHelper.h.
References L1TGlobalParameters::m_numberL1Jet, and read_.
|
inline |
get / set the number of L1 muons received by GT
Definition at line 60 of file GlobalParamsHelper.h.
References L1TGlobalParameters::m_numberL1Mu, and read_.
|
inline |
get / set the number of L1 tau received by GT
Definition at line 75 of file GlobalParamsHelper.h.
References L1TGlobalParameters::m_numberL1Tau, and read_.
|
inline |
get / set the number of physics trigger algorithms
Definition at line 55 of file GlobalParamsHelper.h.
References L1TGlobalParameters::m_numberPhysTriggers, and read_.
|
inline |
get / set the correspondence "condition chip - GTL algorithm word" in the hardware
Definition at line 91 of file GlobalParamsHelper.h.
References L1TGlobalParameters::m_orderOfChip, and read_.
|
inline |
get / set the number of pins on the GTL condition chips
Definition at line 85 of file GlobalParamsHelper.h.
References L1TGlobalParameters::m_pinsOnChip, and read_.
void GlobalParamsHelper::print | ( | std::ostream & | myStr | ) | const |
print all the L1 GT parameters
Definition at line 97 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_.
|
static |
Definition at line 9 of file GlobalParamsHelper.cc.
References GlobalParamsHelper().
|
static |
Definition at line 5 of file GlobalParamsHelper.cc.
References GlobalParamsHelper().
void GlobalParamsHelper::setNumberChips | ( | const unsigned int & | numberChipsValue | ) |
Definition at line 78 of file GlobalParamsHelper.cc.
References check_write(), L1TGlobalParameters::m_numberChips, and write_.
Referenced by StableParametersTrivialProducer::StableParametersTrivialProducer().
void GlobalParamsHelper::setNumberL1EG | ( | const unsigned int & | numberL1EGValue | ) |
Definition at line 58 of file GlobalParamsHelper.cc.
References check_write(), L1TGlobalParameters::m_numberL1EG, and write_.
Referenced by StableParametersTrivialProducer::StableParametersTrivialProducer().
void GlobalParamsHelper::setNumberL1Jet | ( | const unsigned int & | numberL1JetValue | ) |
Definition at line 64 of file GlobalParamsHelper.cc.
References check_write(), L1TGlobalParameters::m_numberL1Jet, and write_.
Referenced by StableParametersTrivialProducer::StableParametersTrivialProducer().
void GlobalParamsHelper::setNumberL1Mu | ( | const unsigned int & | numberL1MuValue | ) |
Definition at line 52 of file GlobalParamsHelper.cc.
References check_write(), L1TGlobalParameters::m_numberL1Mu, and write_.
Referenced by StableParametersTrivialProducer::StableParametersTrivialProducer().
void GlobalParamsHelper::setNumberL1Tau | ( | const unsigned int & | numberL1TauValue | ) |
Definition at line 70 of file GlobalParamsHelper.cc.
References check_write(), L1TGlobalParameters::m_numberL1Tau, and write_.
Referenced by StableParametersTrivialProducer::StableParametersTrivialProducer().
void GlobalParamsHelper::setNumberPhysTriggers | ( | const unsigned int & | numberPhysTriggersValue | ) |
Definition at line 46 of file GlobalParamsHelper.cc.
References check_write(), L1TGlobalParameters::m_numberPhysTriggers, and write_.
Referenced by StableParametersTrivialProducer::StableParametersTrivialProducer().
void GlobalParamsHelper::setOrderOfChip | ( | const std::vector< int > & | orderOfChipValue | ) |
Definition at line 91 of file GlobalParamsHelper.cc.
References check_write(), L1TGlobalParameters::m_orderOfChip, and write_.
Referenced by StableParametersTrivialProducer::StableParametersTrivialProducer().
void GlobalParamsHelper::setPinsOnChip | ( | const unsigned int & | pinsOnChipValue | ) |
Definition at line 84 of file GlobalParamsHelper.cc.
References check_write(), L1TGlobalParameters::m_pinsOnChip, and write_.
Referenced by StableParametersTrivialProducer::StableParametersTrivialProducer().
void GlobalParamsHelper::setTotalBxInEvent | ( | const int & | numberBxValue | ) |
Definition at line 40 of file GlobalParamsHelper.cc.
References check_write(), L1TGlobalParameters::m_totalBxInEvent, and write_.
Referenced by StableParametersTrivialProducer::StableParametersTrivialProducer().
|
inline |
get / set the number of bx in hardware
Definition at line 50 of file GlobalParamsHelper.h.
References L1TGlobalParameters::m_totalBxInEvent, and read_.
|
private |
Definition at line 28 of file GlobalParamsHelper.cc.
References read_, we_own_write_, and write_.
|
private |
Definition at line 107 of file GlobalParamsHelper.h.
Referenced by getReadInstance(), GlobalParamsHelper(), numberChips(), numberL1EG(), numberL1Jet(), numberL1Mu(), numberL1Tau(), numberPhysTriggers(), orderOfChip(), pinsOnChip(), print(), totalBxInEvent(), and useCopy().
|
private |
Definition at line 109 of file GlobalParamsHelper.h.
Referenced by GlobalParamsHelper(), useCopy(), and ~GlobalParamsHelper().
|
private |
Definition at line 108 of file GlobalParamsHelper.h.
Referenced by check_write(), getWriteInstance(), GlobalParamsHelper(), setNumberChips(), setNumberL1EG(), setNumberL1Jet(), setNumberL1Mu(), setNumberL1Tau(), setNumberPhysTriggers(), setOrderOfChip(), setPinsOnChip(), setTotalBxInEvent(), useCopy(), and ~GlobalParamsHelper().