#include <L1GtDataEmulAnalyzer.h>
Public Member Functions | |
L1GtDataEmulAnalyzer (const edm::ParameterSet &) | |
~L1GtDataEmulAnalyzer () | |
Public Member Functions inherited from edm::EDAnalyzer | |
EDAnalyzer () | |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Private Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
analyze each event More... | |
virtual void | beginJob () |
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... | |
virtual void | endJob () |
end of job More... | |
Static Private Attributes | |
static const int | TotalBxInEvent = 5 |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
typedef WorkerT< EDAnalyzer > | WorkerType |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Member Functions inherited from edm::EDAnalyzer | |
CurrentProcessingContext const * | currentContext () const |
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.
$Date$ $Revision$
Definition at line 50 of file L1GtDataEmulAnalyzer.h.
|
explicit |
Definition at line 51 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.
L1GtDataEmulAnalyzer::~L1GtDataEmulAnalyzer | ( | ) |
Definition at line 88 of file L1GtDataEmulAnalyzer.cc.
|
privatevirtual |
analyze each event
Implements edm::EDAnalyzer.
Definition at line 1265 of file L1GtDataEmulAnalyzer.cc.
References compareDaqRecord(), compareEvmRecord(), and compareGt_Gct().
|
privatevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 95 of file L1GtDataEmulAnalyzer.cc.
|
private |
book all histograms for the module
Definition at line 1280 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(), TFileDirectory::mkdir(), L1GlobalTriggerReadoutSetup::NumberPhysTriggers, L1GlobalTriggerReadoutSetup::NumberTechnicalTriggers, and TotalBxInEvent.
Referenced by L1GtDataEmulAnalyzer().
|
privatevirtual |
L1 GT DAQ record comparison.
Definition at line 1103 of file L1GtDataEmulAnalyzer.cc.
References L1GtPsbWord::boardId(), L1GtPsbWord::bxInEvent(), compareFDL(), compareGTFE(), comparePSB(), 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 1248 of file L1GtDataEmulAnalyzer.cc.
Referenced by analyze().
|
privatevirtual |
compare the FDL board
Definition at line 257 of file L1GtDataEmulAnalyzer.cc.
References L1GtFdlWord::boardId(), L1GtFdlWord::bxInEvent(), L1GtFdlWord::bxNr(), 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(), and TotalBxInEvent.
Referenced by compareDaqRecord().
|
privatevirtual |
compare the GCT collections obtained from L1 GT PSB with the input GCT collections
Definition at line 1257 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 100 of file L1GtDataEmulAnalyzer.cc.
References L1GtfeWord::activeBoards(), L1GtfeWord::boardId(), L1GtfeWord::bxNr(), 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 908 of file L1GtDataEmulAnalyzer.cc.
References L1GtPsbWord::aData(), L1GtPsbWord::bData(), L1GtPsbWord::boardId(), L1GtPsbWord::bxInEvent(), L1GtPsbWord::bxNr(), 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 1097 of file L1GtDataEmulAnalyzer.cc.
|
privatevirtual |
end of job
Reimplemented from edm::EDAnalyzer.
Definition at line 1581 of file L1GtDataEmulAnalyzer.cc.
|
private |
Definition at line 145 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 165 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 148 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
FDL (0 for DAQ, 1 for EVM record)
Definition at line 143 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 163 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 167 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 160 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 171 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 154 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 169 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 146 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 166 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 155 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 170 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
Definition at line 158 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().
|
private |
histograms
GTFE
Definition at line 138 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareGTFE().
|
private |
input tag for the L1 GCT hardware record
Definition at line 105 of file L1GtDataEmulAnalyzer.h.
Referenced by L1GtDataEmulAnalyzer().
|
private |
input tag for the L1 GT hardware DAQ/EVM record
Definition at line 99 of file L1GtDataEmulAnalyzer.h.
Referenced by compareDaqRecord(), and L1GtDataEmulAnalyzer().
|
private |
input tag for the L1 GT emulator DAQ/EVM record
Definition at line 102 of file L1GtDataEmulAnalyzer.h.
Referenced by compareDaqRecord(), and L1GtDataEmulAnalyzer().
|
private |
|
private |
Definition at line 121 of file L1GtDataEmulAnalyzer.h.
Referenced by compareFDL(), and L1GtDataEmulAnalyzer().
|
private |
|
private |
Definition at line 125 of file L1GtDataEmulAnalyzer.h.
Referenced by compareFDL(), and L1GtDataEmulAnalyzer().
|
private |
Definition at line 127 of file L1GtDataEmulAnalyzer.h.
Referenced by compareFDL().
|
private |
Definition at line 128 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 111 of file L1GtDataEmulAnalyzer.h.
Referenced by compareDaqRecord(), compareFDL(), compareGTFE(), and comparePSB().
|
private |
counters
Definition at line 114 of file L1GtDataEmulAnalyzer.h.
Referenced by compareDaqRecord(), and L1GtDataEmulAnalyzer().
|
private |
Definition at line 115 of file L1GtDataEmulAnalyzer.h.
Referenced by compareDaqRecord(), and L1GtDataEmulAnalyzer().
|
private |
Definition at line 130 of file L1GtDataEmulAnalyzer.h.
Referenced by compareFDL().
|
private |
Definition at line 131 of file L1GtDataEmulAnalyzer.h.
Referenced by compareFDL().
|
staticprivate |
Definition at line 140 of file L1GtDataEmulAnalyzer.h.
Referenced by bookHistograms(), and compareFDL().