55 m_l1GtDataDaqInputTag(paramSet.getParameter<edm::InputTag>(
56 "L1GtDataDaqInputTag")),
58 m_l1GtDataEvmInputTag(paramSet.getParameter<edm::InputTag>(
59 "L1GtDataEvmInputTag")),
61 m_l1GtEmulDaqInputTag(paramSet.getParameter<edm::InputTag>(
62 "L1GtEmulDaqInputTag")),
64 m_l1GtEmulEvmInputTag(paramSet.getParameter<edm::InputTag>(
65 "L1GtEmulEvmInputTag")),
67 m_l1GctDataInputTag(paramSet.getParameter<edm::InputTag>(
68 "L1GctDataInputTag")),
70 m_dirName(paramSet.getUntrackedParameter(
"DirName", std::
string(
73 m_excludeCondCategTypeObject(paramSet.getParameter<std::vector<edm::
ParameterSet> >(
74 "ExcludeCondCategTypeObject")),
76 m_excludeAlgoTrigByName(paramSet.getParameter<std::vector<std::
string> >(
77 "ExcludeAlgoTrigByName")),
79 m_excludeAlgoTrigByBit(paramSet.getParameter<std::vector<int> >(
80 "ExcludeAlgoTrigByBit")),
83 m_nrDataEventError(0),
84 m_nrEmulEventError(0),
86 m_l1GtMenuCacheID(0ULL), m_l1GtPfAlgoCacheID(0ULL),
87 m_l1GtPfTechCacheID(0ULL), m_l1GtTmAlgoCacheID(0ULL),
88 m_l1GtTmTechCacheID(0ULL),
94 m_dataOnlyMask(
false),
95 m_emulOnlyMask(
false),
97 m_nrEvJob(0), m_nrEvRun(0) {
100 for (std::vector<edm::ParameterSet>::const_iterator
105 if (!(itExclud->getParameter<
std::string> (
"ExcludedCondCategory")).empty()) {
108 itExclud->getParameter<
std::string>(
"ExcludedCondCategory")));
114 if (!(itExclud->getParameter<
std::string>(
"ExcludedCondType")).empty() ) {
117 itExclud->getParameter<
std::string> (
"ExcludedCondType")));
123 if (!(itExclud->getParameter<
std::string>(
"ExcludedL1GtObject")).empty() ) {
126 itExclud->getParameter<
std::string> (
"ExcludedL1GtObject")));
135 <<
"\nInput tag for the L1 GT DAQ hardware record: "
137 <<
"\nInput tag for the L1 GT EVM hardware record: "
139 <<
"\nInput tag for the L1 GT DAQ emulator records: "
141 <<
"\nInput tag for the L1 GT EVM emulator records: "
143 <<
"\nInput tag for the L1 GCT hardware record: "
151 <<
"\n Unable to get DQMStore service.";
201 unsigned long long l1GtMenuCacheID =
223 LogDebug(
"L1GtHwValidation") <<
"\nUsing L1 menu: \n "
229 for (
CItAlgo itAlgo = algorithmMap.begin(); itAlgo != algorithmMap.end(); itAlgo++) {
231 const int algBitNumber = (itAlgo->second).algoBitNumber();
233 std::stringstream
ss;
235 ss << std::uppercase << algBitNumber;
238 const std::string& aName = algBitString +
" " + itAlgo->first;
239 const char* algName = aName.c_str();
242 for (
int iBxInEvent = 0; iBxInEvent <
TotalBxInEvent; ++iBxInEvent) {
246 int iIndex = iBxInEvent - ((TotalBxInEvent + 1) / 2 - 1);
247 int hIndex = (iIndex + 16) % 16;
249 std::stringstream
ss;
251 ss << std::uppercase << std::hex << hIndex;
267 algBitNumber + 1, algName, 1);
269 algBitNumber + 1, algName, 1);
271 algBitNumber + 1, algName, 1);
273 algBitNumber + 1, algName, 1);
275 algBitNumber + 1, algName, 1);
278 algBitNumber + 1, algName, 1);
280 algBitNumber + 1, algName, 1);
282 algBitNumber + 1, algName, 1);
284 algBitNumber + 1, algName, 1);
286 algBitNumber + 1, algName, 1);
289 algBitNumber + 1, algName, 1);
291 algBitNumber + 1, algName, 1);
293 algBitNumber + 1, algName, 1);
295 algBitNumber + 1, algName, 1);
297 algBitNumber + 1, algName, 1);
327 if (algBitNumber == *itAlgo) {
339 unsigned long long l1GtPfAlgoCacheID = evSetup.
get<
354 unsigned long long l1GtPfTechCacheID = evSetup.
get<
372 unsigned long long l1GtTmAlgoCacheID = evSetup.
get<
387 unsigned long long l1GtTmTechCacheID = evSetup.
get<
407 const L1GtfeWord& gtfeBlockEmul,
const int iRec) {
422 if (gtfeBlockData == gtfeBlockEmul) {
424 <<
" Data and emulated GTFE blocks: identical.\n";
428 <<
" Data and emulated GTFE blocks: different.\n";
444 const boost::uint16_t boardIdData = gtfeBlockData.
boardId();
445 const boost::uint16_t boardIdEmul = gtfeBlockEmul.
boardId();
447 if (boardIdData == boardIdEmul) {
449 <<
" Data and emulated GTFE boardId identical.";
450 m_myCoutStream <<
"\n boardId() = " << std::hex <<
"0x" << std::setw(4)
451 << std::setfill(
'0') << boardIdData << std::setfill(
' ')
457 <<
" Data and emulated GTFE boardId different.";
459 << std::setw(4) << std::setfill(
'0') << boardIdData
460 << std::setfill(
' ') << std::dec;
462 << std::setw(4) << std::setfill(
'0') << boardIdEmul
463 << std::setfill(
' ') << std::dec;
470 const boost::uint16_t recordLength1Data = gtfeBlockData.
recordLength1();
471 const boost::uint16_t recordLength1Emul = gtfeBlockEmul.
recordLength1();
473 if (recordLength1Data == recordLength1Emul) {
475 <<
" Data and emulated GTFE recordLength for alternative 1 identical.";
481 <<
" Data and emulated GTFE recordLength for alternative 1 different.";
482 m_myCoutStream <<
"\n Data: recordLength1() = " << recordLength1Data;
483 m_myCoutStream <<
"\n Emul: recordLength1() = " << recordLength1Emul;
490 const boost::uint16_t recordLengthData = gtfeBlockData.
recordLength();
491 const boost::uint16_t recordLengthEmul = gtfeBlockEmul.
recordLength();
493 if (recordLengthData == recordLengthEmul) {
495 <<
" Data and emulated GTFE recordLength for alternative 0 identical.";
501 <<
" Data and emulated GTFE recordLength for alternative 1 different.";
502 m_myCoutStream <<
"\n Data: recordLength() = " << recordLengthData;
503 m_myCoutStream <<
"\n Emul: recordLength() = " << recordLengthEmul;
510 const boost::uint16_t bxNrData = gtfeBlockData.
bxNr();
511 const boost::uint16_t bxNrEmul = gtfeBlockEmul.
bxNr();
513 if (bxNrData == bxNrEmul) {
515 <<
" Data and emulated GTFE bxNr identical.";
521 <<
" Data and emulated GTFE bxNr different.";
530 const boost::uint32_t setupVersionData = gtfeBlockData.
setupVersion();
531 const boost::uint32_t setupVersionEmul = gtfeBlockEmul.
setupVersion();
533 if (setupVersionData == setupVersionEmul) {
535 <<
" Data and emulated GTFE setupVersion identical.";
541 <<
" Data and emulated GTFE setupVersion different.";
542 m_myCoutStream <<
"\n Data: setupVersion() = " << setupVersionData;
543 m_myCoutStream <<
"\n Emul: setupVersion() = " << setupVersionEmul;
550 const boost::uint16_t activeBoardsData = gtfeBlockData.
activeBoards();
551 const boost::uint16_t activeBoardsEmul = gtfeBlockEmul.
activeBoards();
553 if (activeBoardsData == activeBoardsEmul) {
555 <<
" Data and emulated GTFE activeBoards identical.";
557 << std::setw(4) << std::setfill(
'0') << activeBoardsData
558 << std::setfill(
' ') << std::dec;
563 <<
" Data and emulated GTFE activeBoards different.";
564 m_myCoutStream <<
"\n Data: activeBoards() = " << std::hex <<
"0x"
565 << std::setw(4) << std::setfill(
'0') << activeBoardsData
566 << std::setfill(
' ') << std::dec;
567 m_myCoutStream <<
"\n Emul: activeBoards() = " << std::hex <<
"0x"
568 << std::setw(4) << std::setfill(
'0') << activeBoardsEmul
569 << std::setfill(
' ') << std::dec;
578 const boost::uint16_t altNrBxBoardData = gtfeBlockData.
altNrBxBoard();
579 const boost::uint16_t altNrBxBoardEmul = gtfeBlockEmul.
altNrBxBoard();
581 if (altNrBxBoardData == altNrBxBoardEmul) {
583 <<
" Data and emulated GTFE altNrBxBoard identical.";
589 <<
" Data and emulated GTFE altNrBxBoard different.";
590 m_myCoutStream <<
"\n Data: altNrBxBoard() = " << altNrBxBoardData;
591 m_myCoutStream <<
"\n Emul: altNrBxBoard() = " << altNrBxBoardEmul;
598 const boost::uint32_t totalTriggerNrData = gtfeBlockData.
totalTriggerNr();
599 const boost::uint32_t totalTriggerNrEmul = gtfeBlockEmul.
totalTriggerNr();
601 if (totalTriggerNrData == totalTriggerNrEmul) {
603 <<
" Data and emulated GTFE totalTriggerNr identical.";
609 <<
" Data and emulated GTFE totalTriggerNr different.";
610 m_myCoutStream <<
"\n Data: totalTriggerNr() = " << totalTriggerNrData;
611 m_myCoutStream <<
"\n Emul: totalTriggerNr() = " << totalTriggerNrEmul;
629 int PhysicsPartition = 0;
645 if (fdlBlockData == fdlBlockEmul) {
647 <<
" Data and emulated FDL blocks: identical.\n";
652 <<
" Data and emulated FDL blocks: different.\n";
669 const int bxInEventData = fdlBlockData.
bxInEvent();
670 const int bxInEventEmul = fdlBlockEmul.
bxInEvent();
672 bool matchBxInEvent =
false;
674 if (bxInEventData == bxInEventEmul) {
676 <<
" Data and emulated FDL bxInEvent identical.";
679 matchBxInEvent =
true;
683 <<
" Data and emulated FDL bxInEvent different.";
694 <<
"\n Data and emulated FDL bxInEvent different \n";
704 bool validBxInEvent =
false;
706 LogDebug(
"L1GtHwValidation") <<
"\n Convert bxInEvent = " << bxInEventData
707 <<
" to histIndex = " << histIndex << std::endl;
709 validBxInEvent =
true;
715 const boost::uint16_t boardIdData = fdlBlockData.
boardId();
716 const boost::uint16_t boardIdEmul = fdlBlockEmul.
boardId();
718 if (boardIdData == boardIdEmul) {
720 <<
" Data and emulated FDL boardId identical.";
721 m_myCoutStream <<
"\n boardId() = " << std::hex <<
"0x" << std::setw(4)
722 << std::setfill(
'0') << boardIdData << std::setfill(
' ')
728 <<
" Data and emulated FDL boardId different.";
730 << std::setw(4) << std::setfill(
'0') << boardIdData
731 << std::setfill(
' ') << std::dec;
733 << std::setw(4) << std::setfill(
'0') << boardIdEmul
734 << std::setfill(
' ') << std::dec;
737 if (matchBxInEvent && validBxInEvent) {
750 const boost::uint16_t bxNrData = fdlBlockData.
bxNr();
751 const boost::uint16_t bxNrEmul = fdlBlockEmul.
bxNr();
753 if (bxNrData == bxNrEmul) {
755 <<
" Data and emulated FDL bxNr identical.";
761 <<
" Data and emulated FDL bxNr different.";
766 if (matchBxInEvent && validBxInEvent) {
778 const boost::uint32_t eventNrData = fdlBlockData.
eventNr();
779 const boost::uint32_t eventNrEmul = fdlBlockEmul.
eventNr();
781 if (eventNrData == eventNrEmul) {
783 <<
" Data and emulated FDL eventNr identical.";
789 <<
" Data and emulated FDL eventNr different.";
794 if (matchBxInEvent && validBxInEvent) {
812 int nTechBits = gtTechnicalTriggerWordData.size();
817 unsigned int bitValue = 0;
819 if (matchBxInEvent && validBxInEvent) {
820 for (
int iBit = 0; iBit < nTechBits; ++iBit) {
823 << PhysicsPartition);
825 if (gtTechnicalTriggerWordData[iBit]) {
828 bitValue = (triggerMask) ? 0 : 1;
829 gtTechnicalTriggerWordDataMask[iBit] = bitValue;
835 if (gtTechnicalTriggerWordEmul.at(iBit)) {
838 bitValue = (triggerMask) ? 0 : 1;
839 gtTechnicalTriggerWordEmulMask[iBit] = bitValue;
846 for (
int iBit = 0; iBit < nTechBits; ++iBit) {
848 if (gtTechnicalTriggerWordData[iBit]) {
852 if (gtTechnicalTriggerWordEmul.at(iBit)) {
858 if (gtTechnicalTriggerWordData == gtTechnicalTriggerWordEmul) {
860 <<
" Data and emulated FDL gtTechnicalTriggerWord identical.\n";
866 <<
" Data and emulated FDL gtTechnicalTriggerWord different.";
873 if (matchBxInEvent && validBxInEvent) {
879 if (matchBxInEvent && validBxInEvent) {
880 for (
int iBit = 0; iBit < nTechBits; ++iBit) {
881 if (gtTechnicalTriggerWordData[iBit]
882 != gtTechnicalTriggerWordEmul.at(iBit)) {
887 for (
int iBit = 0; iBit < nTechBits; ++iBit) {
888 if (gtTechnicalTriggerWordData[iBit]
889 != gtTechnicalTriggerWordEmul.at(iBit)) {
900 if (gtTechnicalTriggerWordDataMask == gtTechnicalTriggerWordEmulMask) {
902 <<
" Data and emulated FDL gtTechnicalTriggerWord after mask identical.\n";
907 <<
" Data and emulated FDL gtTechnicalTriggerWord after mask different.";
912 if (matchBxInEvent && validBxInEvent) {
918 if (matchBxInEvent && validBxInEvent) {
919 for (
int iBit = 0; iBit < nTechBits; ++iBit) {
920 if (gtTechnicalTriggerWordData[iBit]
921 != gtTechnicalTriggerWordEmul.at(iBit)) {
936 int nAlgoBits = gtDecisionWordData.size();
946 size_t pfSetsSize = (*m_prescaleFactorsAlgoTrig).size();
951 <<
"\nError: index of prescale factor set retrieved from the data \n"
953 <<
"\n Value of index retrieved from data = " << iPfSet
960 }
else if (iPfSet >= (static_cast<int>(pfSetsSize))) {
963 <<
"\nError: index of prescale factor set retrieved from the data \n"
964 <<
"greater than the size of the vector of prescale factor sets."
965 <<
"\n Value of index retrieved from data = " << iPfSet
966 <<
"\n Vector size = " << pfSetsSize << std::endl;
974 const std::vector<int>& prescaleFactorsAlgoTrig =
975 (*m_prescaleFactorsAlgoTrig).at(iPfSet);
978 if (matchBxInEvent && validBxInEvent) {
980 for (
int iBit = 0; iBit < nAlgoBits; ++iBit) {
983 << PhysicsPartition);
987 LogTrace(
"L1GtHwValidation") <<
"Bit " << iBit
988 <<
": prescale factor = " << prescaleFactor
989 <<
" trigger mask = " << triggerMask << std::endl;
991 if (gtDecisionWordData[iBit]) {
994 if (prescaleFactor == 1) {
1001 bitValue = (triggerMask) ? 0 : 1;
1002 gtDecisionWordDataMask[iBit] = bitValue;
1008 if (gtDecisionWordEmul.at(iBit)) {
1011 bitValue = (triggerMask) ? 0 : 1;
1012 gtDecisionWordEmulMask[iBit] = bitValue;
1019 for (
int iBit = 0; iBit < nAlgoBits; ++iBit) {
1020 if (gtDecisionWordData[iBit]) {
1025 for (
int iBit = 0; iBit < nAlgoBits; ++iBit) {
1026 if (gtDecisionWordEmul.at(iBit)) {
1035 <<
"\n matchBxInEvent && validBxInEvent false \n";
1040 if (gtDecisionWordData == gtDecisionWordEmul) {
1042 <<
" Data and emulated FDL gtDecisionWord identical.";
1048 <<
" Data and emulated FDL gtDecisionWord different.";
1055 if (matchBxInEvent && validBxInEvent) {
1061 if (matchBxInEvent && validBxInEvent) {
1062 for (
int iBit = 0; iBit < nAlgoBits; ++iBit) {
1066 if (gtDecisionWordData[iBit] != gtDecisionWordEmul.at(iBit)) {
1071 if (
excludedAlgo(iBit) && (bxInEventData == 0) && (iRec
1076 if (prescaleFactor == 1) {
1091 if (gtDecisionWordData[iBit]) {
1095 if (prescaleFactor == 1) {
1107 <<
"\nDisagreement data versus emulator: "
1108 <<
"result before mask for algorithm with bit number "
1110 <<
"\n Data: true, emulator: false \n";
1122 if (prescaleFactor == 1) {
1134 <<
"\nDisagreement data versus emulator: "
1135 <<
"result before mask for algorithm with bit number "
1137 <<
"\n Data: false, emulator: true \n";
1148 for (
int iBit = 0; iBit < nAlgoBits; ++iBit) {
1149 if (gtDecisionWordData[iBit] != gtDecisionWordEmul.at(iBit)) {
1158 <<
"\n matchBxInEvent && validBxInEvent false \n";
1164 if (gtDecisionWordDataMask == gtDecisionWordEmulMask) {
1166 <<
" Data and emulated FDL gtDecisionWord after mask identical.";
1171 <<
" Data and emulated FDL gtDecisionWord after mask different.";
1176 if (matchBxInEvent && validBxInEvent) {
1182 if (matchBxInEvent && validBxInEvent) {
1183 for (
int iBit = 0; iBit < nAlgoBits; ++iBit) {
1184 if (gtDecisionWordDataMask[iBit] != gtDecisionWordEmulMask.at(
1191 if (gtDecisionWordDataMask[iBit]) {
1195 if (prescaleFactor == 1) {
1207 <<
"\nDisagreement data versus emulator: "
1208 <<
"result after mask for algorithm with bit number "
1210 <<
" different in data versus emulator "
1211 <<
"\n Data: true, emulator: false \n";
1223 if (prescaleFactor == 1) {
1235 <<
"\nDisagreement data versus emulator: "
1236 <<
"result after mask for algorithm with bit number "
1238 <<
" different in data versus emulator "
1239 <<
"\n Data: false, emulator: true \n";
1261 if (gtDecisionWordExtendedData == gtDecisionWordExtendedEmul) {
1263 <<
" Data and emulated FDL gtDecisionWordExtended identical.\n";
1269 <<
" Data and emulated FDL gtDecisionWordExtended different.\n";
1276 if (matchBxInEvent && validBxInEvent) {
1285 const boost::uint16_t noAlgoData = fdlBlockData.
noAlgo();
1286 const boost::uint16_t noAlgoEmul = fdlBlockEmul.
noAlgo();
1288 if (noAlgoData == noAlgoEmul) {
1290 <<
" Data and emulated FDL noAlgo identical.";
1296 <<
" Data and emulated FDL noAlgo different.";
1301 if (matchBxInEvent && validBxInEvent) {
1310 const boost::uint16_t finalORData = fdlBlockData.
finalOR();
1311 const boost::uint16_t finalOREmul = fdlBlockEmul.
finalOR();
1313 if (finalORData == finalOREmul) {
1315 <<
" Data and emulated FDL finalOR identical.";
1316 m_myCoutStream <<
"\n finalOR() = " << std::hex <<
"0x" << std::setw(2)
1317 << std::setfill(
'0') << finalORData << std::setfill(
' ')
1323 <<
" Data and emulated FDL finalOR different.";
1325 << std::setw(2) << std::setfill(
'0') << finalORData
1326 << std::setfill(
' ') << std::dec;
1328 << std::setw(2) << std::setfill(
'0') << finalOREmul
1329 << std::setfill(
' ') << std::dec;
1332 if (matchBxInEvent && validBxInEvent) {
1341 const int finalORPhysData = finalORData & (1 << PhysicsPartition);
1342 const int finalORPhysEmul = finalOREmul & (1 << PhysicsPartition);
1344 if (finalORPhysData == finalORPhysEmul) {
1346 <<
" Data and emulated FDL finalOR for the physics partition identical.";
1352 <<
" Data and emulated FDL finalOR for the physics partition different.";
1357 if (matchBxInEvent && validBxInEvent) {
1366 const boost::uint16_t localBxNrData = fdlBlockData.
localBxNr();
1367 const boost::uint16_t localBxNrEmul = fdlBlockEmul.
localBxNr();
1369 if (localBxNrData == localBxNrEmul) {
1371 <<
" Data and emulated FDL localBxNr identical.";
1377 <<
" Data and emulated FDL localBxNr different.";
1382 if (matchBxInEvent && validBxInEvent) {
1401 if (psbBlockData == psbBlockEmul) {
1402 m_myCoutStream <<
"\nData and emulated PSB blocks: identical.\n";
1406 m_myCoutStream <<
"\nData and emulated PSB blocks: different.\n";
1422 const boost::uint16_t boardIdData = psbBlockData.
boardId();
1423 const boost::uint16_t boardIdEmul = psbBlockEmul.
boardId();
1425 if (boardIdData == boardIdEmul) {
1427 m_myCoutStream <<
"\n boardId() = " << std::hex <<
"0x" << std::setw(4)
1428 << std::setfill(
'0') << boardIdData << std::setfill(
' ')
1435 << std::setw(4) << std::setfill(
'0') << boardIdData
1436 << std::setfill(
' ') << std::dec;
1438 << std::setw(4) << std::setfill(
'0') << boardIdEmul
1439 << std::setfill(
' ') << std::dec;
1445 const int bxInEventData = psbBlockData.
bxInEvent();
1446 const int bxInEventEmul = psbBlockEmul.
bxInEvent();
1448 if (bxInEventData == bxInEventEmul) {
1449 m_myCoutStream <<
"\nData and emulated PSB bxInEvent identical.";
1454 m_myCoutStream <<
"\nData and emulated PSB bxInEvent different.";
1462 const boost::uint16_t bxNrData = psbBlockData.
bxNr();
1463 const boost::uint16_t bxNrEmul = psbBlockEmul.
bxNr();
1465 if (bxNrData == bxNrEmul) {
1479 const boost::uint32_t eventNrData = psbBlockData.
eventNr();
1480 const boost::uint32_t eventNrEmul = psbBlockEmul.
eventNr();
1482 if (eventNrData == eventNrEmul) {
1496 boost::uint16_t valData;
1497 boost::uint16_t valEmul;
1499 for (
int iA = 0; iA < psbBlockData.
NumberAData; ++iA) {
1500 valData = psbBlockData.
aData(iA);
1501 valEmul = psbBlockEmul.
aData(iA);
1503 if (valData == valEmul) {
1507 << std::setw(4) << std::setfill(
'0') << valData
1508 << std::setfill(
' ') << std::dec;
1515 << std::setw(4) << std::setfill(
'0') << valData
1516 << std::setfill(
' ') << std::dec;
1518 << std::setw(4) << std::setfill(
'0') << valEmul
1519 << std::setfill(
' ') << std::dec;
1527 for (
int iB = 0; iB < psbBlockData.
NumberBData; ++iB) {
1528 valData = psbBlockData.
bData(iB);
1529 valEmul = psbBlockEmul.
bData(iB);
1531 if (valData == valEmul) {
1535 << std::setw(4) << std::setfill(
'0') << valData
1536 << std::setfill(
' ') << std::dec;
1543 << std::setw(4) << std::setfill(
'0') << valData
1544 << std::setfill(
' ') << std::dec;
1546 << std::setw(4) << std::setfill(
'0') << valEmul
1547 << std::setfill(
' ') << std::dec;
1555 const boost::uint16_t localBxNrData = psbBlockData.
localBxNr();
1556 const boost::uint16_t localBxNrEmul = psbBlockEmul.
localBxNr();
1558 if (localBxNrData == localBxNrEmul) {
1559 m_myCoutStream <<
"\nData and emulated PSB localBxNr identical.";
1564 m_myCoutStream <<
"\nData and emulated PSB localBxNr different.";
1602 bool validData =
false;
1604 if (!gtReadoutRecordData.
isValid()) {
1614 bool validEmul =
false;
1616 if (!gtReadoutRecordEmul.
isValid()) {
1622 if ((!validData) || (!validEmul)) {
1624 <<
"\n No valid product found: DAQ L1GlobalTriggerReadoutRecord"
1625 <<
"\n Data validity [1 = true; 0 = false]: " << validData
1626 <<
"\n Emulator validity: [1 = true; 0 = false]: "
1627 << validEmul <<
"\n DAQ histograms will not be filled.\n"
1634 const L1GtfeWord& gtfeBlockData = gtReadoutRecordData->gtfeWord();
1635 const L1GtfeWord& gtfeBlockEmul = gtReadoutRecordEmul->gtfeWord();
1637 compareGTFE(iEvent, evSetup, gtfeBlockData, gtfeBlockEmul, iRec);
1640 const std::vector<L1GtFdlWord>& gtFdlVectorData =
1641 gtReadoutRecordData->gtFdlVector();
1642 const std::vector<L1GtFdlWord>& gtFdlVectorEmul =
1643 gtReadoutRecordEmul->gtFdlVector();
1645 int gtFdlVectorDataSize = gtFdlVectorData.size();
1646 int gtFdlVectorEmulSize = gtFdlVectorEmul.size();
1648 if (gtFdlVectorDataSize == gtFdlVectorEmulSize) {
1649 m_myCoutStream <<
"\nData and emulated FDL vector size: identical.\n";
1652 for (
int iFdl = 0; iFdl < gtFdlVectorDataSize; ++iFdl) {
1654 const L1GtFdlWord& fdlBlockData = gtFdlVectorData[iFdl];
1655 const L1GtFdlWord& fdlBlockEmul = gtFdlVectorEmul[iFdl];
1657 compareFDL(iEvent, evSetup, fdlBlockData, fdlBlockEmul, iRec);
1660 m_myCoutStream <<
"\nData and emulated FDL vector size: different.\n";
1661 m_myCoutStream <<
" Data: size = " << gtFdlVectorDataSize << std::endl;
1662 m_myCoutStream <<
" Emul: size = " << gtFdlVectorEmulSize << std::endl;
1672 const std::vector<L1GtPsbWord>& gtPsbVectorData =
1673 gtReadoutRecordData->gtPsbVector();
1674 const std::vector<L1GtPsbWord>& gtPsbVectorEmul =
1675 gtReadoutRecordEmul->gtPsbVector();
1677 int gtPsbVectorDataSize = gtPsbVectorData.size();
1678 int gtPsbVectorEmulSize = gtPsbVectorEmul.size();
1680 if (gtPsbVectorDataSize == gtPsbVectorEmulSize) {
1681 m_myCoutStream <<
"\nData and emulated PSB vector size: identical.\n";
1684 m_myCoutStream <<
"\nData and emulated PSB vector size: different.\n";
1685 m_myCoutStream <<
" Data: size = " << gtPsbVectorDataSize << std::endl;
1686 m_myCoutStream <<
" Emul: size = " << gtPsbVectorEmulSize << std::endl;
1693 for (
int iPsb = 0; iPsb < gtPsbVectorDataSize; ++iPsb) {
1695 const L1GtPsbWord& psbBlockData = gtPsbVectorData[iPsb];
1696 const boost::uint16_t boardIdData = psbBlockData.
boardId();
1697 const int bxInEventData = psbBlockData.
bxInEvent();
1702 bool foundPSB =
false;
1704 for (
int iPsbF = 0; iPsbF < gtPsbVectorEmulSize; ++iPsbF) {
1706 const L1GtPsbWord& psbBlockEmul = gtPsbVectorEmul[iPsbF];
1707 const boost::uint16_t boardIdEmul = psbBlockEmul.
boardId();
1708 const int bxInEventEmul = psbBlockEmul.
bxInEvent();
1710 if ((boardIdEmul == boardIdData)
1711 && (bxInEventData == bxInEventEmul)) {
1716 comparePSB(iEvent, evSetup, psbBlockData, psbBlockEmul);
1722 m_myCoutStream <<
"\nNo emulated PSB with boardId() = " << std::hex
1723 <<
"0x" << std::setw(4) << std::setfill(
'0') << boardIdData
1724 << std::setfill(
' ') << std::dec <<
" and BxInEvent = "
1725 << bxInEventData <<
" was found";
1769 bool validData =
false;
1771 if (!gtReadoutRecordData.
isValid()) {
1781 bool validEmul =
false;
1783 if (!gtReadoutRecordEmul.
isValid()) {
1789 if ((!validData) || (!validEmul)) {
1791 <<
"\n No valid product found: EVM L1GlobalTriggerEvmReadoutRecord"
1792 <<
"\n Data validity [1 = true; 0 = false]: " << validData
1793 <<
"\n Emulator validity: [1 = true; 0 = false]: "
1794 << validEmul <<
"\n EVM histograms will not be filled.\n"
1801 const L1GtfeWord& gtfeBlockData = gtReadoutRecordData->gtfeWord();
1802 const L1GtfeWord& gtfeBlockEmul = gtReadoutRecordEmul->gtfeWord();
1804 compareGTFE(iEvent, evSetup, gtfeBlockData, gtfeBlockEmul, iRec);
1807 const std::vector<L1GtFdlWord>& gtFdlVectorData =
1808 gtReadoutRecordData->gtFdlVector();
1809 const std::vector<L1GtFdlWord>& gtFdlVectorEmul =
1810 gtReadoutRecordEmul->gtFdlVector();
1812 int gtFdlVectorDataSize = gtFdlVectorData.size();
1813 int gtFdlVectorEmulSize = gtFdlVectorEmul.size();
1815 if (gtFdlVectorDataSize == gtFdlVectorEmulSize) {
1816 m_myCoutStream <<
"\nData and emulated FDL vector size: identical.\n";
1819 for (
int iFdl = 0; iFdl < gtFdlVectorDataSize; ++iFdl) {
1821 const L1GtFdlWord& fdlBlockData = gtFdlVectorData[iFdl];
1822 const L1GtFdlWord& fdlBlockEmul = gtFdlVectorEmul[iFdl];
1824 compareFDL(iEvent, evSetup, fdlBlockData, fdlBlockEmul, iRec);
1827 m_myCoutStream <<
"\nData and emulated FDL vector size: different.\n";
1828 m_myCoutStream <<
" Data: size = " << gtFdlVectorDataSize << std::endl;
1829 m_myCoutStream <<
" Emul: size = " << gtFdlVectorEmulSize << std::endl;
1879 const unsigned int numberTechTriggers =
1882 const unsigned int numberAlgoTriggers =
1902 const char* histName;
1904 hName = recString +
"gtfeDataEmul";
1905 histName = hName.c_str();
1909 "GTFE data vs emul mismatch", 8, 0., 7.);
1924 int iIndex = iHist - ((TotalBxInEvent + 1) / 2 - 1);
1925 int hIndex = (iIndex + 16) % 16;
1927 std::stringstream
ss;
1929 ss << std::uppercase << std::hex << hIndex;
1943 hName = recString +
"FdlDataEmul_" + str;
1944 histName = hName.c_str();
1946 std::string hTitle =
"FDL data vs emul mismatch for BxInEvent = "
1948 const char* histTitle = hTitle.c_str();
1970 hName = recString +
"Data_AlgoDecision_" + str;
1971 histName = hName.c_str();
1973 hTitle =
"Data: algorithm decision word for BxInEvent = " + str;
1974 histTitle = hTitle.c_str();
1977 histTitle, numberAlgoTriggers, 0., numberAlgoTriggers);
1980 hName = recString +
"Emul_AlgoDecision_" + str;
1981 histName = hName.c_str();
1983 hTitle =
"Emul: algorithm decision word for BxInEvent = " + str;
1984 histTitle = hTitle.c_str();
1987 histTitle, numberAlgoTriggers, 0., numberAlgoTriggers);
1991 hName = recString +
"Data_AlgoDecision_Prescaled_" + str;
1992 histName = hName.c_str();
1995 =
"Data: prescaled algorithms: algorithm decision for BxInEvent = "
1997 histTitle = hTitle.c_str();
2000 histName, histTitle, numberAlgoTriggers, 0.,
2001 numberAlgoTriggers);
2004 hName = recString +
"Emul_AlgoDecision_Prescaled_" + str;
2005 histName = hName.c_str();
2008 =
"Emul: prescaled algorithms: algorithm decision for BxInEvent = "
2010 histTitle = hTitle.c_str();
2013 histName, histTitle, numberAlgoTriggers, 0.,
2014 numberAlgoTriggers);
2018 hName = recString +
"Data_AlgoDecision_Unprescaled_" + str;
2019 histName = hName.c_str();
2022 =
"Data: unprescaled algorithms: algorithm decision for BxInEvent = "
2024 histTitle = hTitle.c_str();
2027 histName, histTitle, numberAlgoTriggers, 0.,
2028 numberAlgoTriggers);
2031 hName = recString +
"Emul_AlgoDecision_Unprescaled_" + str;
2032 histName = hName.c_str();
2035 =
"Emul: unprescaled algorithms: algorithm decision for BxInEvent = "
2037 histTitle = hTitle.c_str();
2040 histName, histTitle, numberAlgoTriggers, 0.,
2041 numberAlgoTriggers);
2045 hName = recString +
"Data_AlgoDecisionAfterMask_" + str;
2046 histName = hName.c_str();
2049 =
"Data, physics partition: algorithm decision word after mask for BxInEvent = "
2051 histTitle = hTitle.c_str();
2054 histTitle, numberAlgoTriggers, 0., numberAlgoTriggers);
2057 hName = recString +
"Emul_AlgoDecisionAfterMask_" + str;
2058 histName = hName.c_str();
2061 =
"Emul, physics partition: algorithm decision word after mask for BxInEvent = "
2063 histTitle = hTitle.c_str();
2066 histTitle, numberAlgoTriggers, 0., numberAlgoTriggers);
2069 hName = recString +
"DataEmul_AlgoDecision_" + str;
2070 histName = hName.c_str();
2073 =
"Data vs emul: non-matching algorithm decision word for BxInEvent = "
2075 histTitle = hTitle.c_str();
2078 histTitle, numberAlgoTriggers, 0., numberAlgoTriggers);
2081 hName = recString +
"DataEmul_AlgoDecision_Prescaled_" + str;
2082 histName = hName.c_str();
2085 =
"Data vs emul: prescaled algorithms with non-matching decision for BxInEvent = "
2087 histTitle = hTitle.c_str();
2090 histName, histTitle, numberAlgoTriggers, 0.,
2091 numberAlgoTriggers);
2094 hName = recString +
"DataEmul_AlgoDecision_Unprescaled_" + str;
2095 histName = hName.c_str();
2098 =
"Data vs emul: unprescaled algorithms with non-matching decision for BxInEvent = "
2100 histTitle = hTitle.c_str();
2103 histName, histTitle, numberAlgoTriggers, 0.,
2104 numberAlgoTriggers);
2107 hName = recString +
"DataEmul_AlgoDecision_Unprescaled_Allowed_" + str;
2108 histName = hName.c_str();
2111 =
"Data vs emul: unprescaled algorithms not excluded with non-matching decision for BxInEvent = "
2113 histTitle = hTitle.c_str();
2116 histName, histTitle, numberAlgoTriggers, 0.,
2117 numberAlgoTriggers);
2120 hName = recString +
"Data_AlgoDecision_NoMatch_" + str;
2121 histName = hName.c_str();
2124 =
"Data: algorithm decision for non-matching cases for BxInEvent = "
2126 histTitle = hTitle.c_str();
2129 histName, histTitle, numberAlgoTriggers, 0.,
2130 numberAlgoTriggers);
2133 hName = recString +
"Emul_AlgoDecision_NoMatch_" + str;
2134 histName = hName.c_str();
2137 =
"Emul: algorithm decision for non-matching cases for BxInEvent = "
2139 histTitle = hTitle.c_str();
2142 histName, histTitle, numberAlgoTriggers, 0.,
2143 numberAlgoTriggers);
2146 hName = recString +
"Data_AlgoDecision_Prescaled_NoMatch_" + str;
2147 histName = hName.c_str();
2150 =
"Data: prescaled algorithms: non-matching algorithm decision for BxInEvent = "
2152 histTitle = hTitle.c_str();
2155 =
m_dbe->
book1D(histName, histTitle, numberAlgoTriggers,
2156 0., numberAlgoTriggers);
2159 hName = recString +
"Emul_AlgoDecision_Prescaled_NoMatch_" + str;
2160 histName = hName.c_str();
2163 =
"Emul: prescaled algorithms: non-matching algorithm decision for BxInEvent = "
2165 histTitle = hTitle.c_str();
2168 =
m_dbe->
book1D(histName, histTitle, numberAlgoTriggers,
2169 0., numberAlgoTriggers);
2173 hName = recString +
"Data_AlgoDecision_Unprescaled_NoMatch_" + str;
2174 histName = hName.c_str();
2177 =
"Data: unprescaled algorithms: non-matching algorithm decision for BxInEvent = "
2179 histTitle = hTitle.c_str();
2182 =
m_dbe->
book1D(histName, histTitle, numberAlgoTriggers,
2183 0., numberAlgoTriggers);
2186 hName = recString +
"Emul_AlgoDecision_Unprescaled_NoMatch_" + str;
2187 histName = hName.c_str();
2190 =
"Emul: unprescaled algorithms: non-matching algorithm decision for BxInEvent = "
2192 histTitle = hTitle.c_str();
2195 =
m_dbe->
book1D(histName, histTitle, numberAlgoTriggers,
2196 0., numberAlgoTriggers);
2201 hName = recString +
"Data_AlgoDecisionMask_NoMatch_" + str;
2202 histName = hName.c_str();
2205 =
"Data: algorithm decision for non-matching cases after mask for BxInEvent = "
2207 histTitle = hTitle.c_str();
2210 histName, histTitle, numberAlgoTriggers, 0.,
2211 numberAlgoTriggers);
2214 hName = recString +
"Emul_AlgoDecisionMask_NoMatch_" + str;
2215 histName = hName.c_str();
2218 =
"Emul: algorithm decision for non-matching cases after mask for BxInEvent = "
2220 histTitle = hTitle.c_str();
2223 histName, histTitle, numberAlgoTriggers, 0.,
2224 numberAlgoTriggers);
2227 hName = recString +
"Data_AlgoDecisionMask_Prescaled_NoMatch_" + str;
2228 histName = hName.c_str();
2231 =
"Data: prescaled algorithms: non-matching algorithm decision after mask for BxInEvent = "
2233 histTitle = hTitle.c_str();
2236 =
m_dbe->
book1D(histName, histTitle, numberAlgoTriggers,
2237 0., numberAlgoTriggers);
2240 hName = recString +
"Emul_AlgoDecision_PrescaledMask_NoMatch_" + str;
2241 histName = hName.c_str();
2244 =
"Emul: prescaled algorithms: non-matching algorithm decision after mask for BxInEvent = "
2246 histTitle = hTitle.c_str();
2249 =
m_dbe->
book1D(histName, histTitle, numberAlgoTriggers,
2250 0., numberAlgoTriggers);
2254 hName = recString +
"Data_AlgoDecision_UnprescaledMask_NoMatch_" + str;
2255 histName = hName.c_str();
2258 =
"Data: unprescaled algorithms: non-matching algorithm decision after mask for BxInEvent = "
2260 histTitle = hTitle.c_str();
2263 =
m_dbe->
book1D(histName, histTitle, numberAlgoTriggers,
2264 0., numberAlgoTriggers);
2267 hName = recString +
"Emul_AlgoDecision_UnprescaledMask_NoMatch_" + str;
2268 histName = hName.c_str();
2271 =
"Emul: unprescaled algorithms: non-matching algorithm decision after mask for BxInEvent = "
2273 histTitle = hTitle.c_str();
2276 =
m_dbe->
book1D(histName, histTitle, numberAlgoTriggers,
2277 0., numberAlgoTriggers);
2282 hName = recString +
"DataEmul_AlgoDecisionAfterMask_" + str;
2283 histName = hName.c_str();
2286 =
"Data vs emul, physics partition: non-matching algorithm decision word after mask for BxInEvent = "
2288 histTitle = hTitle.c_str();
2291 histName, histTitle, numberAlgoTriggers, 0.,
2292 numberAlgoTriggers);
2296 hName = recString +
"Data_TechDecision_" + str;
2297 histName = hName.c_str();
2299 hTitle =
"Data technical trigger decision word for BxInEvent = "
2301 histTitle = hTitle.c_str();
2304 histTitle, numberTechTriggers, 0., numberTechTriggers);
2307 hName = recString +
"Emul_TechDecision_" + str;
2308 histName = hName.c_str();
2310 hTitle =
"Emul: technical trigger decision word for BxInEvent = "
2312 histTitle = hTitle.c_str();
2315 histTitle, numberTechTriggers, 0., numberTechTriggers);
2318 hName = recString +
"Data_TechDecisionAfterMask_" + str;
2319 histName = hName.c_str();
2322 =
"Data technical trigger decision word after mask for BxInEvent = "
2324 histTitle = hTitle.c_str();
2327 histTitle, numberTechTriggers, 0., numberTechTriggers);
2330 hName = recString +
"Emul_TechDecisionAfterMask_" + str;
2331 histName = hName.c_str();
2334 =
"Emul: technical trigger decision word after mask for BxInEvent = "
2336 histTitle = hTitle.c_str();
2339 histTitle, numberTechTriggers, 0., numberTechTriggers);
2342 hName = recString +
"DataEmul_TechDecision_" + str;
2343 histName = hName.c_str();
2346 =
"Data vs emul: non-matching technical trigger decision word for BxInEvent = "
2348 histTitle = hTitle.c_str();
2351 histTitle, numberTechTriggers, 0., numberTechTriggers);
2353 hName = recString +
"DataEmul_TechDecisionAfterMask_" + str;
2354 histName = hName.c_str();
2357 =
"Data vs emul: non-matching technical trigger decision word after mask for BxInEvent = "
2359 histTitle = hTitle.c_str();
2362 histName, histTitle, numberTechTriggers, 0.,
2363 numberTechTriggers);
2378 hName = recString +
"FdlDataEmul_Err";
2379 histName = hName.c_str();
2384 "FDL data vs emul mismatch for non-matching BxInEvent in FDL payload",
2400 hName = recString +
"FdlDataAlgoDecision_Err";
2401 histName = hName.c_str();
2406 "Data: algorithm trigger decision word, non-matching BxInEvent",
2407 numberAlgoTriggers, 0., numberAlgoTriggers);
2410 hName = recString +
"Emul_AlgoDecision_Err";
2411 histName = hName.c_str();
2416 "Emul: algorithm trigger decision word, non-matching BxInEvent",
2417 numberAlgoTriggers, 0., numberAlgoTriggers);
2419 hName = recString +
"DataEmul_AlgoDecision_Err";
2420 histName = hName.c_str();
2425 "Data vs emul: algorithm trigger decision word, non-matching BxInEvent",
2426 numberAlgoTriggers, 0., numberAlgoTriggers);
2429 hName = recString +
"Data_TechDecision_Err";
2430 histName = hName.c_str();
2435 "Data: technical trigger decision word, non-matching BxInEvent",
2436 numberTechTriggers, 0., numberTechTriggers);
2438 hName = recString +
"Emul_TechDecision_Err";
2439 histName = hName.c_str();
2444 "Emul: technical trigger decision word, non-matching BxInEvent",
2445 numberTechTriggers, 0., numberTechTriggers);
2447 hName = recString +
"DataEmul_TechDecision_Err";
2448 histName = hName.c_str();
2453 "Data vs emul: technical trigger decision word, non-matching BxInEvent",
2454 numberTechTriggers, 0., numberTechTriggers);
2464 "ExcludedAlgorithmsFromAgreement",
2465 "Algorithms excluded from data versus emulator agreement flag",
2466 numberAlgoTriggers, 0., numberAlgoTriggers);
2471 "L1 GT error flag for data versus emulator comparison", 5, 0., 5);
2486 bool matchValue =
false;
2488 if (excludedCategory ==
CondNull) {
2491 if (conditionCategory == excludedCategory) {
2503 bool matchValue =
false;
2508 if (conditionType == excludedType) {
2518 const std::vector<L1GtObject>& condObjects,
2521 bool matchValue =
false;
2523 if (excludedObject ==
ObjNull) {
2529 for (std::vector<L1GtObject>::const_iterator itCondObj =
2530 condObjects.begin(); itCondObj != condObjects.end(); ++itCondObj) {
2532 if ((*itCondObj) == excludedObject) {
2551 for (
CItAlgo itAlgo = algorithmMap.begin(); itAlgo != algorithmMap.end(); itAlgo++) {
2554 const int algBitNumber = (itAlgo->second).algoBitNumber();
2555 const int chipNr = (itAlgo->second).algoChipNumber();
2560 const std::vector<L1GtLogicParser::TokenRPN>& aRpnVector =
2561 (itAlgo->second).algoRpnVector();
2562 size_t aRpnVectorSize = aRpnVector.size();
2564 bool algWithExcludedCondition =
false;
2565 bool algWithConditionNotInMap =
false;
2568 for (
size_t opI = 0; opI < aRpnVectorSize; ++opI) {
2570 const std::string& cndName = (aRpnVector[opI]).operand;
2572 if (!cndName.empty()) {
2573 bool foundCond =
false;
2575 CItCond itCond = conditionMap.find(cndName);
2576 if (itCond != conditionMap.end()) {
2580 const std::vector<L1GtObject>& objType = (itCond->second)->objectType();
2585 for (std::vector<L1GtConditionCategory>::const_iterator
2597 <<
"Algorithm: " << algName
2598 <<
" Condition: " << cndName
2610 if (matchCondCategoryValue && matchCondTypeValue && matchCondL1GtObjectValue) {
2612 algWithExcludedCondition =
true;
2624 algWithConditionNotInMap =
true;
2626 LogTrace(
"L1GtHwValidation") <<
"\n Error: condition "
2627 << cndName <<
" not found in condition map!"
2628 <<
"\n Add algorithm " << algName
2629 <<
" (bit number " << algBitNumber <<
") "
2630 <<
"\n to list of algorithms excluded from comparison"
2631 <<
"\n data versus emulator." << std::endl;
2637 if (algWithConditionNotInMap) {
2643 <<
"\n Error: one or more conditions from algorithm "
2644 << algName <<
" (bit number " << algBitNumber <<
") "
2645 <<
" not found in condition map!"
2646 <<
"\n Add it to list of algorithms excluded from comparison"
2647 <<
"\n data versus emulator." << std::endl;
2650 if (algWithExcludedCondition) {
2654 LogTrace(
"L1GtHwValidation") <<
"\n Algorithm " << algName
2655 <<
" (bit number " << algBitNumber
2656 <<
") contains an excluded condition."
2657 <<
"\n Add it to list of algorithms excluded from comparison"
2658 <<
"\n data versus emulator." << std::endl;
2663 for (std::vector<std::string>::const_iterator
2667 if ((*itExcl) == algName) {
2671 LogTrace(
"L1GtHwValidation") <<
"\n Algorithm " << algName
2672 <<
" (bit number " << algBitNumber
2673 <<
")\n added to list of algorithms excluded from comparison"
2674 <<
" \n data versus emulator by ExcludeAlgoTrigByName." << std::endl;
2681 for (std::vector<int>::const_iterator
2685 if ((*itExcl) == algBitNumber) {
2689 LogTrace(
"L1GtHwValidation") <<
"\n Algorithm " << algName
2690 <<
" (bit number " << algBitNumber
2691 <<
")\n added to list of algorithms excluded from comparison"
2692 <<
" \n data versus emulator by ExcludeAlgoTrigByBit." << std::endl;
2706 if (iBit == *itAlgo) {
2719 LogDebug(
"L1GtHwValidation") <<
"\n\n endRun: " << run.
id()
2720 <<
"\n Number of events analyzed in this run: " <<
m_nrEvRun
2721 <<
"\n Total number of events analyzed in this job: " <<
m_nrEvJob
2722 <<
"\n" << std::endl;
2730 <<
"\n\nTotal number of events analyzed in this job: " <<
m_nrEvJob
2731 <<
"\n" << std::endl;
T getParameter(std::string const &) const
const cms_uint16_t bData(int iB) const
get/set B_DATA_CH_IB
MonitorElement * m_fdlDataEmulAlgoDecision[TotalBxInEvent][NumberOfGtRecords]
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * m_fdlDataAlgoDecisionPrescaledMask_NoMatch[TotalBxInEvent][NumberOfGtRecords]
const cms_uint16_t bxNr() const
get/set bunch cross number of the actual bx
const TechnicalTriggerWord & gtTechnicalTriggerWord() const
get/set technical trigger bits
MonitorElement * m_fdlEmulAlgoDecisionUnprescaled_NoMatch[TotalBxInEvent][NumberOfGtRecords]
const L1GtTriggerMask * m_l1GtTmTech
const cms_uint16_t boardId() const
get/set board ID
MonitorElement * m_fdlDataAlgoDecision_Err[NumberOfGtRecords]
const cms_uint16_t noAlgo() const
get/set NoAlgo
edm::EDGetTokenT< L1GlobalTriggerEvmReadoutRecord > m_l1GtDataEvmInputToken_
virtual void compareGTFE(const edm::Event &, const edm::EventSetup &, const L1GtfeWord &, const L1GtfeWord &, const int)
compare the GTFE board
bool matchCondCategory(const L1GtConditionCategory &, const L1GtConditionCategory &)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
virtual void comparePSB(const edm::Event &, const edm::EventSetup &, const L1GtPsbWord &, const L1GtPsbWord &)
compare the PSB board
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
virtual void print(std::ostream &myCout) const
pretty print the content of a L1GtfeWord
void rmdir(const std::string &fullpath)
const std::vector< std::vector< int > > * m_prescaleFactorsAlgoTrig
MonitorElement * m_gtErrorFlag
PSB.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
static const unsigned int NumberTechnicalTriggers
MonitorElement * m_fdlEmulTechDecision[TotalBxInEvent][NumberOfGtRecords]
std::vector< L1GtConditionType > m_excludedCondType
excluded condition types
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
MonitorElement * m_fdlDataEmulAlgoDecisionPrescaled[TotalBxInEvent][NumberOfGtRecords]
MonitorElement * m_fdlDataEmulAlgoDecisionUnprescaledAllowed[TotalBxInEvent][NumberOfGtRecords]
void excludedAlgoList()
exclude from comparison some bits with known disagreement - bit list
void bookHistograms()
book all histograms for the module
MonitorElement * m_fdlDataAlgoDecisionUnprescaledMask_NoMatch[TotalBxInEvent][NumberOfGtRecords]
std::string l1GtConditionCategoryEnumToString(const L1GtConditionCategory &)
edm::InputTag m_l1GtEmulEvmInputTag
input tag for the L1 GT emulator EVM record
MonitorElement * m_fdlEmulAlgoDecisionMask[TotalBxInEvent][NumberOfGtRecords]
MonitorElement * m_fdlDataAlgoDecisionUnprescaled[TotalBxInEvent][NumberOfGtRecords]
unsigned long long m_l1GtMenuCacheID
const L1GtPrescaleFactors * m_l1GtPfTech
std::string l1GtObjectEnumToString(const L1GtObject &)
MonitorElement * m_fdlEmulAlgoDecisionPrescaledMask_NoMatch[TotalBxInEvent][NumberOfGtRecords]
virtual void compareFDL(const edm::Event &, const edm::EventSetup &, const L1GtFdlWord &, const L1GtFdlWord &, const int)
compare the FDL board
const cms_uint16_t altNrBxBoard() const
get/set alternative for number of BX per board
bool matchCondL1GtObject(const std::vector< L1GtObject > &, const L1GtObject &)
std::vector< int > m_excludeAlgoTrigByBit
exclude algorithm triggers from comparison data - emulator by algorithm bit number ...
virtual void compareTCS(const edm::Event &, const edm::EventSetup &, const L1TcsWord &, const L1TcsWord &)
compare the TCS board
DQMStore * m_dbe
internal members
unsigned long long m_l1GtTmAlgoCacheID
MonitorElement * m_fdlEmulTechDecisionMask[TotalBxInEvent][NumberOfGtRecords]
const cms_uint16_t bxNr() const
get/set BxNr - bunch cross number of the actual bx
MonitorElement * m_fdlDataAlgoDecisionPrescaled[TotalBxInEvent][NumberOfGtRecords]
const cms_uint16_t boardId() const
get/set board ID
MonitorElement * m_fdlDataAlgoDecisionMask_NoMatch[TotalBxInEvent][NumberOfGtRecords]
void printGtDecisionWord(std::ostream &myCout) const
const cms_uint16_t recordLength() const
get/set record length for alternative 0
const cms_uint32_t eventNr() const
get/set event number since last L1 reset generated in FDL
MonitorElement * m_gtfeDataEmul[NumberOfGtRecords]
histograms
L1GtConditionType l1GtConditionTypeStringToEnum(const std::string &)
MonitorElement * m_fdlDataAlgoDecisionUnprescaled_NoMatch[TotalBxInEvent][NumberOfGtRecords]
std::vector< bool > DecisionWordExtended
void beginRun(const edm::Run &run, const edm::EventSetup &c)
std::vector< unsigned int > m_triggerMaskTechTrig
virtual ~L1GtHwValidation()
MonitorElement * m_fdlDataEmulAlgoDecisionMask[TotalBxInEvent][NumberOfGtRecords]
L1GtObject l1GtObjectStringToEnum(const std::string &)
const cms_uint16_t aData(int iA) const
get/set A_DATA_CH_IA
std::vector< L1GtObject > m_excludedL1GtObject
excluded L1 GT objects
MonitorElement * m_fdlDataAlgoDecisionPrescaled_NoMatch[TotalBxInEvent][NumberOfGtRecords]
const std::vector< unsigned int > & gtTriggerMask() const
get the trigger mask
std::vector< std::string > m_excludeAlgoTrigByName
exclude algorithm triggers from comparison data - emulator by algorithm name
std::vector< bool > DecisionWord
typedefs
MonitorElement * m_excludedAlgorithmsAgreement
const L1GtTriggerMask * m_l1GtTmAlgo
trigger masks
edm::InputTag m_l1GtEmulDaqInputTag
input tag for the L1 GT emulator DAQ record
MonitorElement * m_fdlDataEmulTechDecision[TotalBxInEvent][NumberOfGtRecords]
MonitorElement * m_fdlEmulAlgoDecisionUnprescaledMask_NoMatch[TotalBxInEvent][NumberOfGtRecords]
const int bxInEvent() const
get/set bunch cross in the GT event record
const cms_uint32_t totalTriggerNr() const
get/set total number of L1A sent since start of run
void printGtDecisionWordExtended(std::ostream &myCout) const
void endRun(const edm::Run &run, const edm::EventSetup &c)
L1GtConditionCategory
condition categories
virtual void compareEvmRecord(const edm::Event &, const edm::EventSetup &)
L1 GT EVM record comparison.
MonitorElement * m_fdlDataTechDecision_Err[NumberOfGtRecords]
bool matchCondType(const L1GtConditionType &, const L1GtConditionType &)
MonitorElement * m_fdlDataAlgoDecision[TotalBxInEvent][NumberOfGtRecords]
std::vector< bool > TechnicalTriggerWord
technical trigger bits (64 bits)
L1GtHwValidation(const edm::ParameterSet &)
static const unsigned int NumberPhysTriggers
L1GtConditionCategory l1GtConditionCategoryStringToEnum(const std::string &)
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > m_l1GtDataDaqInputToken_
void setVerbose(unsigned level)
static const int TotalBxInEvent
MonitorElement * m_fdlEmulAlgoDecisionUnprescaled[TotalBxInEvent][NumberOfGtRecords]
const cms_uint16_t localBxNr() const
get/set local bunch cross number of the actual bx
const cms_uint16_t activeBoards() const
get/set boards contributing to EVM respectively DAQ record
const L1GtTriggerMenu * m_l1GtMenu
trigger menu
MonitorElement * m_fdlEmulAlgoDecision_Err[NumberOfGtRecords]
const cms_uint16_t bxNr() const
get/set bunch cross number as counted in the GTFE board
edm::EDGetTokenT< L1GlobalTriggerEvmReadoutRecord > m_l1GtEmulEvmInputToken_
void print(std::ostream &myCout) const
pretty print the content of a L1GtFdlWord
void print(std::ostream &myCout) const
pretty print
bool dirExists(const std::string &path) const
true if directory exists
std::string l1GtConditionTypeEnumToString(const L1GtConditionType &)
const cms_uint16_t boardId() const
get/set board ID
unsigned long long m_l1GtPfAlgoCacheID
const cms_uint32_t eventNr() const
get/set event number since last L1 reset generated in PSB
MonitorElement * m_fdlDataTechDecisionMask[TotalBxInEvent][NumberOfGtRecords]
edm::InputTag m_l1GtDataDaqInputTag
input tag for the L1 GT hardware DAQ record
MonitorElement * m_fdlDataAlgoDecision_NoMatch[TotalBxInEvent][NumberOfGtRecords]
MonitorElement * m_fdlDataEmul[TotalBxInEvent][NumberOfGtRecords]
FDL (0 for DAQ, 1 for EVM record)
const cms_uint16_t gtPrescaleFactorIndexAlgo() const
MonitorElement * m_fdlDataEmul_Err[NumberOfGtRecords]
const std::vector< std::vector< int > > & gtPrescaleFactors() const
get the prescale factors by reference
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > m_l1GtEmulDaqInputToken_
std::vector< L1GtConditionCategory > m_excludedCondCategory
excluded condition categories
std::ostringstream m_myCoutStream
static const int NumberBData
int m_nrDataEventError
counters
T const * product() const
MonitorElement * m_fdlEmulAlgoDecisionMask_NoMatch[TotalBxInEvent][NumberOfGtRecords]
const int bxInEvent() const
get/set bunch cross in the GT event record
const DecisionWord & gtDecisionWord() const
get/set/print algorithms bits (decision word)
unsigned long long m_l1GtTmTechCacheID
virtual void compareGt_Gct(const edm::Event &, const edm::EventSetup &)
MonitorElement * m_fdlEmulTechDecision_Err[NumberOfGtRecords]
static const int NumberAData
edm::InputTag m_l1GctDataInputTag
input tag for the L1 GCT hardware record
std::vector< edm::ParameterSet > m_excludeCondCategTypeObject
void printGtTechnicalTriggerWord(std::ostream &myCout) const
MonitorElement * m_fdlDataEmulAlgoDecision_Err[NumberOfGtRecords]
const cms_uint32_t setupVersion() const
get/set setup version
static const int NumberOfGtRecords
MonitorElement * m_fdlDataTechDecision[TotalBxInEvent][NumberOfGtRecords]
MonitorElement * m_fdlEmulAlgoDecision[TotalBxInEvent][NumberOfGtRecords]
const std::vector< std::vector< int > > * m_prescaleFactorsTechTrig
volatile std::atomic< bool > shutdown_flag false
MonitorElement * m_fdlEmulAlgoDecision_NoMatch[TotalBxInEvent][NumberOfGtRecords]
const DecisionWordExtended & gtDecisionWordExtended() const
get/set extended algorithms bits (extended decision word)
MonitorElement * m_fdlDataEmulTechDecisionMask[TotalBxInEvent][NumberOfGtRecords]
MonitorElement * m_fdlDataAlgoDecisionMask[TotalBxInEvent][NumberOfGtRecords]
virtual void compareDaqRecord(const edm::Event &, const edm::EventSetup &)
L1 GT DAQ record comparison.
const cms_uint16_t recordLength1() const
get/set record length for alternative 1
std::vector< unsigned int > m_triggerMaskAlgoTrig
std::vector< int > m_excludedAlgoList
MonitorElement * m_fdlDataEmulTechDecision_Err[NumberOfGtRecords]
MonitorElement * m_fdlEmulAlgoDecisionPrescaled_NoMatch[TotalBxInEvent][NumberOfGtRecords]
void setCurrentFolder(const std::string &fullpath)
const cms_uint16_t localBxNr() const
get/set local bunch cross number of the actual bx
const L1GtPrescaleFactors * m_l1GtPfAlgo
prescale factors
edm::InputTag m_l1GtDataEvmInputTag
input tag for the L1 GT hardware EVM record
const cms_uint16_t finalOR() const
get/set "Final OR" bits
unsigned long long m_l1GtPfTechCacheID
MonitorElement * m_fdlEmulAlgoDecisionPrescaled[TotalBxInEvent][NumberOfGtRecords]
bool excludedAlgo(const int &) const
exclusion status for algorithm with bit i
std::string m_dirName
directory name for L1Extra plots
MonitorElement * m_fdlDataEmulAlgoDecisionUnprescaled[TotalBxInEvent][NumberOfGtRecords]