#include <L1GtDataEmulAnalyzer.h>
Private Member Functions | |
void | analyze (const edm::Event &, const edm::EventSetup &) override |
analyze each event More... | |
void | beginJob () override |
void | bookHistograms () |
book all histograms for the module More... | |
virtual void | compareDaqRecord (const edm::Event &, const edm::EventSetup &) |
L1 GT DAQ record comparison. More... | |
virtual void | compareEvmRecord (const edm::Event &, const edm::EventSetup &) |
L1 GT EVM record comparison. More... | |
virtual void | compareFDL (const edm::Event &, const edm::EventSetup &, const L1GtFdlWord &, const L1GtFdlWord &, const int) |
compare the FDL board More... | |
virtual void | compareGt_Gct (const edm::Event &, const edm::EventSetup &) |
virtual void | compareGTFE (const edm::Event &, const edm::EventSetup &, const L1GtfeWord &, const L1GtfeWord &) |
compare the GTFE board More... | |
virtual void | comparePSB (const edm::Event &, const edm::EventSetup &, const L1GtPsbWord &, const L1GtPsbWord &) |
compare the PSB board More... | |
virtual void | compareTCS (const edm::Event &, const edm::EventSetup &, const L1TcsWord &, const L1TcsWord &) |
compare the TCS board More... | |
void | endJob () override |
end of job More... | |
Static Private Attributes | |
static constexpr int | TotalBxInEvent = 5 |
Additional Inherited Members | |
Public Types inherited from edm::one::EDAnalyzerBase | |
typedef EDAnalyzerBase | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::one::EDAnalyzerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
void | resetItemsToGetFrom (BranchType iType) |
Description: compare hardware records with emulator records for L1 GT record.
Implementation: Get the L1 GT records from data and from emulator.
Compare every board between data and emulator.
Definition at line 51 of file L1GtDataEmulAnalyzer.h.
|
explicit |
Definition at line 49 of file L1GtDataEmulAnalyzer.cc.
References bookHistograms(), edm::EDConsumerBase::esConsumes(), edm::ParameterSet::getParameter(), TFileService::kSharedResource, LogDebug, m_l1GctDataInputTag, m_l1GtDataInputTag, m_l1GtEmulInputTag, m_l1GtMenuCacheID, m_l1GtMenuToken, m_l1GtTmAlgoCacheID, m_l1GtTmAlgoToken, m_l1GtTmTechCacheID, m_l1GtTmTechToken, m_nrDataEventError, and m_nrEmulEventError.
|
override |
Definition at line 85 of file L1GtDataEmulAnalyzer.cc.
|
overrideprivatevirtual |
analyze each event
Implements edm::one::EDAnalyzerBase.
Definition at line 1077 of file L1GtDataEmulAnalyzer.cc.
References compareDaqRecord(), compareEvmRecord(), compareGt_Gct(), and iEvent.
|
overrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 92 of file L1GtDataEmulAnalyzer.cc.
|
private |
book all histograms for the module
Definition at line 1089 of file L1GtDataEmulAnalyzer.cc.
References B2GTnPMonitor_cfi::histTitle, m_fdlDataAlgoDecision, m_fdlDataAlgoDecision_Err, m_fdlDataAlgoDecisionMask, m_fdlDataEmul, m_fdlDataEmul_Err, m_fdlDataEmulAlgoDecision, m_fdlDataEmulAlgoDecision_Err, m_fdlDataEmulAlgoDecisionMask, m_fdlDataEmulTechDecision, m_fdlDataEmulTechDecision_Err, m_fdlDataEmulTechDecisionMask, m_fdlDataTechDecision, m_fdlDataTechDecision_Err, m_fdlDataTechDecisionMask, m_fdlEmulAlgoDecision, m_fdlEmulAlgoDecision_Err, m_fdlEmulAlgoDecisionMask, m_fdlEmulTechDecision, m_fdlEmulTechDecision_Err, m_fdlEmulTechDecisionMask, m_gtfeDataEmul, TFileDirectory::make(), TFileService::mkdir(), L1GlobalTriggerReadoutSetup::NumberPhysTriggers, L1GlobalTriggerReadoutSetup::NumberTechnicalTriggers, contentValuesCheck::ss, str, AlCaHLTBitMon_QueryRunRegistry::string, and TotalBxInEvent.
Referenced by L1GtDataEmulAnalyzer().
|
privatevirtual |
L1 GT DAQ record comparison.
Definition at line 943 of file L1GtDataEmulAnalyzer.cc.
References L1GtPsbWord::boardId(), L1GtPsbWord::bxInEvent(), compareFDL(), compareGTFE(), comparePSB(), TauDecayModes::dec, L1GlobalTriggerReadoutRecord::gtFdlVector(), L1GlobalTriggerReadoutRecord::gtfeWord(), L1GlobalTriggerReadoutRecord::gtPsbVector(), iEvent, edm::HandleBase::isValid(), LogDebug, m_l1GtDataInputTag, m_l1GtEmulInputTag, m_myCoutStream, m_nrDataEventError, and m_nrEmulEventError.
Referenced by analyze().
|
privatevirtual |
L1 GT EVM record comparison.
Definition at line 1066 of file L1GtDataEmulAnalyzer.cc.
Referenced by analyze().
|
privatevirtual |
compare the FDL board
Definition at line 233 of file L1GtDataEmulAnalyzer.cc.
References L1GtFdlWord::boardId(), L1GtFdlWord::bxInEvent(), L1GtFdlWord::bxNr(), TauDecayModes::dec, L1GtFdlWord::eventNr(), L1GtFdlWord::finalOR(), edm::EventSetup::get(), edm::EventSetup::getData(), L1GtTriggerMenu::gtAlgorithmMap(), L1GtFdlWord::gtDecisionWord(), L1GtFdlWord::gtDecisionWordExtended(), L1GtFdlWord::gtTechnicalTriggerWord(), L1GtTriggerMask::gtTriggerMask(), L1GtFdlWord::localBxNr(), LogDebug, m_fdlDataAlgoDecision, m_fdlDataAlgoDecision_Err, m_fdlDataAlgoDecisionMask, m_fdlDataEmul, m_fdlDataEmul_Err, m_fdlDataEmulAlgoDecision, m_fdlDataEmulAlgoDecision_Err, m_fdlDataEmulAlgoDecisionMask, m_fdlDataEmulTechDecision, m_fdlDataEmulTechDecision_Err, m_fdlDataEmulTechDecisionMask, m_fdlDataTechDecision, m_fdlDataTechDecision_Err, m_fdlDataTechDecisionMask, m_fdlEmulAlgoDecision, m_fdlEmulAlgoDecision_Err, m_fdlEmulAlgoDecisionMask, m_fdlEmulTechDecision, m_fdlEmulTechDecision_Err, m_fdlEmulTechDecisionMask, m_l1GtMenu, m_l1GtMenuCacheID, m_l1GtMenuToken, m_l1GtTmAlgo, m_l1GtTmAlgoCacheID, m_l1GtTmAlgoToken, m_l1GtTmTech, m_l1GtTmTechCacheID, m_l1GtTmTechToken, m_myCoutStream, m_triggerMaskAlgoTrig, m_triggerMaskTechTrig, L1GtFdlWord::noAlgo(), L1GtFdlWord::print(), L1GtFdlWord::printGtDecisionWord(), L1GtFdlWord::printGtDecisionWordExtended(), L1GtFdlWord::printGtTechnicalTriggerWord(), AlCaHLTBitMon_QueryRunRegistry::string, and TotalBxInEvent.
Referenced by compareDaqRecord().
|
privatevirtual |
compare the GCT collections obtained from L1 GT PSB with the input GCT collections
Definition at line 1072 of file L1GtDataEmulAnalyzer.cc.
Referenced by analyze().
|
privatevirtual |
compare the GTFE board
get record length: 3 bx for standard, 5 bx for debug
get bunch cross number as counted in the GTFE board
get setup version
get boards contributing to EVM respectively DAQ record
get total number of L1A sent since start of run
Definition at line 97 of file L1GtDataEmulAnalyzer.cc.
References L1GtfeWord::activeBoards(), L1GtfeWord::boardId(), L1GtfeWord::bxNr(), TauDecayModes::dec, LogDebug, m_gtfeDataEmul, m_myCoutStream, L1GtfeWord::print(), L1GtfeWord::recordLength(), L1GtfeWord::setupVersion(), and L1GtfeWord::totalTriggerNr().
Referenced by compareDaqRecord().
|
privatevirtual |
compare the PSB board
get/set A_DATA_CH_IA
get/set B_DATA_CH_IB
Definition at line 778 of file L1GtDataEmulAnalyzer.cc.
References L1GtPsbWord::aData(), L1GtPsbWord::bData(), L1GtPsbWord::boardId(), L1GtPsbWord::bxInEvent(), L1GtPsbWord::bxNr(), TauDecayModes::dec, L1GtPsbWord::eventNr(), L1GtPsbWord::localBxNr(), LogDebug, m_myCoutStream, L1GtPsbWord::NumberAData, L1GtPsbWord::NumberBData, and L1GtPsbWord::print().
Referenced by compareDaqRecord().
|
privatevirtual |
compare the TCS board
Definition at line 935 of file L1GtDataEmulAnalyzer.cc.
|
overrideprivatevirtual |
end of job
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 1364 of file L1GtDataEmulAnalyzer.cc.
|
private |
Definition at line 136 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 156 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 139 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
FDL (0 for DAQ, 1 for EVM record)
Definition at line 134 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 154 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 142 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 158 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 143 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 151 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 162 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 152 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 145 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 160 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 148 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 137 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 157 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 140 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 146 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 161 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 149 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
histograms
GTFE
Definition at line 129 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareGTFE().
|
private |
input tag for the L1 GCT hardware record
Definition at line 98 of file L1GtDataEmulAnalyzer.h.
Referenced by L1GtDataEmulAnalyzer().
|
private |
input tag for the L1 GT hardware DAQ/EVM record
Definition at line 92 of file L1GtDataEmulAnalyzer.h.
Referenced by compareDaqRecord(), and L1GtDataEmulAnalyzer().
|
private |
input tag for the L1 GT emulator DAQ/EVM record
Definition at line 95 of file L1GtDataEmulAnalyzer.h.
Referenced by compareDaqRecord(), and L1GtDataEmulAnalyzer().
|
private |
|
private |
Definition at line 113 of file L1GtDataEmulAnalyzer.h.
Referenced by compareFDL(), and L1GtDataEmulAnalyzer().
|
private |
PSB.
Definition at line 166 of file L1GtDataEmulAnalyzer.h.
Referenced by compareFDL(), and L1GtDataEmulAnalyzer().
|
private |
|
private |
Definition at line 117 of file L1GtDataEmulAnalyzer.h.
Referenced by compareFDL(), and L1GtDataEmulAnalyzer().
|
private |
Definition at line 167 of file L1GtDataEmulAnalyzer.h.
Referenced by compareFDL(), and L1GtDataEmulAnalyzer().
|
private |
Definition at line 119 of file L1GtDataEmulAnalyzer.h.
Referenced by compareFDL().
|
private |
Definition at line 120 of file L1GtDataEmulAnalyzer.h.
Referenced by compareFDL(), and L1GtDataEmulAnalyzer().
|
private |
Definition at line 168 of file L1GtDataEmulAnalyzer.h.
Referenced by compareFDL(), and L1GtDataEmulAnalyzer().
|
private |
an output stream to print into it can then be directed to whatever log level is desired
Definition at line 103 of file L1GtDataEmulAnalyzer.h.
Referenced by compareDaqRecord(), compareFDL(), compareGTFE(), and comparePSB().
|
private |
counters
Definition at line 106 of file L1GtDataEmulAnalyzer.h.
Referenced by compareDaqRecord(), and L1GtDataEmulAnalyzer().
|
private |
Definition at line 107 of file L1GtDataEmulAnalyzer.h.
Referenced by compareDaqRecord(), and L1GtDataEmulAnalyzer().
|
private |
Definition at line 122 of file L1GtDataEmulAnalyzer.h.
Referenced by compareFDL().
|
private |
Definition at line 123 of file L1GtDataEmulAnalyzer.h.
Referenced by compareFDL().
|
staticprivate |
Definition at line 131 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().