#include <L1Comparator.h>
Public Member Functions | |
template<class myCol > | |
bool | CompareCollections (edm::Handle< myCol > data, edm::Handle< myCol > emul) |
L1Comparator (const edm::ParameterSet &) | |
~L1Comparator () | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
boost::function< void(const BranchDescription &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Private Attributes | |
bool | DEmatchEvt [dedefs::DEnsys] |
int | DEncand [dedefs::DEnsys][2] |
bool | dumpEvent_ |
int | evtNum_ |
L1DEDigiCollection | m_dedigis |
edm::InputTag | m_DEsource [dedefs::DEnsys][4] |
bool | m_doSys [dedefs::DEnsys] |
std::ofstream | m_dumpFile |
std::string | m_dumpFileName |
int | m_dumpMode |
int | m_fedId |
edm::InputTag | m_FEDsource [2] |
bool | m_match |
int | nevt_ |
int | runNum_ |
int | verbose_ |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
typedef WorkerT< EDProducer > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDProducer | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
template<class TProducer , class TMethod > | |
void | callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod) |
Definition at line 43 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 6 of file L1Comparator.cc.
References gather_cfg::cout, dedefs::CTF, dedefs::CTP, dedefs::DEnsys, dedefs::DTF, dedefs::DTP, dedefs::ETP, edm::hlt::Exception, dedefs::GCT, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), dedefs::GLT, dedefs::GMT, dedefs::HTP, i, j, dedefs::LTC, dbtoconf::out, dedefs::RCT, dedefs::RPC, dedefs::SystLabel, and validate_alignment_devdb10_cfg::verbose.
L1Comparator::~L1Comparator | ( | ) |
Definition at line 143 of file L1Comparator.cc.
|
privatevirtual |
|
privatevirtual |
Reimplemented from edm::EDProducer.
Definition at line 147 of file L1Comparator.cc.
References gather_cfg::cout, dedefs::CTF, dedefs::DTF, dedefs::GCT, edm::EventSetup::get(), dedefs::GLT, dedefs::GMT, L1TriggerKey::kCSCTF, L1TriggerKey::kDTTF, L1TriggerKey::kGCT, L1TriggerKey::kGMT, L1TriggerKey::kGT, L1TriggerKey::kRCT, L1TriggerKey::kRPC, dedefs::RCT, dedefs::RPC, and validate_alignment_devdb10_cfg::verbose.
|
private |
todo: skip empty events
todo printL1Objects!
debug: print it all ()
Definition at line 1074 of file L1Comparator.cc.
References gather_cfg::cout, i, match(), convertSQLiteXML::ok, edm::Handle< T >::product(), and validate_alignment_devdb10_cfg::verbose.
|
private |
Definition at line 1297 of file L1Comparator.cc.
References gather_cfg::cout, i, match(), convertSQLiteXML::ok, and validate_alignment_devdb10_cfg::verbose.
|
private |
Definition at line 1449 of file L1Comparator.cc.
References i, match(), and convertSQLiteXML::ok.
|
private |
bool L1Comparator::CompareCollections | ( | edm::Handle< myCol > | data, |
edm::Handle< myCol > | emul | ||
) |
Definition at line 1546 of file L1Comparator.cc.
References begin, i, and match().
|
private |
Definition at line 1509 of file L1Comparator.cc.
References gather_cfg::cout, FEDRawData::data(), createTree::dd, i, j, convertSQLiteXML::ok, FEDRawData::size(), and validate_alignment_devdb10_cfg::verbose.
|
private |
Definition at line 1568 of file L1Comparator.cc.
|
privatevirtual |
|
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 962 of file L1Comparator.cc.
References gather_cfg::cout, DEcompare< T >::de_type(), DEcompare< T >::do_compare(), DEcompare< T >::get_ncand(), DEcompare< T >::getDEDigis(), DEcompare< T >::GetName(), i, DEcompare< T >::print(), dedefs::SystLabel, tmp, and validate_alignment_devdb10_cfg::verbose.
Referenced by process().
|
inlineprivate |
Definition at line 60 of file L1Comparator.h.
References edm::HandleBase::isValid(), process(), and edm::Handle< T >::product().
|
privatevirtual |
– Get the data and emulated collections -----————————
place candidates into vectors
restrict comparison to middle of readout window
— done getting collections. —
processing : compare the pairs of collections
tmp: for getting a clean dump (avoid empty entries)
(may skip further collection checks temporarily...)
further analysis
Implements edm::EDProducer.
Definition at line 209 of file L1Comparator.cc.
References CSCALCTDigi::clear(), CSCCLCTDigi::clear(), edm::HandleBase::clear(), gather_cfg::cout, dedefs::CSCtf, dedefs::CSCtfsta, dedefs::CSCtftrk, dedefs::CSCtpa, dedefs::CSCtpc, dedefs::CSCtpl, dedefs::CTF, dedefs::CTP, dedefs::DEnsys, cond::rpcobgas::detid, dedefs::DTF, dedefs::DTP, dedefs::DTtf, dedefs::DTtftrk, dedefs::DTtpPh, dedefs::DTtpTh, dedefs::ECALtp, dedefs::ETP, edm::EventID::event(), spr::find(), dedefs::GCT, dedefs::GCTcenjets, dedefs::GCTethad, dedefs::GCTetmiss, dedefs::GCTettot, dedefs::GCTforjets, dedefs::GCThfbit, dedefs::GCThfring, dedefs::GCThtmiss, dedefs::GCTisolaem, dedefs::GCTnoisoem, dedefs::GCTtaujets, edm::Event::getByLabel(), dedefs::GLT, dedefs::GMT, dedefs::GMTcnd, dedefs::GMTmain, dedefs::GMTrdt, dedefs::HCALtp, dedefs::HTP, i, edm::EventBase::id(), edm::HandleBase::isValid(), j, label, dedefs::LTC, dedefs::LTCi, convertSQLiteXML::ok, edm::Event::put(), dedefs::RCT, dedefs::RCTem, dedefs::RCTrgn, record, dedefs::RPC, dedefs::RPCcen, dedefs::RPCfor, edm::EventID::run(), L1MuGMTCand::setPhiValue(), and validate_alignment_devdb10_cfg::verbose.
|
inlineprivate |
|
private |
Definition at line 94 of file L1Comparator.h.
|
private |
Definition at line 95 of file L1Comparator.h.
|
private |
Definition at line 86 of file L1Comparator.h.
|
private |
Definition at line 83 of file L1Comparator.h.
|
private |
Definition at line 96 of file L1Comparator.h.
|
private |
Definition at line 88 of file L1Comparator.h.
|
private |
Definition at line 89 of file L1Comparator.h.
|
private |
Definition at line 91 of file L1Comparator.h.
|
private |
Definition at line 90 of file L1Comparator.h.
|
private |
Definition at line 92 of file L1Comparator.h.
|
private |
Definition at line 98 of file L1Comparator.h.
|
private |
Definition at line 99 of file L1Comparator.h.
|
private |
Definition at line 93 of file L1Comparator.h.
|
private |
Definition at line 82 of file L1Comparator.h.
|
private |
Definition at line 84 of file L1Comparator.h.
|
private |
Definition at line 85 of file L1Comparator.h.
Referenced by verbose().