CMS 3D CMS Logo

GlobalStableParameters.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 GlobalStableParameters::setGtNumberPhysTriggers(const unsigned int& numberPhysTriggersValue) {
41  m_numberPhysTriggers = numberPhysTriggersValue;
42 }
43 
44 // set the additional number of physics trigger algorithms
45 void GlobalStableParameters::setGtNumberPhysTriggersExtended(const unsigned int& numberPhysTriggersExtendedValue) {
46  m_numberPhysTriggersExtended = numberPhysTriggersExtendedValue;
47 }
48 
49 // set the number of technical triggers
50 void GlobalStableParameters::setGtNumberTechnicalTriggers(const unsigned int& numberTechnicalTriggersValue) {
51  m_numberTechnicalTriggers = numberTechnicalTriggersValue;
52 }
53 
54 // set the number of L1 muons received by GT
55 void GlobalStableParameters::setGtNumberL1Mu(const unsigned int& numberL1MuValue) { m_numberL1Mu = numberL1MuValue; }
56 
57 // set the number of L1 e/gamma objects received by GT
58 void GlobalStableParameters::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 GlobalStableParameters::setGtNumberL1IsoEG(const unsigned int& numberL1IsoEGValue) {
64  m_numberL1IsoEG = numberL1IsoEGValue;
65 }
66 
67 // set the number of L1 central jets received by GT
68 void GlobalStableParameters::setGtNumberL1CenJet(const unsigned int& numberL1CenJetValue) {
69  m_numberL1CenJet = numberL1CenJetValue;
70 }
71 
72 // set the number of L1 forward jets received by GT
73 void GlobalStableParameters::setGtNumberL1ForJet(const unsigned int& numberL1ForJetValue) {
74  m_numberL1ForJet = numberL1ForJetValue;
75 }
76 
77 // set the number of L1 tau jets received by GT
78 void GlobalStableParameters::setGtNumberL1TauJet(const unsigned int& numberL1TauJetValue) {
79  m_numberL1TauJet = numberL1TauJetValue;
80 }
81 
82 // set the number of L1 jet counts received by GT
83 void GlobalStableParameters::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 GlobalStableParameters::setGtNumberConditionChips(const unsigned int& numberConditionChipsValue) {
91  m_numberConditionChips = numberConditionChipsValue;
92 }
93 
94 // set the number of pins on the GTL condition chips
95 void GlobalStableParameters::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 GlobalStableParameters::setGtOrderConditionChip(const std::vector<int>& orderConditionChipValue) {
102  m_orderConditionChip = orderConditionChipValue;
103 }
104 
105 // set the number of PSB boards in GT
106 void GlobalStableParameters::setGtNumberPsbBoards(const int& numberPsbBoardsValue) {
107  m_numberPsbBoards = numberPsbBoardsValue;
108 }
109 
110 // set the number of bits for eta of calorimeter objects
111 void GlobalStableParameters::setGtIfCaloEtaNumberBits(const unsigned int& ifCaloEtaNumberBitsValue) {
112  m_ifCaloEtaNumberBits = ifCaloEtaNumberBitsValue;
113 }
114 
115 // set the number of bits for eta of muon objects
116 void GlobalStableParameters::setGtIfMuEtaNumberBits(const unsigned int& ifMuEtaNumberBitsValue) {
117  m_ifMuEtaNumberBits = ifMuEtaNumberBitsValue;
118 }
119 
120 // set WordLength
121 void GlobalStableParameters::setGtWordLength(const int& wordLengthValue) { m_wordLength = wordLengthValue; }
122 
123 // set one UnitLength
124 void GlobalStableParameters::setGtUnitLength(const int& unitLengthValue) { m_unitLength = unitLengthValue; }
125 
126 // print all the L1 GT stable parameters
127 void GlobalStableParameters::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 }
GlobalStableParameters::setGtNumberTechnicalTriggers
void setGtNumberTechnicalTriggers(const unsigned int &)
Definition: GlobalStableParameters.cc:50
GlobalStableParameters::m_numberPhysTriggersExtended
unsigned int m_numberPhysTriggersExtended
additional number of physics trigger algorithms
Definition: GlobalStableParameters.h:143
GlobalStableParameters::m_numberPhysTriggers
unsigned int m_numberPhysTriggers
trigger decision
Definition: GlobalStableParameters.h:140
GlobalStableParameters::print
void print(std::ostream &) const
print all the L1 GT stable parameters
Definition: GlobalStableParameters.cc:127
GlobalStableParameters::m_orderConditionChip
std::vector< int > m_orderConditionChip
Definition: GlobalStableParameters.h:176
GlobalStableParameters::setGtNumberL1NoIsoEG
void setGtNumberL1NoIsoEG(const unsigned int &)
Definition: GlobalStableParameters.cc:58
GlobalStableParameters::m_numberL1NoIsoEG
unsigned int m_numberL1NoIsoEG
e/gamma and isolated e/gamma objects
Definition: GlobalStableParameters.h:154
GlobalStableParameters::setGtNumberL1JetCounts
void setGtNumberL1JetCounts(const unsigned int &)
Definition: GlobalStableParameters.cc:83
GlobalStableParameters::setGtIfCaloEtaNumberBits
void setGtIfCaloEtaNumberBits(const unsigned int &)
Definition: GlobalStableParameters.cc:111
GlobalStableParameters::m_unitLength
int m_unitLength
one unit in the word is UnitLength bits
Definition: GlobalStableParameters.h:192
GlobalStableParameters::m_numberConditionChips
unsigned int m_numberConditionChips
hardware
Definition: GlobalStableParameters.h:169
GlobalStableParameters::m_ifCaloEtaNumberBits
unsigned int m_ifCaloEtaNumberBits
number of bits for eta of calorimeter objects
Definition: GlobalStableParameters.h:182
GlobalStableParameters::setGtWordLength
void setGtWordLength(const int &)
Definition: GlobalStableParameters.cc:121
GlobalStableParameters::setGtNumberPsbBoards
void setGtNumberPsbBoards(const int &)
Definition: GlobalStableParameters.cc:106
GlobalStableParameters::setGtIfMuEtaNumberBits
void setGtIfMuEtaNumberBits(const unsigned int &)
Definition: GlobalStableParameters.cc:116
GlobalStableParameters::m_pinsOnConditionChip
unsigned int m_pinsOnConditionChip
number of pins on the GTL condition chips
Definition: GlobalStableParameters.h:172
GlobalStableParameters.h
GlobalStableParameters::setGtNumberL1TauJet
void setGtNumberL1TauJet(const unsigned int &)
Definition: GlobalStableParameters.cc:78
GlobalStableParameters::m_numberL1ForJet
unsigned int m_numberL1ForJet
Definition: GlobalStableParameters.h:159
GlobalStableParameters::setGtNumberPhysTriggersExtended
void setGtNumberPhysTriggersExtended(const unsigned int &)
Definition: GlobalStableParameters.cc:45
GlobalStableParameters::m_numberPsbBoards
int m_numberPsbBoards
number of PSB boards in GT
Definition: GlobalStableParameters.h:179
GlobalStableParameters::m_numberTechnicalTriggers
unsigned int m_numberTechnicalTriggers
number of technical triggers
Definition: GlobalStableParameters.h:146
GlobalStableParameters::m_wordLength
int m_wordLength
GT DAQ record organized in words of WordLength bits.
Definition: GlobalStableParameters.h:189
GlobalStableParameters::setGtUnitLength
void setGtUnitLength(const int &)
Definition: GlobalStableParameters.cc:124
GlobalStableParameters::setGtPinsOnConditionChip
void setGtPinsOnConditionChip(const unsigned int &)
Definition: GlobalStableParameters.cc:95
GlobalStableParameters::~GlobalStableParameters
virtual ~GlobalStableParameters()
Definition: GlobalStableParameters.cc:35
GlobalStableParameters::setGtNumberL1CenJet
void setGtNumberL1CenJet(const unsigned int &)
Definition: GlobalStableParameters.cc:68
GlobalStableParameters::m_ifMuEtaNumberBits
unsigned int m_ifMuEtaNumberBits
number of bits for eta of muon objects
Definition: GlobalStableParameters.h:185
GlobalStableParameters::m_numberL1TauJet
unsigned int m_numberL1TauJet
Definition: GlobalStableParameters.h:160
GlobalStableParameters::m_numberL1JetCounts
unsigned int m_numberL1JetCounts
jet counts
Definition: GlobalStableParameters.h:163
GlobalStableParameters::setGtNumberL1Mu
void setGtNumberL1Mu(const unsigned int &)
Definition: GlobalStableParameters.cc:55
GlobalStableParameters::GlobalStableParameters
GlobalStableParameters()
Definition: GlobalStableParameters.cc:30
GlobalStableParameters::m_numberL1Mu
unsigned int m_numberL1Mu
trigger objects
Definition: GlobalStableParameters.h:151
GlobalStableParameters::setGtNumberL1ForJet
void setGtNumberL1ForJet(const unsigned int &)
Definition: GlobalStableParameters.cc:73
GlobalStableParameters::setGtNumberConditionChips
void setGtNumberConditionChips(const unsigned int &)
Definition: GlobalStableParameters.cc:90
GlobalStableParameters::setGtNumberPhysTriggers
void setGtNumberPhysTriggers(const unsigned int &)
Definition: GlobalStableParameters.cc:40
GlobalStableParameters::setGtNumberL1IsoEG
void setGtNumberL1IsoEG(const unsigned int &)
Definition: GlobalStableParameters.cc:63
GlobalStableParameters::m_numberL1CenJet
unsigned int m_numberL1CenJet
central, forward and tau jets
Definition: GlobalStableParameters.h:158
GlobalStableParameters::m_numberL1IsoEG
unsigned int m_numberL1IsoEG
Definition: GlobalStableParameters.h:155
GlobalStableParameters::setGtOrderConditionChip
void setGtOrderConditionChip(const std::vector< int > &)
Definition: GlobalStableParameters.cc:101