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 }
L1GtStableParameters::m_numberPhysTriggersExtended
unsigned int m_numberPhysTriggersExtended
additional number of physics trigger algorithms
Definition: L1GtStableParameters.h:145
L1GtStableParameters::setGtIfCaloEtaNumberBits
void setGtIfCaloEtaNumberBits(const unsigned int &)
Definition: L1GtStableParameters.cc:111
L1GtStableParameters::setGtNumberL1IsoEG
void setGtNumberL1IsoEG(const unsigned int &)
Definition: L1GtStableParameters.cc:63
L1GtStableParameters::m_numberPsbBoards
int m_numberPsbBoards
number of PSB boards in GT
Definition: L1GtStableParameters.h:181
L1GtStableParameters::~L1GtStableParameters
virtual ~L1GtStableParameters()
Definition: L1GtStableParameters.cc:35
L1GtStableParameters::m_numberL1IsoEG
unsigned int m_numberL1IsoEG
Definition: L1GtStableParameters.h:157
L1GtStableParameters::setGtNumberL1Mu
void setGtNumberL1Mu(const unsigned int &)
Definition: L1GtStableParameters.cc:55
L1GtStableParameters::m_unitLength
int m_unitLength
one unit in the word is UnitLength bits
Definition: L1GtStableParameters.h:194
L1GtStableParameters::setGtOrderConditionChip
void setGtOrderConditionChip(const std::vector< int > &)
Definition: L1GtStableParameters.cc:101
L1GtStableParameters::m_numberL1Mu
unsigned int m_numberL1Mu
trigger objects
Definition: L1GtStableParameters.h:153
L1GtStableParameters::m_numberL1TauJet
unsigned int m_numberL1TauJet
Definition: L1GtStableParameters.h:162
L1GtStableParameters::m_numberConditionChips
unsigned int m_numberConditionChips
hardware
Definition: L1GtStableParameters.h:171
L1GtStableParameters::setGtNumberL1JetCounts
void setGtNumberL1JetCounts(const unsigned int &)
Definition: L1GtStableParameters.cc:83
L1GtStableParameters::print
void print(std::ostream &) const
print all the L1 GT stable parameters
Definition: L1GtStableParameters.cc:127
L1GtStableParameters::m_numberL1CenJet
unsigned int m_numberL1CenJet
central, forward and tau jets
Definition: L1GtStableParameters.h:160
L1GtStableParameters::setGtUnitLength
void setGtUnitLength(const int &)
Definition: L1GtStableParameters.cc:124
L1GtStableParameters::m_numberPhysTriggers
unsigned int m_numberPhysTriggers
trigger decision
Definition: L1GtStableParameters.h:142
L1GtStableParameters::m_ifMuEtaNumberBits
unsigned int m_ifMuEtaNumberBits
number of bits for eta of muon objects
Definition: L1GtStableParameters.h:187
L1GtStableParameters::setGtWordLength
void setGtWordLength(const int &)
Definition: L1GtStableParameters.cc:121
L1GtStableParameters::setGtNumberPhysTriggers
void setGtNumberPhysTriggers(const unsigned int &)
Definition: L1GtStableParameters.cc:40
L1GtStableParameters::m_numberTechnicalTriggers
unsigned int m_numberTechnicalTriggers
number of technical triggers
Definition: L1GtStableParameters.h:148
L1GtStableParameters::setGtNumberTechnicalTriggers
void setGtNumberTechnicalTriggers(const unsigned int &)
Definition: L1GtStableParameters.cc:50
L1GtStableParameters::m_numberL1JetCounts
unsigned int m_numberL1JetCounts
jet counts
Definition: L1GtStableParameters.h:165
L1GtStableParameters::setGtNumberL1NoIsoEG
void setGtNumberL1NoIsoEG(const unsigned int &)
Definition: L1GtStableParameters.cc:58
L1GtStableParameters::L1GtStableParameters
L1GtStableParameters()
Definition: L1GtStableParameters.cc:30
L1GtStableParameters::m_wordLength
int m_wordLength
GT DAQ record organized in words of WordLength bits.
Definition: L1GtStableParameters.h:191
L1GtStableParameters::setGtNumberConditionChips
void setGtNumberConditionChips(const unsigned int &)
Definition: L1GtStableParameters.cc:90
L1GtStableParameters::setGtNumberL1CenJet
void setGtNumberL1CenJet(const unsigned int &)
Definition: L1GtStableParameters.cc:68
L1GtStableParameters::m_pinsOnConditionChip
unsigned int m_pinsOnConditionChip
number of pins on the GTL condition chips
Definition: L1GtStableParameters.h:174
L1GtStableParameters::setGtNumberL1ForJet
void setGtNumberL1ForJet(const unsigned int &)
Definition: L1GtStableParameters.cc:73
L1GtStableParameters::m_numberL1NoIsoEG
unsigned int m_numberL1NoIsoEG
e/gamma and isolated e/gamma objects
Definition: L1GtStableParameters.h:156
L1GtStableParameters::setGtIfMuEtaNumberBits
void setGtIfMuEtaNumberBits(const unsigned int &)
Definition: L1GtStableParameters.cc:116
L1GtStableParameters::setGtPinsOnConditionChip
void setGtPinsOnConditionChip(const unsigned int &)
Definition: L1GtStableParameters.cc:95
L1GtStableParameters::setGtNumberL1TauJet
void setGtNumberL1TauJet(const unsigned int &)
Definition: L1GtStableParameters.cc:78
L1GtStableParameters::setGtNumberPsbBoards
void setGtNumberPsbBoards(const int &)
Definition: L1GtStableParameters.cc:106
L1GtStableParameters.h
L1GtStableParameters::m_orderConditionChip
std::vector< int > m_orderConditionChip
Definition: L1GtStableParameters.h:178
L1GtStableParameters::setGtNumberPhysTriggersExtended
void setGtNumberPhysTriggersExtended(const unsigned int &)
Definition: L1GtStableParameters.cc:45
L1GtStableParameters::m_ifCaloEtaNumberBits
unsigned int m_ifCaloEtaNumberBits
number of bits for eta of calorimeter objects
Definition: L1GtStableParameters.h:184
L1GtStableParameters::m_numberL1ForJet
unsigned int m_numberL1ForJet
Definition: L1GtStableParameters.h:161