CMS 3D CMS Logo

L1GtStableParameters.cc
Go to the documentation of this file.
1 
17 // this class header
19 
20 // system include files
21 
22 #include <iomanip>
23 
24 
25 // user include files
26 // base class
27 
28 // forward declarations
29 
30 // constructor
32  // empty
33 }
34 
35 // destructor
37  // empty
38 }
39 
40 // set the number of physics trigger algorithms
42  const unsigned int& numberPhysTriggersValue) {
43 
44  m_numberPhysTriggers = numberPhysTriggersValue;
45 
46 }
47 
48 // set the additional number of physics trigger algorithms
50  const unsigned int& numberPhysTriggersExtendedValue) {
51 
52  m_numberPhysTriggersExtended = numberPhysTriggersExtendedValue;
53 
54 }
55 
56 // set the number of technical triggers
58  const unsigned int& numberTechnicalTriggersValue) {
59 
60  m_numberTechnicalTriggers = numberTechnicalTriggersValue;
61 
62 }
63 
64 // set the number of L1 muons received by GT
65 void L1GtStableParameters::setGtNumberL1Mu(const unsigned int& numberL1MuValue) {
66 
67  m_numberL1Mu = numberL1MuValue;
68 
69 }
70 
71 // set the number of L1 e/gamma objects received by GT
73  const unsigned int& numberL1NoIsoEGValue) {
74 
75  m_numberL1NoIsoEG = numberL1NoIsoEGValue;
76 
77 }
78 
79 // set the number of L1 isolated e/gamma objects received by GT
81  const unsigned int& numberL1IsoEGValue) {
82 
83  m_numberL1IsoEG = numberL1IsoEGValue;
84 
85 }
86 
87 // set the number of L1 central jets received by GT
89  const unsigned int& numberL1CenJetValue) {
90 
91  m_numberL1CenJet = numberL1CenJetValue;
92 
93 }
94 
95 // set the number of L1 forward jets received by GT
97  const unsigned int& numberL1ForJetValue) {
98 
99  m_numberL1ForJet = numberL1ForJetValue;
100 
101 }
102 
103 // set the number of L1 tau jets received by GT
105  const unsigned int& numberL1TauJetValue) {
106 
107  m_numberL1TauJet = numberL1TauJetValue;
108 
109 }
110 
111 // set the number of L1 jet counts received by GT
113  const unsigned int& numberL1JetCountsValue) {
114 
115  m_numberL1JetCounts = numberL1JetCountsValue;
116 
117 }
118 
119 // hardware stuff
120 
121 // set the number of condition chips in GTL
123  const unsigned int& numberConditionChipsValue) {
124 
125  m_numberConditionChips = numberConditionChipsValue;
126 
127 }
128 
129 // set the number of pins on the GTL condition chips
131  const unsigned int& pinsOnConditionChipValue) {
132 
133  m_pinsOnConditionChip = pinsOnConditionChipValue;
134 
135 }
136 
137 // set the correspondence "condition chip - GTL algorithm word"
138 // in the hardware
140  const std::vector<int>& orderConditionChipValue) {
141 
142  m_orderConditionChip = orderConditionChipValue;
143 
144 }
145 
146 // set the number of PSB boards in GT
147 void L1GtStableParameters::setGtNumberPsbBoards(const int& numberPsbBoardsValue) {
148 
149  m_numberPsbBoards = numberPsbBoardsValue;
150 
151 }
152 
153 // set the number of bits for eta of calorimeter objects
155  const unsigned int& ifCaloEtaNumberBitsValue) {
156 
157  m_ifCaloEtaNumberBits = ifCaloEtaNumberBitsValue;
158 
159 }
160 
161 // set the number of bits for eta of muon objects
163  const unsigned int& ifMuEtaNumberBitsValue) {
164 
165  m_ifMuEtaNumberBits = ifMuEtaNumberBitsValue;
166 
167 }
168 
169 // set WordLength
170 void L1GtStableParameters::setGtWordLength(const int& wordLengthValue) {
171 
172  m_wordLength = wordLengthValue;
173 
174 }
175 
176 // set one UnitLength
177 void L1GtStableParameters::setGtUnitLength(const int& unitLengthValue) {
178 
179  m_unitLength = unitLengthValue;
180 
181 }
182 
183 // print all the L1 GT stable parameters
184 void L1GtStableParameters::print(std::ostream& myStr) const {
185  myStr << "\nL1 GT Stable Parameters \n" << std::endl;
186 
187  // trigger decision
188 
189  // number of physics trigger algorithms
190  myStr << "\n Number of physics trigger algorithms = "
191  << m_numberPhysTriggers << std::endl;
192 
193  // additional number of physics trigger algorithms
194  myStr << " Additional number of physics trigger algorithms = "
195  << m_numberPhysTriggersExtended << std::endl;
196 
197  // number of technical triggers
198  myStr << " Number of technical triggers = "
199  << m_numberTechnicalTriggers << std::endl;
200 
201  // muons
202  myStr << "\n Number of muons received by L1 GT = "
203  << m_numberL1Mu << std::endl;
204 
205  // e/gamma and isolated e/gamma objects
206  myStr << " Number of e/gamma objects received by L1 GT = "
207  << m_numberL1NoIsoEG << std::endl;
208  myStr << " Number of isolated e/gamma objects received by L1 GT = "
209  << m_numberL1IsoEG << std::endl;
210 
211  // central, forward and tau jets
212  myStr << "\n Number of central jets received by L1 GT = "
213  << m_numberL1CenJet << std::endl;
214  myStr << " Number of forward jets received by L1 GT = "
215  << m_numberL1ForJet << std::endl;
216  myStr << " Number of tau jets received by L1 GT = "
217  << m_numberL1TauJet << std::endl;
218 
219  // jet counts
220  myStr << "\n Number of jet counts received by L1 GT = "
221  << m_numberL1JetCounts << std::endl;
222 
223  // hardware
224 
225  // number of condition chips
226  myStr << "\n Number of condition chips = "
227  << m_numberConditionChips << std::endl;
228 
229  // number of pins on the GTL condition chips
230  myStr << " Number of pins on the GTL condition chips = "
231  << m_pinsOnConditionChip << std::endl;
232 
233  // correspondence "condition chip - GTL algorithm word" in the hardware
234  // chip 2: 0 - 95; chip 1: 96 - 128 (191)
235  myStr << " Order of condition chips for GTL algorithm word = {";
236 
237  for (unsigned int iChip = 0; iChip < m_orderConditionChip.size(); ++iChip) {
238  myStr << m_orderConditionChip[iChip];
239  if (iChip != (m_orderConditionChip.size() - 1)) {
240  myStr << ", ";
241  }
242  }
243 
244  myStr << "}" << std::endl;
245 
246  // number of PSB boards in GT
247  myStr << "\n Number of PSB boards in GT = " << m_numberPsbBoards
248  << std::endl;
249 
250  // number of bits for eta of calorimeter objects
251  myStr << "\n Number of bits for eta of calorimeter objects = "
252  << m_ifCaloEtaNumberBits << std::endl;
253 
254  // number of bits for eta of muon objects
255  myStr << "\n Number of bits for eta of muon objects = "
256  << m_ifMuEtaNumberBits << std::endl;
257 
258  // GT DAQ record organized in words of WordLength bits
259  myStr << "\n Word length (bits) for GT records = " << m_wordLength
260  << std::endl;
261 
262  // one unit in the word is UnitLength bits
263  myStr << " Unit length (bits) for GT records = " << m_unitLength
264  << std::endl;
265 
266  myStr << "\n" << std::endl;
267 
268 }
unsigned int m_numberL1Mu
trigger objects
unsigned int m_pinsOnConditionChip
number of pins on the GTL condition chips
void setGtNumberConditionChips(const unsigned int &)
void setGtNumberL1ForJet(const unsigned int &)
unsigned int m_numberL1NoIsoEG
e/gamma and isolated e/gamma objects
void setGtNumberL1JetCounts(const unsigned int &)
void setGtNumberL1TauJet(const unsigned int &)
void setGtNumberPsbBoards(const int &)
void setGtNumberL1CenJet(const unsigned int &)
unsigned int m_numberPhysTriggers
trigger decision
unsigned int m_numberL1CenJet
central, forward and tau jets
std::vector< int > m_orderConditionChip
void setGtNumberTechnicalTriggers(const unsigned int &)
void print(std::ostream &) const
print all the L1 GT stable parameters
void setGtNumberL1IsoEG(const unsigned int &)
unsigned int m_numberTechnicalTriggers
number of technical triggers
int m_wordLength
GT DAQ record organized in words of WordLength bits.
void setGtNumberL1NoIsoEG(const unsigned int &)
int m_unitLength
one unit in the word is UnitLength bits
void setGtNumberL1Mu(const unsigned int &)
void setGtOrderConditionChip(const std::vector< int > &)
void setGtPinsOnConditionChip(const unsigned int &)
void setGtIfMuEtaNumberBits(const unsigned int &)
unsigned int m_numberConditionChips
hardware
void setGtIfCaloEtaNumberBits(const unsigned int &)
void setGtNumberPhysTriggersExtended(const unsigned int &)
unsigned int m_ifCaloEtaNumberBits
number of bits for eta of calorimeter objects
void setGtUnitLength(const int &)
unsigned int m_numberPhysTriggersExtended
additional number of physics trigger algorithms
unsigned int m_ifMuEtaNumberBits
number of bits for eta of muon objects
int m_numberPsbBoards
number of PSB boards in GT
void setGtWordLength(const int &)
void setGtNumberPhysTriggers(const unsigned int &)
unsigned int m_numberL1JetCounts
jet counts