#include <L1Comparator.h>
Classes | |
struct | EventInfo |
Private Types | |
using | RunCache = std::array< bool, dedefs::DEnsys > |
Private Member Functions | |
template<class T > | |
bool | CompareCollections (edm::Handle< T > data, edm::Handle< T > emul, std::ostream &) const |
template<class T > | |
bool | dumpCandidate (const T &dt, const T &em, std::ostream &s) const |
void | endJob () override |
std::shared_ptr< RunCache > | globalBeginRun (edm::Run const &, const edm::EventSetup &) const final |
void | globalEndRun (edm::Run const &, edm::EventSetup const &) const final |
template<class T > | |
void | process (T const *, T const *, const int, const int, EventInfo &eventInfo) const |
template<class T > | |
void | process (const edm::Handle< T > data, const edm::Handle< T > emul, const int sys, const int cid, EventInfo &eventInfo) const |
void | produce (edm::StreamID, edm::Event &, const edm::EventSetup &) const override |
int | verbose () const |
Additional Inherited Members | |
Public Types inherited from edm::global::EDProducerBase | |
typedef EDProducerBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::global::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::ProducerBase | |
template<Transition Tr = Transition::Event> | |
auto | produces (std::string instanceName) noexcept |
declare what type of product will make and with which optional label More... | |
template<Transition B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<BranchType B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces () |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces () |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces () |
template<Transition Tr = Transition::Event> | |
auto | produces () noexcept |
ProducesCollector | producesCollector () |
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) |
Definition at line 44 of file L1Comparator.h.
|
private |
Definition at line 49 of file L1Comparator.h.
|
explicit |
assertions/temporary
dump level: -1(all),0(none),1(disagree),2(loc.disagree),3(loc.agree)
create d|e record product
Definition at line 29 of file L1Comparator.cc.
References edm::ParameterSet::getParameter().
|
private |
bool L1Comparator::CompareCollections | ( | edm::Handle< myCol > | data, |
edm::Handle< myCol > | emul, | ||
std::ostream & | dumpStream | ||
) | const |
Definition at line 866 of file L1Comparator.cc.
References data, dumpCandidate(), L1TdeGEMTPG_cfi::emul, mps_fire::i, and match().
|
private |
Definition at line 888 of file L1Comparator.cc.
References dt, and alignCSCRings::s.
Referenced by CompareCollections().
|
overrideprivatevirtual |
Reimplemented from edm::global::EDProducerBase.
Definition at line 241 of file L1Comparator.cc.
References m_dumpFile, m_dumpMode, and m_match.
|
finalprivate |
Definition at line 193 of file L1Comparator.cc.
References gather_cfg::cout, dedefs::CTF, dedefs::DTF, dedefs::GCT, edm::EventSetup::getData(), dedefs::GLT, GMT, L1TriggerKey::kCSCTF, L1TriggerKey::kDTTF, L1TriggerKey::kGCT, L1TriggerKey::kGMT, L1TriggerKey::kGT, L1TriggerKey::kRCT, L1TriggerKey::kRPC, m_doSys, dedefs::RCT, RunInfoPI::RPC, tokenTriggerKey_, and verbose().
|
inlinefinalprivate |
Definition at line 52 of file L1Comparator.h.
|
private |
tmp: for getting a clean dump (avoid empty entries)
perform comparison
gather results
over-write system-id: needed eg for GMT input, CSC tf reg cand, CTP&CTF
over-write data type: needed eg for GCT jet types, regional muon sources
append d|e digis to the record's collection
Definition at line 768 of file L1Comparator.cc.
References fileCollector::cmp, gather_cfg::cout, data, L1TdeGEMTPG_cfi::emul, dumpTauVariables_cfi::eventInfo, alignBH_cfg::fixed, mps_fire::i, m_dumpMode, dedefs::SystLabel, createJobs::tmp, and verbose().
Referenced by process().
|
inlineprivate |
Definition at line 70 of file L1Comparator.h.
References data, L1TdeGEMTPG_cfi::emul, dumpTauVariables_cfi::eventInfo, and process().
|
overrideprivatevirtual |
– Get the data and emulated collections --------------------———
— done getting collections. —
processing : compare the pairs of collections
Implements edm::global::EDProducerBase.
Definition at line 248 of file L1Comparator.cc.
References gather_cfg::cout, dedefs::DEnsys, dedefs::DTF, dedefs::DTP, dedefs::DTtftrk, dedefs::DTtpPh, dedefs::DTtpTh, dumpTauVariables_cfi::eventInfo, dedefs::GCT, dedefs::GCTcenjets, dedefs::GCTethad, dedefs::GCTetmiss, dedefs::GCTettot, dedefs::GCTforjets, dedefs::GCThfbit, dedefs::GCThfring, dedefs::GCThtmiss, dedefs::GCTisolaem, dedefs::GCTisotaujets, dedefs::GCTnoisoem, dedefs::GCTtaujets, L1MuDTTrackContainer::getContainer(), L1MuDTChambPhContainer::getContainer(), L1MuDTChambThContainer::getContainer(), L1MuGMTReadoutCollection::getRecords(), GMT, dedefs::GMTcnd, dedefs::GMTmain, dedefs::GMTrdt, mps_fire::i, iEvent, if(), sistrip::SpyUtilities::isValid(), edm::HandleBase::isValid(), dqmiolumiharvest::j, dedefs::LTC, m_dumpFile, m_dumpMode, m_fileGuard, m_match, m_stage1_layer2_, eostools::move(), nevt_, dedefs::RCT, dedefs::RCTem, dedefs::RCTrgn, AlCaHarvesting_cff::record, RunInfoPI::RPC, dedefs::RPCcen, dedefs::RPCfor, csv2json::runIndex, tokenCaloEm_, tokenCaloRegion_, tokenGctEmCand_isoEm_, tokenGctEmCand_nonIsoEm_, tokenGctEtHad_, tokenGctEtMiss_, tokenGctEtTotal_, tokenGctHFBitCounts_, tokenGctHFRingEtSums_, tokenGctHtMiss_, tokenGctJetCand_cenJets_, tokenGctJetCand_forJets_, tokenGctJetCand_isoTauJets_, tokenGctJetCand_tauJets_, tokenGctJetCounts_, tokenLTCDigi_, tokenMuDTChambPh_, tokenMuDTChambTh_, tokenMuDTTrack_, tokenMuGMTCand_, tokenMuReadoutCand_, tokenMuRegionalCandRPCb_, tokenMuRegionalCandRPCf_, and verbose().
|
inlineprivate |
Definition at line 81 of file L1Comparator.h.
References verbose_.
Referenced by globalBeginRun(), process(), and produce().
|
private |
Definition at line 114 of file L1Comparator.h.
Referenced by globalBeginRun().
|
mutableprivate |
Definition at line 116 of file L1Comparator.h.
|
private |
Definition at line 115 of file L1Comparator.h.
|
private |
Definition at line 117 of file L1Comparator.h.
|
mutableprivate |
Definition at line 118 of file L1Comparator.h.
Referenced by produce().
|
mutableprivate |
Definition at line 119 of file L1Comparator.h.
|
private |
Definition at line 82 of file L1Comparator.h.
Referenced by produce().
|
mutableprivate |
Definition at line 85 of file L1Comparator.h.
Referenced by produce().
|
private |
Definition at line 88 of file L1Comparator.h.
Referenced by produce().
|
private |
Definition at line 89 of file L1Comparator.h.
Referenced by produce().
|
private |
Definition at line 90 of file L1Comparator.h.
Referenced by produce().
|
private |
Definition at line 91 of file L1Comparator.h.
Referenced by produce().
|
private |
Definition at line 97 of file L1Comparator.h.
Referenced by produce().
|
private |
Definition at line 98 of file L1Comparator.h.
Referenced by produce().
|
private |
Definition at line 96 of file L1Comparator.h.
Referenced by produce().
|
private |
Definition at line 100 of file L1Comparator.h.
Referenced by produce().
|
private |
Definition at line 99 of file L1Comparator.h.
Referenced by produce().
|
private |
Definition at line 101 of file L1Comparator.h.
Referenced by produce().
|
private |
Definition at line 92 of file L1Comparator.h.
Referenced by produce().
|
private |
Definition at line 93 of file L1Comparator.h.
Referenced by produce().
|
private |
Definition at line 95 of file L1Comparator.h.
Referenced by produce().
|
private |
Definition at line 94 of file L1Comparator.h.
Referenced by produce().
|
private |
Definition at line 102 of file L1Comparator.h.
Referenced by produce().
|
private |
Definition at line 105 of file L1Comparator.h.
Referenced by produce().
|
private |
Definition at line 103 of file L1Comparator.h.
Referenced by produce().
|
private |
Definition at line 104 of file L1Comparator.h.
Referenced by produce().
|
private |
Definition at line 106 of file L1Comparator.h.
Referenced by produce().
|
private |
Definition at line 109 of file L1Comparator.h.
Referenced by produce().
|
private |
Definition at line 110 of file L1Comparator.h.
Referenced by produce().
|
private |
Definition at line 107 of file L1Comparator.h.
Referenced by produce().
|
private |
Definition at line 108 of file L1Comparator.h.
Referenced by produce().
|
private |
Definition at line 112 of file L1Comparator.h.
Referenced by globalBeginRun().
|
private |
Definition at line 86 of file L1Comparator.h.
Referenced by verbose().