Public Member Functions | |
MuonsFromRefitTracksProducer (const edm::ParameterSet &) | |
~MuonsFromRefitTracksProducer () | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
Public Member Functions inherited from edm::stream::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducerBase () |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
void | resolvePutIndicies (BranchType iBranchType, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel) |
virtual | ~ProducerBase () noexcept(false) |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
void | convertCurrentProcessAlias (std::string const &processName) |
Convert "@currentProcess" in InputTag process names to the actual current process name. More... | |
EDConsumerBase () | |
EDConsumerBase (EDConsumerBase const &)=delete | |
EDConsumerBase (EDConsumerBase &&)=default | |
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
virtual | ~EDConsumerBase () noexcept(false) |
Private Member Functions | |
reco::Muon * | cloneAndSwitchTrack (const reco::Muon &muon, const reco::Muon::MuonTrackTypePair &newTrack) const |
virtual void | produce (edm::Event &, const edm::EventSetup &) override |
bool | storeMatchMaps (const edm::Event &event) |
Private Attributes | |
bool | fromCocktail |
bool | fromGlobalTrack |
bool | fromSigmaSwitch |
bool | fromTeVRefit |
bool | fromTMR |
bool | fromTrackerTrack |
double | nSigmaSwitch |
double | ptThreshold |
edm::InputTag | src |
edm::EDGetTokenT< edm::View< reco::Muon > > | srcToken_ |
std::string | tevMuonTracks |
double | TMRcut |
edm::Handle< reco::TrackToTrackMap > | trackMap |
edm::Handle< reco::TrackToTrackMap > | trackMapDefault |
edm::EDGetTokenT< reco::TrackToTrackMap > | trackMapDefaultToken_ |
edm::Handle< reco::TrackToTrackMap > | trackMapFirstHit |
edm::EDGetTokenT< reco::TrackToTrackMap > | trackMapFirstHitToken_ |
edm::Handle< reco::TrackToTrackMap > | trackMapPicky |
edm::EDGetTokenT< reco::TrackToTrackMap > | trackMapPickyToken_ |
edm::EDGetTokenT< reco::TrackToTrackMap > | trackMapToken_ |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
typedef CacheContexts< T... > | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T... > | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Public Types inherited from edm::stream::EDProducerBase | |
typedef EDProducerAdaptorBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::stream::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
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) |
Definition at line 66 of file MuonsFromRefitTracksProducer.cc.
|
explicit |
Definition at line 152 of file MuonsFromRefitTracksProducer.cc.
References fromTeVRefit, src, srcToken_, tevMuonTracks, trackMapDefaultToken_, trackMapFirstHitToken_, trackMapPickyToken_, and trackMapToken_.
|
inline |
Definition at line 69 of file MuonsFromRefitTracksProducer.cc.
References cloneAndSwitchTrack(), produce(), and storeMatchMaps().
|
private |
Definition at line 193 of file MuonsFromRefitTracksProducer.cc.
References reco::Muon::clone(), reco::Muon::innerTrack(), RPCpg::mu, reco::Muon::outerTrack(), AlCaHLTBitMon_ParallelJobs::p, p4, reco::Muon::setBestTrack(), reco::LeafCandidate::setCharge(), reco::Muon::setGlobalTrack(), reco::Muon::setInnerTrack(), reco::Muon::setOuterTrack(), reco::LeafCandidate::setP4(), reco::LeafCandidate::setVertex(), mathSSE::sqrt(), and badGlobalMuonTaggersAOD_cff::vtx.
Referenced by produce(), and ~MuonsFromRefitTracksProducer().
|
overrideprivatevirtual |
Definition at line 219 of file MuonsFromRefitTracksProducer.cc.
References edm::ViewBase::clone(), cloneAndSwitchTrack(), reco::Muon::CombinedTrack, edm::AssociationMap< edm::OneToOne< reco::TrackCollection, reco::TrackCollection > >::const_iterator, DEFINE_FWK_MODULE, edm::AssociationMap< Tag >::end(), edm::HandleBase::failedToGet(), edm::AssociationMap< Tag >::find(), fromCocktail, fromGlobalTrack, fromSigmaSwitch, fromTeVRefit, fromTMR, fromTrackerTrack, reco::Muon::InnerTrack, plotBeamSpotDB::last, eostools::move(), metsig::muon, electronCleaner_cfi::muons, nSigmaSwitch, convertSQLiteXML::ok, ptThreshold, reco::Muon::setGlobalTrack(), reco::Muon::setInnerTrack(), reco::Muon::setOuterTrack(), sigmaSwitch(), src, srcToken_, storeMatchMaps(), tevMuonTracks, muon::tevOptimized(), tevOptimizedTMR(), TMRcut, trackMap, and trackMapFirstHit.
Referenced by ~MuonsFromRefitTracksProducer().
|
private |
Definition at line 179 of file MuonsFromRefitTracksProducer.cc.
References edm::HandleBase::failedToGet(), fromCocktail, fromTMR, trackMap, trackMapDefault, trackMapDefaultToken_, trackMapFirstHit, trackMapFirstHitToken_, trackMapPicky, trackMapPickyToken_, and trackMapToken_.
Referenced by produce(), and ~MuonsFromRefitTracksProducer().
|
private |
Definition at line 110 of file MuonsFromRefitTracksProducer.cc.
Referenced by produce(), and storeMatchMaps().
|
private |
Definition at line 96 of file MuonsFromRefitTracksProducer.cc.
Referenced by produce().
|
private |
Definition at line 121 of file MuonsFromRefitTracksProducer.cc.
Referenced by produce().
|
private |
Definition at line 100 of file MuonsFromRefitTracksProducer.cc.
Referenced by MuonsFromRefitTracksProducer(), and produce().
|
private |
Definition at line 114 of file MuonsFromRefitTracksProducer.cc.
Referenced by produce(), and storeMatchMaps().
|
private |
Definition at line 90 of file MuonsFromRefitTracksProducer.cc.
Referenced by produce().
|
private |
Definition at line 124 of file MuonsFromRefitTracksProducer.cc.
Referenced by produce().
|
private |
Definition at line 127 of file MuonsFromRefitTracksProducer.cc.
Referenced by produce().
|
private |
Definition at line 84 of file MuonsFromRefitTracksProducer.cc.
Referenced by MuonsFromRefitTracksProducer(), and produce().
|
private |
Definition at line 142 of file MuonsFromRefitTracksProducer.cc.
Referenced by MuonsFromRefitTracksProducer(), and produce().
|
private |
Definition at line 105 of file MuonsFromRefitTracksProducer.cc.
Referenced by MuonsFromRefitTracksProducer(), and produce().
|
private |
Definition at line 117 of file MuonsFromRefitTracksProducer.cc.
Referenced by produce().
|
private |
Definition at line 132 of file MuonsFromRefitTracksProducer.cc.
Referenced by produce(), and storeMatchMaps().
|
private |
Definition at line 135 of file MuonsFromRefitTracksProducer.cc.
Referenced by storeMatchMaps().
|
private |
Definition at line 144 of file MuonsFromRefitTracksProducer.cc.
Referenced by MuonsFromRefitTracksProducer(), and storeMatchMaps().
|
private |
Definition at line 136 of file MuonsFromRefitTracksProducer.cc.
Referenced by produce(), and storeMatchMaps().
|
private |
Definition at line 145 of file MuonsFromRefitTracksProducer.cc.
Referenced by MuonsFromRefitTracksProducer(), and storeMatchMaps().
|
private |
Definition at line 137 of file MuonsFromRefitTracksProducer.cc.
Referenced by storeMatchMaps().
|
private |
Definition at line 146 of file MuonsFromRefitTracksProducer.cc.
Referenced by MuonsFromRefitTracksProducer(), and storeMatchMaps().
|
private |
Definition at line 143 of file MuonsFromRefitTracksProducer.cc.
Referenced by MuonsFromRefitTracksProducer(), and storeMatchMaps().