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 // user include files
25 // base class
26 
27 // forward declarations
28 
29 // constructor
31  // empty
32 }
33 
34 // destructor
36  // empty
37 }
38 
39 // set the number of physics trigger algorithms
40 void L1GtStableParameters::setGtNumberPhysTriggers(const unsigned int& numberPhysTriggersValue) {
41  m_numberPhysTriggers = numberPhysTriggersValue;
42 }
43 
44 // set the additional number of physics trigger algorithms
45 void L1GtStableParameters::setGtNumberPhysTriggersExtended(const unsigned int& numberPhysTriggersExtendedValue) {
46  m_numberPhysTriggersExtended = numberPhysTriggersExtendedValue;
47 }
48 
49 // set the number of technical triggers
50 void L1GtStableParameters::setGtNumberTechnicalTriggers(const unsigned int& numberTechnicalTriggersValue) {
51  m_numberTechnicalTriggers = numberTechnicalTriggersValue;
52 }
53 
54 // set the number of L1 muons received by GT
55 void L1GtStableParameters::setGtNumberL1Mu(const unsigned int& numberL1MuValue) { m_numberL1Mu = numberL1MuValue; }
56 
57 // set the number of L1 e/gamma objects received by GT
58 void L1GtStableParameters::setGtNumberL1NoIsoEG(const unsigned int& numberL1NoIsoEGValue) {
59  m_numberL1NoIsoEG = numberL1NoIsoEGValue;
60 }
61 
62 // set the number of L1 isolated e/gamma objects received by GT
63 void L1GtStableParameters::setGtNumberL1IsoEG(const unsigned int& numberL1IsoEGValue) {
64  m_numberL1IsoEG = numberL1IsoEGValue;
65 }
66 
67 // set the number of L1 central jets received by GT
68 void L1GtStableParameters::setGtNumberL1CenJet(const unsigned int& numberL1CenJetValue) {
69  m_numberL1CenJet = numberL1CenJetValue;
70 }
71 
72 // set the number of L1 forward jets received by GT
73 void L1GtStableParameters::setGtNumberL1ForJet(const unsigned int& numberL1ForJetValue) {
74  m_numberL1ForJet = numberL1ForJetValue;
75 }
76 
77 // set the number of L1 tau jets received by GT
78 void L1GtStableParameters::setGtNumberL1TauJet(const unsigned int& numberL1TauJetValue) {
79  m_numberL1TauJet = numberL1TauJetValue;
80 }
81 
82 // set the number of L1 jet counts received by GT
83 void L1GtStableParameters::setGtNumberL1JetCounts(const unsigned int& numberL1JetCountsValue) {
84  m_numberL1JetCounts = numberL1JetCountsValue;
85 }
86 
87 // hardware stuff
88 
89 // set the number of condition chips in GTL
90 void L1GtStableParameters::setGtNumberConditionChips(const unsigned int& numberConditionChipsValue) {
91  m_numberConditionChips = numberConditionChipsValue;
92 }
93 
94 // set the number of pins on the GTL condition chips
95 void L1GtStableParameters::setGtPinsOnConditionChip(const unsigned int& pinsOnConditionChipValue) {
96  m_pinsOnConditionChip = pinsOnConditionChipValue;
97 }
98 
99 // set the correspondence "condition chip - GTL algorithm word"
100 // in the hardware
101 void L1GtStableParameters::setGtOrderConditionChip(const std::vector<int>& orderConditionChipValue) {
102  m_orderConditionChip = orderConditionChipValue;
103 }
104 
105 // set the number of PSB boards in GT
106 void L1GtStableParameters::setGtNumberPsbBoards(const int& numberPsbBoardsValue) {
107  m_numberPsbBoards = numberPsbBoardsValue;
108 }
109 
110 // set the number of bits for eta of calorimeter objects
111 void L1GtStableParameters::setGtIfCaloEtaNumberBits(const unsigned int& ifCaloEtaNumberBitsValue) {
112  m_ifCaloEtaNumberBits = ifCaloEtaNumberBitsValue;
113 }
114 
115 // set the number of bits for eta of muon objects
116 void L1GtStableParameters::setGtIfMuEtaNumberBits(const unsigned int& ifMuEtaNumberBitsValue) {
117  m_ifMuEtaNumberBits = ifMuEtaNumberBitsValue;
118 }
119 
120 // set WordLength
121 void L1GtStableParameters::setGtWordLength(const int& wordLengthValue) { m_wordLength = wordLengthValue; }
122 
123 // set one UnitLength
124 void L1GtStableParameters::setGtUnitLength(const int& unitLengthValue) { m_unitLength = unitLengthValue; }
125 
126 // print all the L1 GT stable parameters
127 void L1GtStableParameters::print(std::ostream& myStr) const {
128  myStr << "\nL1 GT Stable Parameters \n" << std::endl;
129 
130  // trigger decision
131 
132  // number of physics trigger algorithms
133  myStr << "\n Number of physics trigger algorithms = " << m_numberPhysTriggers << std::endl;
134 
135  // additional number of physics trigger algorithms
136  myStr << " Additional number of physics trigger algorithms = " << m_numberPhysTriggersExtended << std::endl;
137 
138  // number of technical triggers
139  myStr << " Number of technical triggers = " << m_numberTechnicalTriggers << std::endl;
140 
141  // muons
142  myStr << "\n Number of muons received by L1 GT = " << m_numberL1Mu << std::endl;
143 
144  // e/gamma and isolated e/gamma objects
145  myStr << " Number of e/gamma objects received by L1 GT = " << m_numberL1NoIsoEG << std::endl;
146  myStr << " Number of isolated e/gamma objects received by L1 GT = " << m_numberL1IsoEG << std::endl;
147 
148  // central, forward and tau jets
149  myStr << "\n Number of central jets received by L1 GT = " << m_numberL1CenJet << std::endl;
150  myStr << " Number of forward jets received by L1 GT = " << m_numberL1ForJet << std::endl;
151  myStr << " Number of tau jets received by L1 GT = " << m_numberL1TauJet << std::endl;
152 
153  // jet counts
154  myStr << "\n Number of jet counts received by L1 GT = " << m_numberL1JetCounts << std::endl;
155 
156  // hardware
157 
158  // number of condition chips
159  myStr << "\n Number of condition chips = " << m_numberConditionChips << std::endl;
160 
161  // number of pins on the GTL condition chips
162  myStr << " Number of pins on the GTL condition chips = " << m_pinsOnConditionChip << std::endl;
163 
164  // correspondence "condition chip - GTL algorithm word" in the hardware
165  // chip 2: 0 - 95; chip 1: 96 - 128 (191)
166  myStr << " Order of condition chips for GTL algorithm word = {";
167 
168  for (unsigned int iChip = 0; iChip < m_orderConditionChip.size(); ++iChip) {
169  myStr << m_orderConditionChip[iChip];
170  if (iChip != (m_orderConditionChip.size() - 1)) {
171  myStr << ", ";
172  }
173  }
174 
175  myStr << "}" << std::endl;
176 
177  // number of PSB boards in GT
178  myStr << "\n Number of PSB boards in GT = " << m_numberPsbBoards << std::endl;
179 
180  // number of bits for eta of calorimeter objects
181  myStr << "\n Number of bits for eta of calorimeter objects = " << m_ifCaloEtaNumberBits << std::endl;
182 
183  // number of bits for eta of muon objects
184  myStr << "\n Number of bits for eta of muon objects = " << m_ifMuEtaNumberBits << std::endl;
185 
186  // GT DAQ record organized in words of WordLength bits
187  myStr << "\n Word length (bits) for GT records = " << m_wordLength << std::endl;
188 
189  // one unit in the word is UnitLength bits
190  myStr << " Unit length (bits) for GT records = " << m_unitLength << std::endl;
191 
192  myStr << "\n" << std::endl;
193 }
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 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 print(std::ostream &) const
print all the L1 GT stable parameters
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