Merges reco::CaloMuons, reco::Muons and optionally reco::Tracks avoiding innerTrack duplications in a single reco::Muon collection. More...
#include "RecoMuon/MuonIdentification/plugins/CaloMuonMerger.cc"
Private Attributes | |
edm::InputTag | caloMuons_ |
StringCutObjectSelector < reco::CaloMuon, false > | caloMuonsCut_ |
edm::EDGetTokenT< std::vector < reco::CaloMuon > > | caloMuonToken_ |
bool | mergeCaloMuons_ |
bool | mergeTracks_ |
double | minCaloCompatibility_ |
edm::InputTag | muons_ |
StringCutObjectSelector < reco::Muon, false > | muonsCut_ |
edm::EDGetTokenT< std::vector < reco::Muon > > | muonToken_ |
edm::InputTag | tracks_ |
StringCutObjectSelector < reco::TrackRef, false > | tracksCut_ |
edm::EDGetTokenT< std::vector < reco::Track > > | trackToken_ |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
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) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
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) |
Merges reco::CaloMuons, reco::Muons and optionally reco::Tracks avoiding innerTrack duplications in a single reco::Muon collection.
Definition at line 23 of file CaloMuonMerger.cc.
|
explicit |
Definition at line 50 of file CaloMuonMerger.cc.
References caloMuons_, caloMuonToken_, muons_, muonToken_, tracks_, and trackToken_.
|
inlinevirtual |
Definition at line 26 of file CaloMuonMerger.cc.
|
overridevirtual |
Implements edm::EDProducer.
Definition at line 68 of file CaloMuonMerger.cc.
References reco::Muon::caloCompatibility(), reco::Muon::CaloMuon, caloMuonsCut_, caloMuonToken_, relval_parameters_module::energy, reco::LeafCandidate::eta(), edm::hlt::Exception, edm::Event::getByToken(), i, reco::Muon::isCaloCompatibilityValid(), reco::isMuon(), edm::Ref< C, T, F >::isNonnull(), mergeCaloMuons_, mergeTracks_, minCaloCompatibility_, RPCpg::mu, trackingTruthProducerFastSim_cfi::muon, patZpeak::muons, muonsCut_, muonToken_, dbtoconf::out, p4, reco::LeafCandidate::pt(), edm::Event::put(), reco::Muon::setCalEnergy(), reco::Muon::setCaloCompatibility(), reco::Muon::setInnerTrack(), reco::Muon::setType(), mathSSE::sqrt(), reco::Muon::track(), testEve_cfg::tracks, tracksCut_, trackToken_, and reco::Muon::type().
|
private |
Definition at line 34 of file CaloMuonMerger.cc.
Referenced by CaloMuonMerger().
|
private |
Definition at line 35 of file CaloMuonMerger.cc.
Referenced by produce().
|
private |
Definition at line 42 of file CaloMuonMerger.cc.
Referenced by CaloMuonMerger(), and produce().
|
private |
Definition at line 33 of file CaloMuonMerger.cc.
Referenced by produce().
|
private |
Definition at line 37 of file CaloMuonMerger.cc.
Referenced by produce().
|
private |
Definition at line 36 of file CaloMuonMerger.cc.
Referenced by produce().
|
private |
Definition at line 31 of file CaloMuonMerger.cc.
Referenced by CaloMuonMerger().
|
private |
Definition at line 32 of file CaloMuonMerger.cc.
Referenced by produce().
|
private |
Definition at line 41 of file CaloMuonMerger.cc.
Referenced by CaloMuonMerger(), and produce().
|
private |
Definition at line 38 of file CaloMuonMerger.cc.
Referenced by CaloMuonMerger().
|
private |
Definition at line 39 of file CaloMuonMerger.cc.
Referenced by produce().
|
private |
Definition at line 43 of file CaloMuonMerger.cc.
Referenced by CaloMuonMerger(), and produce().