#include <MuonProducer.h>
Public Types | |
typedef std::vector < edm::InputTag > | InputTags |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
typedef WorkerT< EDProducer > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Member Functions | |
MuonProducer (const edm::ParameterSet &) | |
Constructor. More... | |
virtual void | produce (edm::Event &, const edm::EventSetup &) |
reconstruct muons More... | |
virtual | ~MuonProducer () |
Destructor. More... | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Public Member Functions inherited from edm::EDConsumerBase | |
EDConsumerBase () | |
ProductHolderIndex | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Private Member Functions | |
template<typename TYPE > | |
void | fillMuonMap (edm::Event &event, const edm::OrphanHandle< reco::MuonCollection > &muonHandle, const std::vector< TYPE > &muonExtra, const std::string &label) |
std::string | labelOrInstance (const edm::InputTag &) const |
void | setAlias (std::string alias) |
Private Attributes | |
bool | debug_ |
bool | fastLabelling_ |
bool | fillCosmicsIdMap_ |
bool | fillDetectorBasedIsolation_ |
bool | fillIsolation_ |
bool | fillPFIsolation_ |
bool | fillPFMomentum_ |
bool | fillSelectors_ |
bool | fillShoweringInfo_ |
bool | fillTimingInfo_ |
std::vector< std::map < std::string, edm::InputTag > > | pfIsoMapNames |
std::string | theAlias |
edm::InputTag | theCosmicCompMapName |
edm::InputTag | theEcalDepositName |
edm::InputTag | theHcalDepositName |
edm::InputTag | theHoDepositName |
edm::InputTag | theJetDepositName |
edm::InputTag | theMuonsCollectionLabel |
std::string | theMuToMuMapName |
edm::InputTag | thePFCandLabel |
MuPFIsoHelper * | thePFIsoHelper |
InputTags | theSelectorMapNames |
edm::InputTag | theShowerMapName |
edm::InputTag | theTrackDepositName |
bool | writeIsoDeposits_ |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDProducer | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
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 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) |
See header file.
Producer meant for the Post PF reconstruction.
This class takes the muon collection produced before the PF is run (muons1Step) and the information calculated after that the entire event has been reconstructed. The collections produced here are meant to be used for the final analysis (or as PAT input). The previous muon collection is meant to be transient.
Definition at line 29 of file MuonProducer.h.
typedef std::vector<edm::InputTag> MuonProducer::InputTags |
Definition at line 42 of file MuonProducer.h.
MuonProducer::MuonProducer | ( | const edm::ParameterSet & | pSet | ) |
Constructor.
Definition at line 50 of file MuonProducer.cc.
References fastLabelling_, fillCosmicsIdMap_, fillDetectorBasedIsolation_, fillPFIsolation_, fillPFMomentum_, fillSelectors_, fillShoweringInfo_, fillTimingInfo_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), j, diffTwoXMLs::label, labelOrInstance(), Association::map, pfIsoMapNames, edm::ProductRegistryHelper::produces(), setAlias(), AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, theAlias, theCosmicCompMapName, theEcalDepositName, theHcalDepositName, theHoDepositName, theJetDepositName, theMuonsCollectionLabel, theMuToMuMapName, thePFCandLabel, thePFIsoHelper, theSelectorMapNames, theShowerMapName, and theTrackDepositName.
|
virtual |
Destructor.
Definition at line 161 of file MuonProducer.cc.
References fillPFIsolation_, and thePFIsoHelper.
|
private |
Definition at line 461 of file MuonProducer.cc.
|
private |
Definition at line 478 of file MuonProducer.cc.
References fastLabelling_, edm::InputTag::instance(), edm::InputTag::label(), and theMuonsCollectionLabel.
Referenced by MuonProducer(), and produce().
|
virtual |
reconstruct muons
Implements edm::EDProducer.
Definition at line 167 of file MuonProducer.cc.
References abs, begin, MuPFIsoHelper::beginEvent(), dout, MuPFIsoHelper::embedPFIsolation(), event(), fillCosmicsIdMap_, fillDetectorBasedIsolation_, fillPFIsolation_, fillPFMomentum_, fillSelectors_, fillShoweringInfo_, fillTimingInfo_, i, edm::OrphanHandleBase::id(), edm::Ref< C, T, F >::id(), edm::InputTag::instance(), reco::Muon::isGlobalMuon(), reco::Muon::isPFMuon(), reco::Muon::isStandAloneMuon(), reco::Muon::isTrackerMuon(), j, edm::Ref< C, T, F >::key(), edm::InputTag::label(), labelOrInstance(), Association::map, metname, reco::LeafCandidate::p4(), reco::tau::pfCandidates(), pfIsoMapNames, reco::Muon::pfP4(), alignCSCRings::s, reco::Muon::setBestTrack(), reco::LeafCandidate::setP4(), reco::Muon::setPFP4(), AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, theCosmicCompMapName, theEcalDepositName, theHcalDepositName, theHoDepositName, theJetDepositName, theMuonsCollectionLabel, theMuToMuMapName, thePFCandLabel, thePFIsoHelper, theSelectorMapNames, theShowerMapName, and theTrackDepositName.
|
inlineprivate |
|
private |
Definition at line 63 of file MuonProducer.h.
|
private |
Definition at line 64 of file MuonProducer.h.
Referenced by labelOrInstance(), and MuonProducer().
|
private |
Definition at line 72 of file MuonProducer.h.
Referenced by MuonProducer(), and produce().
|
private |
Definition at line 75 of file MuonProducer.h.
Referenced by MuonProducer(), and produce().
|
private |
Definition at line 69 of file MuonProducer.h.
|
private |
Definition at line 74 of file MuonProducer.h.
Referenced by MuonProducer(), produce(), and ~MuonProducer().
|
private |
Definition at line 73 of file MuonProducer.h.
Referenced by MuonProducer(), and produce().
|
private |
Definition at line 71 of file MuonProducer.h.
Referenced by MuonProducer(), and produce().
|
private |
Definition at line 76 of file MuonProducer.h.
Referenced by MuonProducer(), and produce().
|
private |
Definition at line 77 of file MuonProducer.h.
Referenced by MuonProducer(), and produce().
|
private |
Definition at line 94 of file MuonProducer.h.
Referenced by MuonProducer(), and produce().
|
private |
Definition at line 53 of file MuonProducer.h.
Referenced by MuonProducer(), and setAlias().
|
private |
Definition at line 88 of file MuonProducer.h.
Referenced by MuonProducer(), and produce().
|
private |
Definition at line 80 of file MuonProducer.h.
Referenced by MuonProducer(), and produce().
|
private |
Definition at line 81 of file MuonProducer.h.
Referenced by MuonProducer(), and produce().
|
private |
Definition at line 82 of file MuonProducer.h.
Referenced by MuonProducer(), and produce().
|
private |
Definition at line 83 of file MuonProducer.h.
Referenced by MuonProducer(), and produce().
|
private |
Definition at line 66 of file MuonProducer.h.
Referenced by labelOrInstance(), MuonProducer(), and produce().
|
private |
Definition at line 90 of file MuonProducer.h.
Referenced by MuonProducer(), and produce().
|
private |
Definition at line 67 of file MuonProducer.h.
Referenced by MuonProducer(), and produce().
|
private |
Definition at line 92 of file MuonProducer.h.
Referenced by MuonProducer(), produce(), and ~MuonProducer().
|
private |
Definition at line 85 of file MuonProducer.h.
Referenced by MuonProducer(), and produce().
|
private |
Definition at line 87 of file MuonProducer.h.
Referenced by MuonProducer(), and produce().
|
private |
Definition at line 79 of file MuonProducer.h.
Referenced by MuonProducer(), and produce().
|
private |
Definition at line 70 of file MuonProducer.h.