Classes | |
class | PatternWriter |
class | PFInstanceInputs |
struct | RefRemapper |
Private Member Functions | |
l1t::TkEm | convertFromEmu (const l1ct::EGIsoObjEmu &emu, const RefRemapper &refRemapper) const |
l1t::TkElectron | convertFromEmu (const l1ct::EGIsoEleObjEmu &emu, const RefRemapper &refRemapper) const |
void | convertToEmu (const l1t::TkElectron &tkele, RefRemapper &refRemapper, l1ct::OutputBoard &boarOut) const |
void | convertToEmu (const l1t::TkEm &tkele, RefRemapper &refRemapper, l1ct::OutputBoard &boarOut) const |
void | convertToPuppi (const l1t::PFCandidateCollection &l1PFCands, l1ct::PuppiObjs &puppiObjs) const |
ap_uint< 64 > | encodeLayer1 (const EGIsoObjEmu &egiso) const |
ap_uint< 128 > | encodeLayer1 (const EGIsoEleObjEmu &egiso) const |
std::vector< ap_uint< 64 > > | encodeLayer1 (const std::vector< EGIsoObjEmu > &photons) const |
std::vector< ap_uint< 64 > > | encodeLayer1 (const std::vector< EGIsoEleObjEmu > &electrons) const |
std::vector< ap_uint< 64 > > | encodeLayer1EgObjs (unsigned int nObj, const std::vector< EGIsoObjEmu > &photons, const std::vector< EGIsoEleObjEmu > &electrons) const |
void | endJob () override |
template<class TT , class T > | |
void | merge (const PFInstanceInputs< T > &instance, edm::Event &iEvent, RefRemapper &refRemapper, std::unique_ptr< TT > &out) const |
template<class TT , class T > | |
void | populate (std::unique_ptr< T > &out, const edm::Handle< TT > &in, const std::vector< int > &links, RefRemapper &refRemapper) const |
void | populate (std::unique_ptr< BXVector< l1t::EGamma >> &out, const edm::Handle< BXVector< l1t::EGamma >> &in, const std::vector< int > &links, RefRemapper &refRemapper) const |
void | produce (edm::StreamID, edm::Event &, const edm::EventSetup &) const override |
template<class Tout , class Tin > | |
void | putEgObjects (edm::Event &iEvent, const RefRemapper &refRemapper, const std::string &label, const std::vector< Tin > emulated) const |
template<class TT > | |
void | remapRefs (edm::Event &iEvent, std::unique_ptr< TT > &out, RefRemapper &refRemapper) const |
void | remapRefs (edm::Event &iEvent, std::unique_ptr< BXVector< l1t::EGamma >> &out, RefRemapper &refRemapper) const |
Private Attributes | |
bool | doInPtrn_ |
bool | doOutPtrn_ |
std::unique_ptr< PatternWriter > | inPtrnWrt_ |
l1ct::L1EGPuppiIsoAlgo | l2EgPuppiIsoAlgo_ |
l1ct::L2EgSorterEmulator | l2egsorter |
l1ct::L1EGPuppiIsoAlgo | l2ElePuppiIsoAlgo_ |
l1ct::L2EgEncoderEmulator | l2encoder |
std::unique_ptr< PatternWriter > | outPtrnWrt_ |
edm::EDGetTokenT< std::vector< l1t::PFCandidate > > | pfObjsToken_ |
PFInstanceInputs< BXVector< l1t::EGamma > > | tkEGInputs_ |
std::string | tkEGInstanceLabel_ |
PFInstanceInputs< l1t::TkElectronRegionalOutput > | tkEleInputs_ |
std::string | tkEleInstanceLabel_ |
PFInstanceInputs< l1t::TkEmRegionalOutput > | tkEmInputs_ |
std::string | tkEmInstanceLabel_ |
Additional Inherited Members | |
Public Types inherited from edm::global::EDProducerBase | |
typedef EDProducerBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
template<typename T > | |
using | BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T > |
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 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 27 of file L1TCtL2EgProducer.cc.
|
explicit |
Definition at line 208 of file L1TCtL2EgProducer.cc.
References doInPtrn_, doOutPtrn_, edm::ParameterSet::getParameter(), inPtrnWrt_, outPtrnWrt_, tkEGInstanceLabel_, tkEleInstanceLabel_, and tkEmInstanceLabel_.
|
override |
Definition at line 236 of file L1TCtL2EgProducer.cc.
|
private |
Definition at line 391 of file L1TCtL2EgProducer.cc.
References l1gt::Scales::floatEta(), l1gt::Scales::floatPhi(), l1gt::Scales::floatPt(), l1ct::EGIsoObjEmu::floatRelIso(), L1TCtL2EgProducer::RefRemapper::origRefAndPtr, l1t::L1Candidate::setHwQual(), l1ct::EGIsoObjEmu::sta_idx, and l1ct::EGIsoObj::toGT().
|
private |
Definition at line 410 of file L1TCtL2EgProducer.cc.
References l1gt::Scales::floatEta(), l1gt::Scales::floatPhi(), l1gt::Scales::floatPt(), l1ct::EGIsoEleObjEmu::floatRelIso(), l1ct::EGIsoEleObjEmu::idScore, L1TCtL2EgProducer::RefRemapper::origRefAndPtr, l1t::L1Candidate::setHwQual(), l1ct::EGIsoEleObjEmu::sta_idx, and l1ct::EGIsoEleObj::toGT().
|
private |
Definition at line 336 of file L1TCtL2EgProducer.cc.
References l1t::TkEm::egBinaryWord(), l1ct::OutputBoard::egelectron, l1t::TkEm::EGRef(), l1t::TkElectron::idScore(), l1ct::EGIsoEleObjEmu::idScore, l1ct::EGIsoEleObj::initFromBits(), l1ct::Scales::makeIso(), L1TCtL2EgProducer::RefRemapper::old2newRefMap, L1TCtL2EgProducer::RefRemapper::origRefAndPtr, l1t::TkEm::pfIsol(), reco::LeafCandidate::pt(), l1t::TkEm::puppiIsol(), l1ct::EGIsoEleObjEmu::setHwIso(), l1ct::EGIsoEleObjEmu::srcCluster, l1ct::EGIsoEleObjEmu::srcTrack, l1ct::EGIsoEleObjEmu::sta_idx, l1t::TkEm::trkIsol(), and l1t::TkElectron::trkPtr().
|
private |
Definition at line 360 of file L1TCtL2EgProducer.cc.
References l1t::TkEm::egBinaryWord(), l1ct::OutputBoard::egphoton, l1t::TkEm::EGRef(), l1ct::EGIsoObj::initFromBits(), l1ct::Scales::makeIso(), L1TCtL2EgProducer::RefRemapper::old2newRefMap, L1TCtL2EgProducer::RefRemapper::origRefAndPtr, l1t::TkEm::pfIsol(), l1t::TkEm::pfIsolPV(), reco::LeafCandidate::pt(), l1t::TkEm::puppiIsol(), l1ct::EGIsoObjEmu::setHwIso(), l1ct::EGIsoObjEmu::srcCluster, l1ct::EGIsoObjEmu::sta_idx, l1t::TkEm::trkIsol(), and l1t::TkEm::trkIsolPV().
|
private |
Definition at line 383 of file L1TCtL2EgProducer.cc.
References getGTfromDQMFile::obj.
Referenced by produce().
|
private |
Definition at line 238 of file L1TCtL2EgProducer.cc.
References l1ct::EGIsoObj::pack(), and runTheMatrix::ret.
Referenced by encodeLayer1(), and encodeLayer1EgObjs().
|
private |
Definition at line 244 of file L1TCtL2EgProducer.cc.
References l1ct::EGIsoEleObj::pack(), and runTheMatrix::ret.
|
private |
Definition at line 250 of file L1TCtL2EgProducer.cc.
References encodeLayer1(), BPHMonitor_cfi::photons, and runTheMatrix::ret.
|
private |
Definition at line 259 of file L1TCtL2EgProducer.cc.
References pwdgSkimBPark_cfi::electrons, encodeLayer1(), and runTheMatrix::ret.
|
private |
Definition at line 270 of file L1TCtL2EgProducer.cc.
References filterCSVwithJSON::copy, pwdgSkimBPark_cfi::electrons, encodeLayer1(), BPHMonitor_cfi::photons, and runTheMatrix::ret.
Referenced by produce().
|
overrideprivatevirtual |
Reimplemented from edm::global::EDProducerBase.
Definition at line 328 of file L1TCtL2EgProducer.cc.
References doInPtrn_, doOutPtrn_, inPtrnWrt_, and outPtrnWrt_.
|
inlineprivate |
Definition at line 116 of file L1TCtL2EgProducer.cc.
References patZpeak::handle, iEvent, instance, and MillePedeFileConverter_cfg::out.
Referenced by produce().
|
inlineprivate |
Definition at line 140 of file L1TCtL2EgProducer.cc.
References cms::cuda::assert(), recoMuon::in, electronStore::links, getGTfromDQMFile::obj, MillePedeFileConverter_cfg::out, and nano_mu_digi_cff::region.
|
inlineprivate |
Definition at line 157 of file L1TCtL2EgProducer.cc.
References nano_mu_digi_cff::bx, heavyIonCSV_trainingSettings::idx, recoMuon::in, L1TCtL2EgProducer::RefRemapper::oldRefs, MillePedeFileConverter_cfg::out, and BXVector< T >::push_back().
|
overrideprivatevirtual |
Implements edm::global::EDProducerBase.
Definition at line 285 of file L1TCtL2EgProducer.cc.
References l1t::demo::EventData::add(), l1ctLayer1_cff::boards, convertToPuppi(), doInPtrn_, doOutPtrn_, encodeLayer1EgObjs(), l1ct::L2EgEncoderEmulator::encodeLayer2EgObjs(), iEvent, inPtrnWrt_, l2EgPuppiIsoAlgo_, l2egsorter, l2ElePuppiIsoAlgo_, l2encoder, merge(), eostools::move(), l1ct::L2EgSorterEmulator::nInputBoards(), l1ct::L2EgSorterEmulator::nInputObjPerBoard(), outPtrnWrt_, pfObjsToken_, l1ct::L1EGPuppiIsoAlgo::run(), l1ct::L2EgSorterEmulator::run(), tkEGInputs_, tkEGInstanceLabel_, tkEleInputs_, tkEleInstanceLabel_, tkEmInputs_, and tkEmInstanceLabel_.
|
inlineprivate |
Definition at line 174 of file L1TCtL2EgProducer.cc.
References iEvent, label, eostools::move(), and getGTfromDQMFile::obj.
|
inlineprivate |
Definition at line 129 of file L1TCtL2EgProducer.cc.
|
inlineprivate |
Definition at line 131 of file L1TCtL2EgProducer.cc.
References heavyIonCSV_trainingSettings::idx, iEvent, L1TCtL2EgProducer::RefRemapper::old2newRefMap, L1TCtL2EgProducer::RefRemapper::oldRefs, and MillePedeFileConverter_cfg::out.
|
private |
Definition at line 202 of file L1TCtL2EgProducer.cc.
Referenced by endJob(), L1TCtL2EgProducer(), and produce().
|
private |
Definition at line 203 of file L1TCtL2EgProducer.cc.
Referenced by endJob(), L1TCtL2EgProducer(), and produce().
|
private |
Definition at line 204 of file L1TCtL2EgProducer.cc.
Referenced by endJob(), L1TCtL2EgProducer(), and produce().
|
private |
Definition at line 200 of file L1TCtL2EgProducer.cc.
Referenced by produce().
|
private |
Definition at line 197 of file L1TCtL2EgProducer.cc.
Referenced by produce().
|
private |
Definition at line 201 of file L1TCtL2EgProducer.cc.
Referenced by produce().
|
private |
Definition at line 198 of file L1TCtL2EgProducer.cc.
Referenced by produce().
|
private |
Definition at line 205 of file L1TCtL2EgProducer.cc.
Referenced by endJob(), L1TCtL2EgProducer(), and produce().
|
private |
Definition at line 199 of file L1TCtL2EgProducer.cc.
Referenced by produce().
|
private |
Definition at line 191 of file L1TCtL2EgProducer.cc.
Referenced by produce().
|
private |
Definition at line 194 of file L1TCtL2EgProducer.cc.
Referenced by L1TCtL2EgProducer(), and produce().
|
private |
Definition at line 193 of file L1TCtL2EgProducer.cc.
Referenced by produce().
|
private |
Definition at line 196 of file L1TCtL2EgProducer.cc.
Referenced by L1TCtL2EgProducer(), and produce().
|
private |
Definition at line 192 of file L1TCtL2EgProducer.cc.
Referenced by produce().
|
private |
Definition at line 195 of file L1TCtL2EgProducer.cc.
Referenced by L1TCtL2EgProducer(), and produce().