CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
L1GtStableParametersTrivialProducer Class Reference

#include <L1GtStableParametersTrivialProducer.h>

Inheritance diagram for L1GtStableParametersTrivialProducer:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Member Functions

 L1GtStableParametersTrivialProducer (const edm::ParameterSet &)
 constructor More...
 
std::unique_ptr< L1GtStableParametersproduceGtStableParameters (const L1GtStableParametersRcd &)
 public methods More...
 
 ~L1GtStableParametersTrivialProducer () override
 destructor More...
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
 ESProducer (const ESProducer &)=delete
 
ESProxyIndex const * getTokenIndices (unsigned int iIndex) const
 
ESRecordIndex const * getTokenRecordIndices (unsigned int iIndex) const
 
bool hasMayConsumes () const noexcept
 
size_t numberOfTokenIndices (unsigned int iIndex) const
 
ESProducer const & operator= (const ESProducer &)=delete
 
SerialTaskQueueChainqueue ()
 
template<typename Record >
std::optional< std::vector< ESProxyIndex > > updateFromMayConsumes (unsigned int iIndex, const Record &iRecord) const
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &) final
 
 ~ESProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
 ESProxyFactoryProducer (const ESProxyFactoryProducer &)=delete
 
const ESProxyFactoryProduceroperator= (const ESProxyFactoryProducer &)=delete
 
 ~ESProxyFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
void createKeyedProxies (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
 DataProxyProvider ()
 
 DataProxyProvider (const DataProxyProvider &)=delete
 
const ComponentDescriptiondescription () const
 
void fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
 
virtual void initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
bool isUsingRecord (const EventSetupRecordKey &key) const
 
KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0)
 
const DataProxyProvideroperator= (const DataProxyProvider &)=delete
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider () noexcept(false)
 

Private Attributes

unsigned int m_ifCaloEtaNumberBits
 number of bits for eta of calorimeter objects More...
 
unsigned int m_ifMuEtaNumberBits
 number of bits for eta of muon objects More...
 
unsigned int m_numberConditionChips
 hardware More...
 
unsigned int m_numberL1CenJet
 central, forward and tau jets More...
 
unsigned int m_numberL1ForJet
 
unsigned int m_numberL1IsoEG
 
unsigned int m_numberL1JetCounts
 jet counts More...
 
unsigned int m_numberL1Mu
 trigger objects More...
 
unsigned int m_numberL1NoIsoEG
 e/gamma and isolated e/gamma objects More...
 
unsigned int m_numberL1TauJet
 
unsigned int m_numberPhysTriggers
 trigger decision More...
 
unsigned int m_numberPhysTriggersExtended
 additional number of physics trigger algorithms More...
 
int m_numberPsbBoards
 number of PSB boards in GT More...
 
unsigned int m_numberTechnicalTriggers
 number of technical triggers More...
 
std::vector< int > m_orderConditionChip
 
unsigned int m_pinsOnConditionChip
 number of pins on the GTL condition chips More...
 
int m_unitLength
 one unit in the word is UnitLength bits More...
 
int m_wordLength
 GT DAQ record organized in words of WordLength bits. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Types inherited from edm::ESProxyFactoryProducer
using EventSetupRecordKey = eventsetup::EventSetupRecordKey
 
- Protected Types inherited from edm::eventsetup::DataProxyProvider
using KeyedProxiesVector = std::vector< std::pair< DataKey, std::shared_ptr< DataProxy > >>
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
auto setWhatProduced (T *iThis, const es::Label &iLabel={})
 
template<typename T >
auto setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
auto setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
auto setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord >
auto setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
auto setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel={})
 
template<typename TFunc >
auto setWhatProduced (TFunc &&func, const es::Label &iLabel={})
 
template<typename TReturn , typename TRecord , typename TFunc , typename TDecorator >
ESConsumesCollectorT< TRecord > setWhatProduced (TFunc &&func, TDecorator &&iDec, const es::Label &iLabel={})
 
void usesResources (std::vector< std::string > const &)
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())
 
KeyedProxiesVector registerProxies (const EventSetupRecordKey &, unsigned int iovIndex) override
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &key)
 

Detailed Description

Description: ESProducer for L1 GT parameters.
Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

Definition at line 36 of file L1GtStableParametersTrivialProducer.h.

Constructor & Destructor Documentation

◆ L1GtStableParametersTrivialProducer()

L1GtStableParametersTrivialProducer::L1GtStableParametersTrivialProducer ( const edm::ParameterSet parSet)

constructor

number of bits for eta of calorimeter objects

number of bits for eta of calorimeter objects

Definition at line 37 of file L1GtStableParametersTrivialProducer.cc.

References edm::ParameterSet::getParameter(), m_ifCaloEtaNumberBits, m_ifMuEtaNumberBits, m_numberConditionChips, m_numberL1CenJet, m_numberL1ForJet, m_numberL1IsoEG, m_numberL1JetCounts, m_numberL1Mu, m_numberL1NoIsoEG, m_numberL1TauJet, m_numberPhysTriggers, m_numberPhysTriggersExtended, m_numberPsbBoards, m_numberTechnicalTriggers, m_orderConditionChip, m_pinsOnConditionChip, m_unitLength, m_wordLength, produceGtStableParameters(), and edm::ESProducer::setWhatProduced().

37  {
38  // tell the framework what data is being produced
40 
41  // now do what ever other initialization is needed
42 
43  // trigger decision
44 
45  // number of physics trigger algorithms
46  m_numberPhysTriggers = parSet.getParameter<unsigned int>("NumberPhysTriggers");
47 
48  // additional number of physics trigger algorithms
49  m_numberPhysTriggersExtended = parSet.getParameter<unsigned int>("NumberPhysTriggersExtended");
50 
51  // number of technical triggers
52  m_numberTechnicalTriggers = parSet.getParameter<unsigned int>("NumberTechnicalTriggers");
53 
54  // trigger objects
55 
56  // muons
57  m_numberL1Mu = parSet.getParameter<unsigned int>("NumberL1Mu");
58 
59  // e/gamma and isolated e/gamma objects
60  m_numberL1NoIsoEG = parSet.getParameter<unsigned int>("NumberL1NoIsoEG");
61  m_numberL1IsoEG = parSet.getParameter<unsigned int>("NumberL1IsoEG");
62 
63  // central, forward and tau jets
64  m_numberL1CenJet = parSet.getParameter<unsigned int>("NumberL1CenJet");
65  m_numberL1ForJet = parSet.getParameter<unsigned int>("NumberL1ForJet");
66  m_numberL1TauJet = parSet.getParameter<unsigned int>("NumberL1TauJet");
67 
68  // jet counts
69  m_numberL1JetCounts = parSet.getParameter<unsigned int>("NumberL1JetCounts");
70 
71  // hardware
72 
73  // number of maximum chips defined in the xml file
74  m_numberConditionChips = parSet.getParameter<unsigned int>("NumberConditionChips");
75 
76  // number of pins on the GTL condition chips
77  m_pinsOnConditionChip = parSet.getParameter<unsigned int>("PinsOnConditionChip");
78 
79  // correspondence "condition chip - GTL algorithm word" in the hardware
80  // e.g.: chip 2: 0 - 95; chip 1: 96 - 128 (191)
81  m_orderConditionChip = parSet.getParameter<std::vector<int> >("OrderConditionChip");
82 
83  // number of PSB boards in GT
84  m_numberPsbBoards = parSet.getParameter<int>("NumberPsbBoards");
85 
87  m_ifCaloEtaNumberBits = parSet.getParameter<unsigned int>("IfCaloEtaNumberBits");
88 
90  m_ifMuEtaNumberBits = parSet.getParameter<unsigned int>("IfMuEtaNumberBits");
91 
92  // GT DAQ record organized in words of WordLength bits
93  m_wordLength = parSet.getParameter<int>("WordLength");
94 
95  // one unit in the word is UnitLength bits
96  m_unitLength = parSet.getParameter<int>("UnitLength");
97 }
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
unsigned int m_numberTechnicalTriggers
number of technical triggers
unsigned int m_numberL1NoIsoEG
e/gamma and isolated e/gamma objects
unsigned int m_ifCaloEtaNumberBits
number of bits for eta of calorimeter objects
unsigned int m_numberPhysTriggersExtended
additional number of physics trigger algorithms
int m_wordLength
GT DAQ record organized in words of WordLength bits.
std::unique_ptr< L1GtStableParameters > produceGtStableParameters(const L1GtStableParametersRcd &)
public methods
unsigned int m_numberL1CenJet
central, forward and tau jets
unsigned int m_pinsOnConditionChip
number of pins on the GTL condition chips
int m_unitLength
one unit in the word is UnitLength bits
unsigned int m_ifMuEtaNumberBits
number of bits for eta of muon objects

◆ ~L1GtStableParametersTrivialProducer()

L1GtStableParametersTrivialProducer::~L1GtStableParametersTrivialProducer ( )
override

destructor

Definition at line 100 of file L1GtStableParametersTrivialProducer.cc.

100  {
101  // empty
102 }

Member Function Documentation

◆ produceGtStableParameters()

std::unique_ptr< L1GtStableParameters > L1GtStableParametersTrivialProducer::produceGtStableParameters ( const L1GtStableParametersRcd iRecord)

public methods

L1 GT parameters

Definition at line 107 of file L1GtStableParametersTrivialProducer.cc.

References m_ifCaloEtaNumberBits, m_ifMuEtaNumberBits, m_numberConditionChips, m_numberL1CenJet, m_numberL1ForJet, m_numberL1IsoEG, m_numberL1JetCounts, m_numberL1Mu, m_numberL1NoIsoEG, m_numberL1TauJet, m_numberPhysTriggers, m_numberPhysTriggersExtended, m_numberPsbBoards, m_numberTechnicalTriggers, m_orderConditionChip, m_pinsOnConditionChip, m_unitLength, and m_wordLength.

Referenced by L1GtStableParametersTrivialProducer().

108  {
109  auto pL1GtStableParameters = std::make_unique<L1GtStableParameters>();
110 
111  // set the number of physics trigger algorithms
112  pL1GtStableParameters->setGtNumberPhysTriggers(m_numberPhysTriggers);
113 
114  // set the additional number of physics trigger algorithms
115  pL1GtStableParameters->setGtNumberPhysTriggersExtended(m_numberPhysTriggersExtended);
116 
117  // set the number of technical triggers
118  pL1GtStableParameters->setGtNumberTechnicalTriggers(m_numberTechnicalTriggers);
119 
120  // set the number of L1 muons received by GT
121  pL1GtStableParameters->setGtNumberL1Mu(m_numberL1Mu);
122 
123  // set the number of L1 e/gamma objects received by GT
124  pL1GtStableParameters->setGtNumberL1NoIsoEG(m_numberL1NoIsoEG);
125 
126  // set the number of L1 isolated e/gamma objects received by GT
127  pL1GtStableParameters->setGtNumberL1IsoEG(m_numberL1IsoEG);
128 
129  // set the number of L1 central jets received by GT
130  pL1GtStableParameters->setGtNumberL1CenJet(m_numberL1CenJet);
131 
132  // set the number of L1 forward jets received by GT
133  pL1GtStableParameters->setGtNumberL1ForJet(m_numberL1ForJet);
134 
135  // set the number of L1 tau jets received by GT
136  pL1GtStableParameters->setGtNumberL1TauJet(m_numberL1TauJet);
137 
138  // set the number of L1 jet counts received by GT
139  pL1GtStableParameters->setGtNumberL1JetCounts(m_numberL1JetCounts);
140 
141  // hardware stuff
142 
143  // set the number of condition chips in GTL
144  pL1GtStableParameters->setGtNumberConditionChips(m_numberConditionChips);
145 
146  // set the number of pins on the GTL condition chips
147  pL1GtStableParameters->setGtPinsOnConditionChip(m_pinsOnConditionChip);
148 
149  // set the correspondence "condition chip - GTL algorithm word"
150  // in the hardware
151  pL1GtStableParameters->setGtOrderConditionChip(m_orderConditionChip);
152 
153  // set the number of PSB boards in GT
154  pL1GtStableParameters->setGtNumberPsbBoards(m_numberPsbBoards);
155 
156  // set the number of bits for eta of calorimeter objects
157  pL1GtStableParameters->setGtIfCaloEtaNumberBits(m_ifCaloEtaNumberBits);
158 
159  // set the number of bits for eta of muon objects
160  pL1GtStableParameters->setGtIfMuEtaNumberBits(m_ifMuEtaNumberBits);
161 
162  // set WordLength
163  pL1GtStableParameters->setGtWordLength(m_wordLength);
164 
165  // set one UnitLength
166  pL1GtStableParameters->setGtUnitLength(m_unitLength);
167 
168  //
169  //
170  return pL1GtStableParameters;
171 }
unsigned int m_numberTechnicalTriggers
number of technical triggers
unsigned int m_numberL1NoIsoEG
e/gamma and isolated e/gamma objects
unsigned int m_ifCaloEtaNumberBits
number of bits for eta of calorimeter objects
unsigned int m_numberPhysTriggersExtended
additional number of physics trigger algorithms
int m_wordLength
GT DAQ record organized in words of WordLength bits.
unsigned int m_numberL1CenJet
central, forward and tau jets
unsigned int m_pinsOnConditionChip
number of pins on the GTL condition chips
int m_unitLength
one unit in the word is UnitLength bits
unsigned int m_ifMuEtaNumberBits
number of bits for eta of muon objects

Member Data Documentation

◆ m_ifCaloEtaNumberBits

unsigned int L1GtStableParametersTrivialProducer::m_ifCaloEtaNumberBits
private

number of bits for eta of calorimeter objects

Definition at line 95 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

◆ m_ifMuEtaNumberBits

unsigned int L1GtStableParametersTrivialProducer::m_ifMuEtaNumberBits
private

number of bits for eta of muon objects

Definition at line 98 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

◆ m_numberConditionChips

unsigned int L1GtStableParametersTrivialProducer::m_numberConditionChips
private

hardware

number of maximum chips defined in the xml file

Definition at line 82 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

◆ m_numberL1CenJet

unsigned int L1GtStableParametersTrivialProducer::m_numberL1CenJet
private

central, forward and tau jets

Definition at line 71 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

◆ m_numberL1ForJet

unsigned int L1GtStableParametersTrivialProducer::m_numberL1ForJet
private

◆ m_numberL1IsoEG

unsigned int L1GtStableParametersTrivialProducer::m_numberL1IsoEG
private

◆ m_numberL1JetCounts

unsigned int L1GtStableParametersTrivialProducer::m_numberL1JetCounts
private

◆ m_numberL1Mu

unsigned int L1GtStableParametersTrivialProducer::m_numberL1Mu
private

trigger objects

muons

Definition at line 64 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

◆ m_numberL1NoIsoEG

unsigned int L1GtStableParametersTrivialProducer::m_numberL1NoIsoEG
private

e/gamma and isolated e/gamma objects

Definition at line 67 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

◆ m_numberL1TauJet

unsigned int L1GtStableParametersTrivialProducer::m_numberL1TauJet
private

◆ m_numberPhysTriggers

unsigned int L1GtStableParametersTrivialProducer::m_numberPhysTriggers
private

trigger decision

number of physics trigger algorithms

Definition at line 53 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

◆ m_numberPhysTriggersExtended

unsigned int L1GtStableParametersTrivialProducer::m_numberPhysTriggersExtended
private

additional number of physics trigger algorithms

Definition at line 56 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

◆ m_numberPsbBoards

int L1GtStableParametersTrivialProducer::m_numberPsbBoards
private

number of PSB boards in GT

Definition at line 92 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

◆ m_numberTechnicalTriggers

unsigned int L1GtStableParametersTrivialProducer::m_numberTechnicalTriggers
private

number of technical triggers

Definition at line 59 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

◆ m_orderConditionChip

std::vector<int> L1GtStableParametersTrivialProducer::m_orderConditionChip
private

correspondence "condition chip - GTL algorithm word" in the hardware e.g.: chip 2: 0 - 95; chip 1: 96 - 128 (191)

Definition at line 89 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

◆ m_pinsOnConditionChip

unsigned int L1GtStableParametersTrivialProducer::m_pinsOnConditionChip
private

number of pins on the GTL condition chips

Definition at line 85 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

◆ m_unitLength

int L1GtStableParametersTrivialProducer::m_unitLength
private

one unit in the word is UnitLength bits

Definition at line 105 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

◆ m_wordLength

int L1GtStableParametersTrivialProducer::m_wordLength
private

GT DAQ record organized in words of WordLength bits.

Definition at line 102 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().