39 confHToken = esConsumes<CSCDBL1TPParameters, CSCDBL1TPParametersRcd>();
78 unsigned int py_alctFifoTbins =
alctParams.getParameter<
unsigned int>(
"alctFifoTbins");
79 unsigned int py_alctFifoPretrig =
alctParams.getParameter<
unsigned int>(
"alctFifoPretrig");
80 unsigned int py_alctDriftDelay =
alctParams.getParameter<
unsigned int>(
"alctDriftDelay");
81 unsigned int py_alctNplanesHitPretrig =
alctParams.getParameter<
unsigned int>(
"alctNplanesHitPretrig");
82 unsigned int py_alctNplanesHitPattern =
alctParams.getParameter<
unsigned int>(
"alctNplanesHitPattern");
83 unsigned int py_alctNplanesHitAccelPretrig =
alctParams.getParameter<
unsigned int>(
"alctNplanesHitAccelPretrig");
84 unsigned int py_alctNplanesHitAccelPattern =
alctParams.getParameter<
unsigned int>(
"alctNplanesHitAccelPattern");
85 unsigned int py_alctTrigMode =
alctParams.getParameter<
unsigned int>(
"alctTrigMode");
86 unsigned int py_alctAccelMode =
alctParams.getParameter<
unsigned int>(
"alctAccelMode");
87 unsigned int py_alctL1aWindowWidth =
alctParams.getParameter<
unsigned int>(
"alctL1aWindowWidth");
89 unsigned int py_clctFifoTbins =
clctParams.getParameter<
unsigned int>(
"clctFifoTbins");
90 unsigned int py_clctFifoPretrig =
clctParams.getParameter<
unsigned int>(
"clctFifoPretrig");
91 unsigned int py_clctHitPersist =
clctParams.getParameter<
unsigned int>(
"clctHitPersist");
92 unsigned int py_clctDriftDelay =
clctParams.getParameter<
unsigned int>(
"clctDriftDelay");
93 unsigned int py_clctNplanesHitPretrig =
clctParams.getParameter<
unsigned int>(
"clctNplanesHitPretrig");
94 unsigned int py_clctNplanesHitPattern =
clctParams.getParameter<
unsigned int>(
"clctNplanesHitPattern");
95 unsigned int py_clctPidThreshPretrig =
clctParams.getParameter<
unsigned int>(
"clctPidThreshPretrig");
96 unsigned int py_clctMinSeparation =
clctParams.getParameter<
unsigned int>(
"clctMinSeparation");
98 unsigned int py_tmbMpcBlockMe1a =
tmbParams.getParameter<
unsigned int>(
"mpcBlockMe1a");
99 unsigned int py_tmbAlctTrigEnable =
tmbParams.getParameter<
unsigned int>(
"alctTrigEnable");
100 unsigned int py_tmbClctTrigEnable =
tmbParams.getParameter<
unsigned int>(
"clctTrigEnable");
101 unsigned int py_tmbMatchTrigEnable =
tmbParams.getParameter<
unsigned int>(
"matchTrigEnable");
102 unsigned int py_tmbMatchTrigWindowSize =
tmbParams.getParameter<
unsigned int>(
"matchTrigWindowSize");
103 unsigned int py_tmbL1aWindowSize =
tmbParams.getParameter<
unsigned int>(
"tmbL1aWindowSize");
106 bool ok_alctFifoTbins = db_alctFifoTbins == py_alctFifoTbins;
107 bool ok_alctFifoPretrig = db_alctFifoPretrig == py_alctFifoPretrig;
108 bool ok_alctDriftDelay = db_alctDriftDelay == py_alctDriftDelay;
109 bool ok_alctNplanesHitPretrig = db_alctNplanesHitPretrig == py_alctNplanesHitPretrig;
110 bool ok_alctNplanesHitPattern = db_alctNplanesHitPattern == py_alctNplanesHitPattern;
111 bool ok_alctNplanesHitAccelPretrig = db_alctNplanesHitAccelPretrig == py_alctNplanesHitAccelPretrig;
112 bool ok_alctNplanesHitAccelPattern = db_alctNplanesHitAccelPattern == py_alctNplanesHitAccelPattern;
113 bool ok_alctTrigMode = db_alctTrigMode == py_alctTrigMode;
114 bool ok_alctAccelMode = db_alctAccelMode == py_alctAccelMode;
115 bool ok_alctL1aWindowWidth = db_alctL1aWindowWidth == py_alctL1aWindowWidth;
117 bool ok_clctFifoTbins = db_clctFifoTbins == py_clctFifoTbins;
118 bool ok_clctFifoPretrig = db_clctFifoPretrig == py_clctFifoPretrig;
119 bool ok_clctHitPersist = db_clctHitPersist == py_clctHitPersist;
120 bool ok_clctDriftDelay = db_clctDriftDelay == py_clctDriftDelay;
121 bool ok_clctNplanesHitPretrig = db_clctNplanesHitPretrig == py_clctNplanesHitPretrig;
122 bool ok_clctNplanesHitPattern = db_clctNplanesHitPattern == py_clctNplanesHitPattern;
123 bool ok_clctPidThreshPretrig = db_clctPidThreshPretrig == py_clctPidThreshPretrig;
124 bool ok_clctMinSeparation = db_clctMinSeparation == py_clctMinSeparation;
126 bool ok_tmbMpcBlockMe1a = db_tmbMpcBlockMe1a == py_tmbMpcBlockMe1a;
127 bool ok_tmbAlctTrigEnable = db_tmbAlctTrigEnable == py_tmbAlctTrigEnable;
128 bool ok_tmbClctTrigEnable = db_tmbClctTrigEnable == py_tmbClctTrigEnable;
129 bool ok_tmbMatchTrigEnable = db_tmbMatchTrigEnable == py_tmbMatchTrigEnable;
130 bool ok_tmbMatchTrigWindowSize = db_tmbMatchTrigWindowSize == py_tmbMatchTrigWindowSize;
131 bool ok_tmbL1aWindowSize = db_tmbL1aWindowSize == py_tmbL1aWindowSize;
134 std::cout <<
"Start Comparing the L1 CSC TP emulator settings between Python and conditions DB." << std::endl;
137 std::cout <<
"Parameters different between Py and DB" << std::endl;
138 std::cout <<
"- - - - - - - - - - - - - - - - - - - " << std::endl;
141 if (!ok_alctFifoTbins)
142 std::cout <<
"alctFifoTbins: Py = " << py_alctFifoTbins <<
", DB = " << db_alctFifoTbins << std::endl;
143 if (!ok_alctFifoPretrig)
144 std::cout <<
"alctFifoPretrig: Py = " << py_alctFifoPretrig <<
", DB = " << db_alctFifoPretrig << std::endl;
145 if (!ok_alctDriftDelay)
146 std::cout <<
"alctDriftDelay: Py = " << py_alctDriftDelay <<
", DB = " << db_alctDriftDelay << std::endl;
147 if (!ok_alctNplanesHitPretrig)
148 std::cout <<
"alctNplanesHitPretrig: Py = " << py_alctNplanesHitPretrig <<
", DB = " << db_alctNplanesHitPretrig
150 if (!ok_alctNplanesHitPattern)
151 std::cout <<
"alctNplanesHitPattern: Py = " << py_alctNplanesHitPattern <<
", DB = " << db_alctNplanesHitPattern
153 if (!ok_alctNplanesHitAccelPretrig)
154 std::cout <<
"alctNplanesHitAccelPretrig: Py = " << py_alctNplanesHitAccelPretrig
155 <<
", DB = " << db_alctNplanesHitAccelPretrig << std::endl;
156 if (!ok_alctNplanesHitAccelPattern)
157 std::cout <<
"alctNplanesHitAccelPattern: Py = " << py_alctNplanesHitAccelPattern
158 <<
", DB = " << db_alctNplanesHitAccelPattern << std::endl;
159 if (!ok_alctTrigMode)
160 std::cout <<
"alctTrigMode: Py = " << py_alctTrigMode <<
", DB = " << db_alctTrigMode << std::endl;
161 if (!ok_alctAccelMode)
162 std::cout <<
"alctAccelMode: Py = " << py_alctAccelMode <<
", DB = " << db_alctAccelMode << std::endl;
163 if (!ok_alctL1aWindowWidth)
164 std::cout <<
"alctL1aWindowWidth: Py = " << py_alctL1aWindowWidth <<
", DB = " << db_alctL1aWindowWidth
168 if (!ok_clctFifoTbins)
169 std::cout <<
"clctFifoTbins: Py = " << py_clctFifoTbins <<
", DB = " << db_clctFifoTbins << std::endl;
170 if (!ok_clctFifoPretrig)
171 std::cout <<
"clctFifoPretrig: Py = " << py_clctFifoPretrig <<
", DB = " << db_clctFifoPretrig << std::endl;
172 if (!ok_clctHitPersist)
173 std::cout <<
"clctHitPersist: Py = " << py_clctHitPersist <<
", DB = " << db_clctHitPersist << std::endl;
174 if (!ok_clctDriftDelay)
175 std::cout <<
"clctDriftDelay: Py = " << py_clctDriftDelay <<
", DB = " << db_clctDriftDelay << std::endl;
176 if (!ok_clctNplanesHitPretrig)
177 std::cout <<
"clctNplanesHitPretrig: Py = " << py_clctNplanesHitPretrig <<
", DB = " << db_clctNplanesHitPretrig
179 if (!ok_clctNplanesHitPattern)
180 std::cout <<
"clctNplanesHitPattern: Py = " << py_clctNplanesHitPattern <<
", DB = " << db_clctNplanesHitPattern
182 if (!ok_clctPidThreshPretrig)
183 std::cout <<
"clctPidThreshPretrig: Py = " << py_clctPidThreshPretrig <<
", DB = " << db_clctPidThreshPretrig
185 if (!ok_clctMinSeparation)
186 std::cout <<
"clctMinSeparation: Py = " << py_clctMinSeparation <<
", DB = " << db_clctMinSeparation << std::endl;
189 if (!ok_tmbMpcBlockMe1a)
190 std::cout <<
"tmbMpcBlockMe1a: Py = " << py_tmbMpcBlockMe1a <<
", DB = " << db_tmbMpcBlockMe1a << std::endl;
191 if (!ok_tmbAlctTrigEnable)
192 std::cout <<
"tmbAlctTrigEnable: Py = " << py_tmbAlctTrigEnable <<
", DB = " << db_tmbAlctTrigEnable << std::endl;
193 if (!ok_tmbClctTrigEnable)
194 std::cout <<
"tmbClctTrigEnable: Py = " << py_tmbClctTrigEnable <<
", DB = " << db_tmbClctTrigEnable << std::endl;
195 if (!ok_tmbMatchTrigEnable)
196 std::cout <<
"tmbMatchTrigEnable: Py = " << py_tmbMatchTrigEnable <<
", DB = " << db_tmbMatchTrigEnable
198 if (!ok_tmbMatchTrigWindowSize)
199 std::cout <<
"tmbMatchTrigWindowSize: Py = " << py_tmbMatchTrigWindowSize <<
", DB = " << db_tmbMatchTrigWindowSize
201 if (!ok_tmbL1aWindowSize)
202 std::cout <<
"tmbL1aWindowSize: Py = " << py_tmbL1aWindowSize <<
", DB = " << db_tmbL1aWindowSize << std::endl;
205 std::cout <<
"Parameters same in Py and DB" << std::endl;
206 std::cout <<
"- - - - - - - - - - - - - - " << std::endl;
209 if (ok_alctFifoTbins)
210 std::cout <<
"alctFifoTbins: " << py_alctFifoTbins << std::endl;
211 if (ok_alctFifoPretrig)
212 std::cout <<
"alctFifoPretrig: " << py_alctFifoPretrig << std::endl;
213 if (ok_alctDriftDelay)
214 std::cout <<
"alctDriftDelay: " << py_alctDriftDelay << std::endl;
215 if (ok_alctNplanesHitPretrig)
216 std::cout <<
"alctNplanesHitPretrig: " << py_alctNplanesHitPretrig << std::endl;
217 if (ok_alctNplanesHitPattern)
218 std::cout <<
"alctNplanesHitPattern: " << py_alctNplanesHitPattern << std::endl;
219 if (ok_alctNplanesHitAccelPretrig)
220 std::cout <<
"alctNplanesHitAccelPretrig: " << py_alctNplanesHitAccelPretrig << std::endl;
221 if (ok_alctNplanesHitAccelPattern)
222 std::cout <<
"alctNplanesHitAccelPattern: " << py_alctNplanesHitAccelPattern << std::endl;
224 std::cout <<
"alctTrigMode: " << py_alctTrigMode << std::endl;
225 if (ok_alctAccelMode)
226 std::cout <<
"alctAccelMode: " << py_alctAccelMode << std::endl;
227 if (ok_alctL1aWindowWidth)
228 std::cout <<
"alctL1aWindowWidth: " << py_alctL1aWindowWidth << std::endl;
231 if (ok_clctFifoTbins)
232 std::cout <<
"clctFifoTbins: " << py_clctFifoTbins << std::endl;
233 if (ok_clctFifoPretrig)
234 std::cout <<
"clctFifoPretrig: " << py_clctFifoPretrig << std::endl;
235 if (ok_clctHitPersist)
236 std::cout <<
"clctHitPersist: " << py_clctHitPersist << std::endl;
237 if (ok_clctDriftDelay)
238 std::cout <<
"clctDriftDelay: " << py_clctDriftDelay << std::endl;
239 if (ok_clctNplanesHitPretrig)
240 std::cout <<
"clctNplanesHitPretrig: " << py_clctNplanesHitPretrig << std::endl;
241 if (ok_clctNplanesHitPattern)
242 std::cout <<
"clctNplanesHitPattern: " << py_clctNplanesHitPattern << std::endl;
243 if (ok_clctPidThreshPretrig)
244 std::cout <<
"clctPidThreshPretrig: " << py_clctPidThreshPretrig << std::endl;
245 if (ok_clctMinSeparation)
246 std::cout <<
"clctMinSeparation: " << py_clctMinSeparation << std::endl;
249 if (ok_tmbMpcBlockMe1a)
250 std::cout <<
"tmbMpcBlockMe1a: " << py_tmbMpcBlockMe1a << std::endl;
251 if (ok_tmbAlctTrigEnable)
252 std::cout <<
"tmbAlctTrigEnable: " << py_tmbAlctTrigEnable << std::endl;
253 if (ok_tmbClctTrigEnable)
254 std::cout <<
"tmbClctTrigEnable: " << py_tmbClctTrigEnable << std::endl;
255 if (ok_tmbMatchTrigEnable)
256 std::cout <<
"tmbMatchTrigEnable: " << py_tmbMatchTrigEnable << std::endl;
257 if (ok_tmbMatchTrigWindowSize)
258 std::cout <<
"tmbMatchTrigWindowSize: " << py_tmbMatchTrigWindowSize << std::endl;
259 if (ok_tmbL1aWindowSize)
260 std::cout <<
"tmbL1aWindowSize: " << py_tmbL1aWindowSize << std::endl;