CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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...
 
boost::shared_ptr
< L1GtStableParameters
produceGtStableParameters (const L1GtStableParametersRcd &)
 public methods More...
 
 ~L1GtStableParametersTrivialProducer ()
 destructor More...
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
virtual ~ESProducer ()
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
virtual void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
 overrides DataProxyProvider method More...
 
virtual ~ESProxyFactoryProducer ()
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
 DataProxyProvider ()
 
const ComponentDescriptiondescription () const
 
bool isUsingRecord (const EventSetupRecordKey &) const
 
const KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey) const
 
void resetProxies (const EventSetupRecordKey &iRecordType)
 
void resetProxiesIfTransient (const EventSetupRecordKey &iRecordType)
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider ()
 

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

- Public Types inherited from edm::eventsetup::DataProxyProvider
typedef std::vector< std::pair
< DataKey, boost::shared_ptr
< DataProxy > > > 
KeyedProxies
 
typedef std::vector
< EventSetupRecordKey
Keys
 
typedef std::map
< EventSetupRecordKey,
KeyedProxies
RecordProxies
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
void setWhatProduced (T *iThis, const es::Label &iLabel=es::Label())
 
template<typename T >
void setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
void setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
void setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label())
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::auto_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::auto_ptr< eventsetup::ProxyFactoryBase > &iFactory, const std::string &iLabel=std::string())
 
virtual void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList)
 override DataProxyProvider method More...
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
void eraseAll (const EventSetupRecordKey &iRecordKey)
 deletes all the Proxies in aStream More...
 
void invalidateProxies (const EventSetupRecordKey &iRecordKey)
 
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &)
 

Detailed Description

Description: ESProducer for L1 GT parameters.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 41 of file L1GtStableParametersTrivialProducer.h.

Constructor & Destructor Documentation

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 41 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().

42  {
43 
44  // tell the framework what data is being produced
47 
48  // now do what ever other initialization is needed
49 
50  // trigger decision
51 
52  // number of physics trigger algorithms
54  = parSet.getParameter<unsigned int>("NumberPhysTriggers");
55 
56  // additional number of physics trigger algorithms
58  = parSet.getParameter<unsigned int>("NumberPhysTriggersExtended");
59 
60  // number of technical triggers
62  = parSet.getParameter<unsigned int>("NumberTechnicalTriggers");
63 
64  // trigger objects
65 
66  // muons
67  m_numberL1Mu = parSet.getParameter<unsigned int>("NumberL1Mu");
68 
69  // e/gamma and isolated e/gamma objects
70  m_numberL1NoIsoEG = parSet.getParameter<unsigned int>("NumberL1NoIsoEG");
71  m_numberL1IsoEG = parSet.getParameter<unsigned int>("NumberL1IsoEG");
72 
73  // central, forward and tau jets
74  m_numberL1CenJet = parSet.getParameter<unsigned int>("NumberL1CenJet");
75  m_numberL1ForJet = parSet.getParameter<unsigned int>("NumberL1ForJet");
76  m_numberL1TauJet = parSet.getParameter<unsigned int>("NumberL1TauJet");
77 
78  // jet counts
79  m_numberL1JetCounts = parSet.getParameter<unsigned int>("NumberL1JetCounts");
80 
81  // hardware
82 
83  // number of maximum chips defined in the xml file
85  = parSet.getParameter<unsigned int>("NumberConditionChips");
86 
87  // number of pins on the GTL condition chips
89  = parSet.getParameter<unsigned int>("PinsOnConditionChip");
90 
91  // correspondence "condition chip - GTL algorithm word" in the hardware
92  // e.g.: chip 2: 0 - 95; chip 1: 96 - 128 (191)
94  = parSet.getParameter<std::vector<int> >("OrderConditionChip");
95 
96  // number of PSB boards in GT
97  m_numberPsbBoards = parSet.getParameter<int>("NumberPsbBoards");
98 
101  = parSet.getParameter<unsigned int>("IfCaloEtaNumberBits");
102 
104  m_ifMuEtaNumberBits = parSet.getParameter<unsigned int>("IfMuEtaNumberBits");
105 
106  // GT DAQ record organized in words of WordLength bits
107  m_wordLength = parSet.getParameter<int>("WordLength");
108 
109  // one unit in the word is UnitLength bits
110  m_unitLength = parSet.getParameter<int>("UnitLength");
111 
112 }
T getParameter(std::string const &) const
unsigned int m_numberTechnicalTriggers
number of technical triggers
unsigned int m_numberL1NoIsoEG
e/gamma and isolated e/gamma objects
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
boost::shared_ptr< L1GtStableParameters > produceGtStableParameters(const L1GtStableParametersRcd &)
public methods
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
L1GtStableParametersTrivialProducer::~L1GtStableParametersTrivialProducer ( )

destructor

Definition at line 115 of file L1GtStableParametersTrivialProducer.cc.

115  {
116 
117  // empty
118 
119 }

Member Function Documentation

boost::shared_ptr< L1GtStableParameters > L1GtStableParametersTrivialProducer::produceGtStableParameters ( const L1GtStableParametersRcd iRecord)

public methods

L1 GT parameters

Definition at line 125 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().

126  {
127 
128  boost::shared_ptr<L1GtStableParameters> pL1GtStableParameters =
129  boost::shared_ptr<L1GtStableParameters>(new L1GtStableParameters());
130 
131  // set the number of physics trigger algorithms
132  pL1GtStableParameters->setGtNumberPhysTriggers(m_numberPhysTriggers);
133 
134  // set the additional number of physics trigger algorithms
135  pL1GtStableParameters->setGtNumberPhysTriggersExtended(m_numberPhysTriggersExtended);
136 
137  // set the number of technical triggers
138  pL1GtStableParameters->setGtNumberTechnicalTriggers(m_numberTechnicalTriggers);
139 
140  // set the number of L1 muons received by GT
141  pL1GtStableParameters->setGtNumberL1Mu(m_numberL1Mu);
142 
143  // set the number of L1 e/gamma objects received by GT
144  pL1GtStableParameters->setGtNumberL1NoIsoEG(m_numberL1NoIsoEG);
145 
146  // set the number of L1 isolated e/gamma objects received by GT
147  pL1GtStableParameters->setGtNumberL1IsoEG(m_numberL1IsoEG);
148 
149  // set the number of L1 central jets received by GT
150  pL1GtStableParameters->setGtNumberL1CenJet(m_numberL1CenJet);
151 
152  // set the number of L1 forward jets received by GT
153  pL1GtStableParameters->setGtNumberL1ForJet(m_numberL1ForJet);
154 
155  // set the number of L1 tau jets received by GT
156  pL1GtStableParameters->setGtNumberL1TauJet(m_numberL1TauJet);
157 
158  // set the number of L1 jet counts received by GT
159  pL1GtStableParameters->setGtNumberL1JetCounts(m_numberL1JetCounts);
160 
161  // hardware stuff
162 
163  // set the number of condition chips in GTL
164  pL1GtStableParameters->setGtNumberConditionChips(m_numberConditionChips);
165 
166  // set the number of pins on the GTL condition chips
167  pL1GtStableParameters->setGtPinsOnConditionChip(m_pinsOnConditionChip);
168 
169  // set the correspondence "condition chip - GTL algorithm word"
170  // in the hardware
171  pL1GtStableParameters->setGtOrderConditionChip(m_orderConditionChip);
172 
173  // set the number of PSB boards in GT
174  pL1GtStableParameters->setGtNumberPsbBoards(m_numberPsbBoards);
175 
176  // set the number of bits for eta of calorimeter objects
177  pL1GtStableParameters->setGtIfCaloEtaNumberBits(m_ifCaloEtaNumberBits);
178 
179  // set the number of bits for eta of muon objects
180  pL1GtStableParameters->setGtIfMuEtaNumberBits(m_ifMuEtaNumberBits);
181 
182  // set WordLength
183  pL1GtStableParameters->setGtWordLength(m_wordLength);
184 
185  // set one UnitLength
186  pL1GtStableParameters->setGtUnitLength(m_unitLength);
187 
188  //
189  //
190  return pL1GtStableParameters;
191 
192 }
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

unsigned int L1GtStableParametersTrivialProducer::m_ifCaloEtaNumberBits
private

number of bits for eta of calorimeter objects

Definition at line 106 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

unsigned int L1GtStableParametersTrivialProducer::m_ifMuEtaNumberBits
private

number of bits for eta of muon objects

Definition at line 109 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

unsigned int L1GtStableParametersTrivialProducer::m_numberConditionChips
private

hardware

number of maximum chips defined in the xml file

Definition at line 93 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

unsigned int L1GtStableParametersTrivialProducer::m_numberL1CenJet
private

central, forward and tau jets

Definition at line 81 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

unsigned int L1GtStableParametersTrivialProducer::m_numberL1ForJet
private
unsigned int L1GtStableParametersTrivialProducer::m_numberL1IsoEG
private
unsigned int L1GtStableParametersTrivialProducer::m_numberL1JetCounts
private
unsigned int L1GtStableParametersTrivialProducer::m_numberL1Mu
private

trigger objects

muons

Definition at line 74 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

unsigned int L1GtStableParametersTrivialProducer::m_numberL1NoIsoEG
private

e/gamma and isolated e/gamma objects

Definition at line 77 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

unsigned int L1GtStableParametersTrivialProducer::m_numberL1TauJet
private
unsigned int L1GtStableParametersTrivialProducer::m_numberPhysTriggers
private

trigger decision

number of physics trigger algorithms

Definition at line 63 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

unsigned int L1GtStableParametersTrivialProducer::m_numberPhysTriggersExtended
private

additional number of physics trigger algorithms

Definition at line 66 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

int L1GtStableParametersTrivialProducer::m_numberPsbBoards
private

number of PSB boards in GT

Definition at line 103 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

unsigned int L1GtStableParametersTrivialProducer::m_numberTechnicalTriggers
private

number of technical triggers

Definition at line 69 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

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 100 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

unsigned int L1GtStableParametersTrivialProducer::m_pinsOnConditionChip
private

number of pins on the GTL condition chips

Definition at line 96 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

int L1GtStableParametersTrivialProducer::m_unitLength
private

one unit in the word is UnitLength bits

Definition at line 117 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().

int L1GtStableParametersTrivialProducer::m_wordLength
private

GT DAQ record organized in words of WordLength bits.

Definition at line 114 of file L1GtStableParametersTrivialProducer.h.

Referenced by L1GtStableParametersTrivialProducer(), and produceGtStableParameters().