CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1GtStableParametersTrivialProducer.cc
Go to the documentation of this file.
1 
15 // this class header
17 
18 // system include files
19 #include <memory>
20 #include <vector>
21 
22 #include "boost/shared_ptr.hpp"
23 
24 // user include files
25 // base class
27 
30 
33 
35 
36 // forward declarations
37 
38 // constructor(s)
40  const edm::ParameterSet& parSet) {
41 
42  // tell the framework what data is being produced
45 
46  // now do what ever other initialization is needed
47 
48  // trigger decision
49 
50  // number of physics trigger algorithms
52  = parSet.getParameter<unsigned int>("NumberPhysTriggers");
53 
54  // additional number of physics trigger algorithms
56  = parSet.getParameter<unsigned int>("NumberPhysTriggersExtended");
57 
58  // number of technical triggers
60  = parSet.getParameter<unsigned int>("NumberTechnicalTriggers");
61 
62  // trigger objects
63 
64  // muons
65  m_numberL1Mu = parSet.getParameter<unsigned int>("NumberL1Mu");
66 
67  // e/gamma and isolated e/gamma objects
68  m_numberL1NoIsoEG = parSet.getParameter<unsigned int>("NumberL1NoIsoEG");
69  m_numberL1IsoEG = parSet.getParameter<unsigned int>("NumberL1IsoEG");
70 
71  // central, forward and tau jets
72  m_numberL1CenJet = parSet.getParameter<unsigned int>("NumberL1CenJet");
73  m_numberL1ForJet = parSet.getParameter<unsigned int>("NumberL1ForJet");
74  m_numberL1TauJet = parSet.getParameter<unsigned int>("NumberL1TauJet");
75 
76  // jet counts
77  m_numberL1JetCounts = parSet.getParameter<unsigned int>("NumberL1JetCounts");
78 
79  // hardware
80 
81  // number of maximum chips defined in the xml file
83  = parSet.getParameter<unsigned int>("NumberConditionChips");
84 
85  // number of pins on the GTL condition chips
87  = parSet.getParameter<unsigned int>("PinsOnConditionChip");
88 
89  // correspondence "condition chip - GTL algorithm word" in the hardware
90  // e.g.: chip 2: 0 - 95; chip 1: 96 - 128 (191)
92  = parSet.getParameter<std::vector<int> >("OrderConditionChip");
93 
94  // number of PSB boards in GT
95  m_numberPsbBoards = parSet.getParameter<int>("NumberPsbBoards");
96 
99  = parSet.getParameter<unsigned int>("IfCaloEtaNumberBits");
100 
102  m_ifMuEtaNumberBits = parSet.getParameter<unsigned int>("IfMuEtaNumberBits");
103 
104  // GT DAQ record organized in words of WordLength bits
105  m_wordLength = parSet.getParameter<int>("WordLength");
106 
107  // one unit in the word is UnitLength bits
108  m_unitLength = parSet.getParameter<int>("UnitLength");
109 
110 }
111 
112 // destructor
114 
115  // empty
116 
117 }
118 
119 // member functions
120 
121 // method called to produce the data
122 boost::shared_ptr<L1GtStableParameters>
124  const L1GtStableParametersRcd& iRecord) {
125 
126  boost::shared_ptr<L1GtStableParameters> pL1GtStableParameters =
127  boost::shared_ptr<L1GtStableParameters>(new L1GtStableParameters());
128 
129  // set the number of physics trigger algorithms
130  pL1GtStableParameters->setGtNumberPhysTriggers(m_numberPhysTriggers);
131 
132  // set the additional number of physics trigger algorithms
133  pL1GtStableParameters->setGtNumberPhysTriggersExtended(m_numberPhysTriggersExtended);
134 
135  // set the number of technical triggers
136  pL1GtStableParameters->setGtNumberTechnicalTriggers(m_numberTechnicalTriggers);
137 
138  // set the number of L1 muons received by GT
139  pL1GtStableParameters->setGtNumberL1Mu(m_numberL1Mu);
140 
141  // set the number of L1 e/gamma objects received by GT
142  pL1GtStableParameters->setGtNumberL1NoIsoEG(m_numberL1NoIsoEG);
143 
144  // set the number of L1 isolated e/gamma objects received by GT
145  pL1GtStableParameters->setGtNumberL1IsoEG(m_numberL1IsoEG);
146 
147  // set the number of L1 central jets received by GT
148  pL1GtStableParameters->setGtNumberL1CenJet(m_numberL1CenJet);
149 
150  // set the number of L1 forward jets received by GT
151  pL1GtStableParameters->setGtNumberL1ForJet(m_numberL1ForJet);
152 
153  // set the number of L1 tau jets received by GT
154  pL1GtStableParameters->setGtNumberL1TauJet(m_numberL1TauJet);
155 
156  // set the number of L1 jet counts received by GT
157  pL1GtStableParameters->setGtNumberL1JetCounts(m_numberL1JetCounts);
158 
159  // hardware stuff
160 
161  // set the number of condition chips in GTL
162  pL1GtStableParameters->setGtNumberConditionChips(m_numberConditionChips);
163 
164  // set the number of pins on the GTL condition chips
165  pL1GtStableParameters->setGtPinsOnConditionChip(m_pinsOnConditionChip);
166 
167  // set the correspondence "condition chip - GTL algorithm word"
168  // in the hardware
169  pL1GtStableParameters->setGtOrderConditionChip(m_orderConditionChip);
170 
171  // set the number of PSB boards in GT
172  pL1GtStableParameters->setGtNumberPsbBoards(m_numberPsbBoards);
173 
174  // set the number of bits for eta of calorimeter objects
175  pL1GtStableParameters->setGtIfCaloEtaNumberBits(m_ifCaloEtaNumberBits);
176 
177  // set the number of bits for eta of muon objects
178  pL1GtStableParameters->setGtIfMuEtaNumberBits(m_ifMuEtaNumberBits);
179 
180  // set WordLength
181  pL1GtStableParameters->setGtWordLength(m_wordLength);
182 
183  // set one UnitLength
184  pL1GtStableParameters->setGtUnitLength(m_unitLength);
185 
186  //
187  //
188  return pL1GtStableParameters;
189 
190 }
191 
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
L1GtStableParametersTrivialProducer(const edm::ParameterSet &)
constructor
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