#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 const int | TotalBxInEvent = 5 |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
static bool | wantsGlobalLuminosityBlocks () |
static bool | wantsGlobalRuns () |
static bool | wantsInputProcessBlocks () |
static bool | wantsProcessBlocks () |
static bool | wantsStreamLuminosityBlocks () |
static bool | wantsStreamRuns () |
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 48 of file L1GtDataEmulAnalyzer.h.
|
explicit |
Definition at line 49 of file L1GtDataEmulAnalyzer.cc.
References bookHistograms(), edm::ParameterSet::getParameter(), LogDebug, m_l1GctDataInputTag, m_l1GtDataInputTag, m_l1GtEmulInputTag, m_l1GtMenuCacheID, m_l1GtTmAlgoCacheID, m_l1GtTmTechCacheID, m_nrDataEventError, and m_nrEmulEventError.
|
override |
Definition at line 79 of file L1GtDataEmulAnalyzer.cc.
|
overrideprivatevirtual |
analyze each event
Implements edm::EDAnalyzer.
Definition at line 1077 of file L1GtDataEmulAnalyzer.cc.
References compareDaqRecord(), compareEvmRecord(), and compareGt_Gct().
|
overrideprivatevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 86 of file L1GtDataEmulAnalyzer.cc.
|
private |
book all histograms for the module
Definition at line 1089 of file L1GtDataEmulAnalyzer.cc.
References 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, edm::Event::getByLabel(), 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 227 of file L1GtDataEmulAnalyzer.cc.
References L1GtFdlWord::boardId(), L1GtFdlWord::bxInEvent(), L1GtFdlWord::bxNr(), TauDecayModes::dec, L1GtFdlWord::eventNr(), L1GtFdlWord::finalOR(), edm::EventSetup::get(), 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_l1GtTmAlgo, m_l1GtTmAlgoCacheID, m_l1GtTmTech, m_l1GtTmTechCacheID, m_myCoutStream, m_triggerMaskAlgoTrig, m_triggerMaskTechTrig, L1GtFdlWord::noAlgo(), L1GtFdlWord::print(), L1GtFdlWord::printGtDecisionWord(), L1GtFdlWord::printGtDecisionWordExtended(), L1GtFdlWord::printGtTechnicalTriggerWord(), edm::ESHandle< class >::product(), 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 91 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::EDAnalyzer.
Definition at line 1364 of file L1GtDataEmulAnalyzer.cc.
|
private |
Definition at line 133 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 153 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 136 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
FDL (0 for DAQ, 1 for EVM record)
Definition at line 131 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 139 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 155 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 148 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 159 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 149 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 157 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 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 137 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 158 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 146 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
histograms
GTFE
Definition at line 126 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareGTFE().
|
private |
input tag for the L1 GCT hardware record
Definition at line 95 of file L1GtDataEmulAnalyzer.h.
Referenced by L1GtDataEmulAnalyzer().
|
private |
input tag for the L1 GT hardware DAQ/EVM record
Definition at line 89 of file L1GtDataEmulAnalyzer.h.
Referenced by compareDaqRecord(), and L1GtDataEmulAnalyzer().
|
private |
input tag for the L1 GT emulator DAQ/EVM record
Definition at line 92 of file L1GtDataEmulAnalyzer.h.
Referenced by compareDaqRecord(), and L1GtDataEmulAnalyzer().
|
private |
|
private |
Definition at line 110 of file L1GtDataEmulAnalyzer.h.
Referenced by compareFDL(), and L1GtDataEmulAnalyzer().
|
private |
|
private |
Definition at line 114 of file L1GtDataEmulAnalyzer.h.
Referenced by compareFDL(), and L1GtDataEmulAnalyzer().
|
private |
Definition at line 116 of file L1GtDataEmulAnalyzer.h.
Referenced by compareFDL().
|
private |
Definition at line 117 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 100 of file L1GtDataEmulAnalyzer.h.
Referenced by compareDaqRecord(), compareFDL(), compareGTFE(), and comparePSB().
|
private |
counters
Definition at line 103 of file L1GtDataEmulAnalyzer.h.
Referenced by compareDaqRecord(), and L1GtDataEmulAnalyzer().
|
private |
Definition at line 104 of file L1GtDataEmulAnalyzer.h.
Referenced by compareDaqRecord(), 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().
|
staticprivate |
Definition at line 128 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().