183 std::string chanCalibFolderKey;
184 std::string chanCalibCommonFolderKey;
185 std::string chanCalibStrategyFolderKey;
186 std::string chanDefaultsFolderKey;
189 auto it_pprChanCalibAttrListCollection = condAttrListCollectionMap.end();
191 auto it_pprChanCalibStrategyAttrListCollection = condAttrListCollectionMap.end();
195 if (condAttrListCollectionMap.empty())
return;
198 for (
const auto& [
name, coll] : condAttrListCollectionMap) {
199 if (
name.find(
"PprChanDefaults")!=std::string::npos){
200 chanDefaultsFolderKey=
name;}
201 if(
name.find(
"PprChanCalib")!=std::string::npos){
202 chanCalibFolderKey=
name;
204 if(
name.find(
"PprChanCommon")!=std::string::npos){
205 chanCalibCommonFolderKey=
name;
207 if(
name.find(
"Mu")!=std::string::npos){
208 chanCalibStrategyFolderKey=
name;
214 bool isUseStrategy =
false;
215 if (!chanCalibFolderKey.empty()) {
216 it_pprChanCalibAttrListCollection =
217 condAttrListCollectionMap.find(chanCalibFolderKey);
220 isUseStrategy =
true;
221 it_pprChanCalibAttrListCollection = condAttrListCollectionMap.find(chanCalibCommonFolderKey);
222 it_pprChanCalibStrategyAttrListCollection = condAttrListCollectionMap.find(chanCalibStrategyFolderKey);
231 if (it_pprChanCalibStrategyAttrListCollection ==
232 condAttrListCollectionMap.end()) {
233 std::cout <<
"L1CaloPprConditionsContainerRun2 : Could not find "
234 "requested CondAttrListCollection"
235 << chanCalibStrategyFolderKey << std::endl;
240 if (it_pprChanCalibAttrListCollection == condAttrListCollectionMap.end()) {
241 std::cout <<
"L1CaloPprConditionsContainerRun2 : Could not find "
242 "requested CondAttrListCollection "
243 << chanCalibCommonFolderKey << std::endl;
247 if (it_pprChanCalibAttrListCollection == condAttrListCollectionMap.end()) {
248 std::cout <<
"L1CaloPprConditionsContainerRun2 : Could not find "
249 "requested CondAttrListCollection"
250 << chanCalibCommonFolderKey << std::endl;
256 it_pprChanCalibAttrListCollection->second;
259 auto it_pprChanDefaultsAttrListCollection =
260 condAttrListCollectionMap.find(chanDefaultsFolderKey);
261 if (it_pprChanDefaultsAttrListCollection == condAttrListCollectionMap.end()) {
262 std::cout <<
"L1CaloPprConditionsContainerRun2 : Could not find requested "
263 "CondAttrListCollection" << chanDefaultsFolderKey
269 it_pprChanDefaultsAttrListCollection->second;
272 const coral::AttributeList& chanDefaultAttrList = std::cbegin(*chanDefaultsAttrListCollection)->second;
275 chanDefaultAttrList[this->specificationName(
eBcidDecision1)].data<
int>();
292 auto it_AttrListColl = chanCalibAttrListCollection->
begin();
293 auto it_AttrListCollE = chanCalibAttrListCollection->
end();
295 for (; it_AttrListColl != it_AttrListCollE; ++it_AttrListColl) {
298 unsigned int index = (coolId.crate() << 10) + (coolId.module() << 6) +
299 (coolId.subModule() << 2) + coolId.channel();
307 unsigned short extBcidThreshold =
309 .data<
unsigned short>();
310 unsigned short satBcidThreshLow =
312 .data<
unsigned short>();
313 unsigned short satBcidThreshHigh =
315 .data<
unsigned short>();
316 unsigned short satBcidLevel =
318 .data<
unsigned short>();
320 unsigned short bcidEnergyRangeLow =
322 .data<
unsigned short>();
323 unsigned short bcidEnergyRangeHigh =
325 .data<
unsigned short>();
326 unsigned short lutCpStrategy =
328 .data<
unsigned short>();
338 unsigned short lutJepStrategy =
340 .data<
unsigned short>();
342 unsigned short lutCpScale =
344 .data<
unsigned short>();
345 unsigned short lutJepScale =
347 .data<
unsigned short>();
356 unsigned int pedValue =
358 .data<
unsigned int>();
363 unsigned short lutJepOffset =
367 .data<
unsigned short>();
368 unsigned short lutCpOffset =
371 .data<
unsigned short>();
372 unsigned int pedFirSum =
375 .data<
unsigned int>();
377 unsigned short firStartBit =
380 .data<
unsigned short>();
381 short int firCoeff1 =
385 short int firCoeff2 =
389 short int firCoeff3 =
393 short int firCoeff4 =
397 short int firCoeff5 =
402 unsigned short lutCpSlope =
405 .data<
unsigned short>();
406 unsigned short lutCpNoiseCut =
410 .data<
unsigned short>();
411 unsigned short lutJepSlope =
414 .data<
unsigned short>();
415 unsigned short lutJepNoiseCut =
419 .data<
unsigned short>();
422 extBcidThreshold, satBcidThreshLow, satBcidThreshHigh, satBcidLevel,
423 bcidEnergyRangeLow, bcidEnergyRangeHigh, firStartBit, firCoeff1,
424 firCoeff2, firCoeff3, firCoeff4, firCoeff5, lutCpStrategy, lutCpOffset,
425 lutCpSlope, lutCpNoiseCut, lutCpPar1, lutCpPar2, lutCpPar3, lutCpPar4,
426 lutCpScale, lutJepStrategy, lutJepOffset, lutJepSlope, lutJepNoiseCut,
427 lutJepPar1, lutJepPar2, lutJepPar3, lutJepPar4, lutJepScale, pedValue,
434 it_pprChanCalibStrategyAttrListCollection->second;
435 auto it_AttrListColl = chanCalibAttrListCollection->
begin();
436 auto it_AttrListCollE = chanCalibAttrListCollection->
end();
438 for (; it_AttrListColl != it_AttrListCollE; ++it_AttrListColl) {
440 unsigned int index = (coolId.crate() << 10) + (coolId.module() << 6) +
441 (coolId.subModule() << 2) + coolId.channel();
450 std::cout <<
"L1CaloPprConditionsContainerRun2 : Could not find channel "
451 <<
" with index " <<
index << std::endl;
455 unsigned short firStartBit =
457 .data<
unsigned short>();
458 short int firCoeff1 =
460 short int firCoeff2 =
462 short int firCoeff3 =
464 short int firCoeff4 =
466 short int firCoeff5 =
469 unsigned short lutCpSlope =
471 .data<
unsigned short>();
472 unsigned short lutCpNoiseCut =
474 .data<
unsigned short>();
475 unsigned short lutJepSlope =
477 .data<
unsigned short>();
478 unsigned short lutJepNoiseCut =
480 .data<
unsigned short>();
482 firStartBit, firCoeff1, firCoeff2, firCoeff3, firCoeff4, firCoeff5,
483 lutCpSlope, lutCpNoiseCut, lutJepSlope, lutJepNoiseCut);