#include <HICaloCompatibleTrackSelector.h>
Private Types | |
typedef reco::PFCandidateCollection::const_iterator | CI |
typedef math::XYZPoint | Point |
typedef reco::TrackCollection::const_iterator | TI |
Private Member Functions | |
void | matchByDrAllowReuse (const reco::Track &trk, const edm::Handle< CaloTowerCollection > &towers, double &bestdr, double &bestpt) |
double | matchPFCandToTrack (const edm::Handle< PFCandidateCollection > &pfCandidates, unsigned it, double trkPt) |
void | produce (edm::Event &evt, const edm::EventSetup &es) override |
process one event More... | |
bool | selectByPFCands (TI ti, const edm::Handle< TrackCollection > hSrcTrack, const edm::Handle< PFCandidateCollection > pfCandidates, bool isPFThere) |
bool | selectByTowers (TI ti, const edm::Handle< TrackCollection > hSrcTrack, const edm::Handle< CaloTowerCollection > towers, bool isTowerThere) |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
Public Types inherited from edm::ProducerBase | |
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::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
static bool | wantsGlobalLuminosityBlocks () |
static bool | wantsGlobalRuns () |
static bool | wantsStreamLuminosityBlocks () |
static bool | wantsStreamRuns () |
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
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 48 of file HICaloCompatibleTrackSelector.h.
|
private |
Definition at line 58 of file HICaloCompatibleTrackSelector.h.
|
private |
Definition at line 57 of file HICaloCompatibleTrackSelector.h.
|
private |
Definition at line 59 of file HICaloCompatibleTrackSelector.h.
|
explicit |
constructor
Definition at line 31 of file HICaloCompatibleTrackSelector.cc.
References egammaCTFFinalFitWithMaterial_cff::alias, copyExtras_, copyTrajectories_, fCaloComp, fDeltaRTowerMatch, funcCaloComp_, funcDeltaRTowerMatch_, edm::ParameterSet::getParameter(), srcTrackTrajAssoc_, srcTrackTrajs_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
override |
|
private |
Definition at line 359 of file HICaloCompatibleTrackSelector.cc.
References reco::deltaR(), runTauDisplay::dr, reco::LeafCandidate::eta(), mps_fire::i, EnergyCorrector::pt, reco::LeafCandidate::pt(), edm::SortedCollection< T, SORT >::size(), towerPtMin_, and trkEtaMax_.
Referenced by selectByTowers().
|
private |
Definition at line 272 of file HICaloCompatibleTrackSelector.cc.
References reco::PFCandidate::e, reco::PFBlockElement::ECAL, allElectronIsolations_cfi::elements, reco::PFCandidate::elementsInBlocks(), reco::PFCandidate::h, reco::PFBlockElement::HCAL, cuy::ib, edm::Ref< C, T, F >::key(), reco::PFCandidate::mu, reco::PFCandidate::particleId(), passElectrons_, passMuons_, reco::PFBlockElement::TRACK, reco::PFCandidate::trackRef(), and trkMatchPtMin_.
Referenced by selectByPFCands().
|
overrideprivate |
process one event
Definition at line 79 of file HICaloCompatibleTrackSelector.cc.
References edm::AssociationMap< edm::OneToOne< std::vector< Trajectory >, reco::TrackCollection, unsigned short > >::const_iterator, copyExtras_, copyTrajectories_, edm::friendlyname::emptyString(), edm::AssociationMap< Tag >::end(), edm::AssociationMap< Tag >::find(), edm::Event::getByToken(), edm::Event::getRefBeforePut(), mps_fire::i, reco::Track::innerDetId(), reco::Track::innerMomentum(), reco::Track::innerOk(), reco::Track::innerPosition(), reco::Track::innerStateCovariance(), keepAllTracks_, edm::Ref< C, T, F >::key(), LogDebug, match(), eostools::move(), gen::n, reco::Track::outerDetId(), reco::Track::outerMomentum(), reco::Track::outerOk(), reco::Track::outerPosition(), reco::Track::outerStateCovariance(), patMuonMerger_cfi::pfCandidates, edm::Event::put(), reco::TrackBase::qualityByName(), qualityToSet_, reco::Track::recHitsBegin(), reco::Track::recHitsEnd(), reco::Track::residuals(), rHits_, rTrackExtras_, rTracks_, rTrajectories_, reco::Track::seedDirection(), reco::Track::seedRef(), selectByPFCands(), selectByTowers(), selHits_, selTrackExtras_, selTracks_, selTrajs_, selTTAss_, reco::TrackExtraBase::setHits(), reco::TrackExtra::setResiduals(), srcPFCands_, srcTower_, srcTracks_, srcTrackTrajAssoc_, srcTrackTrajs_, trackRefs_, trkMatchPtMin_, and usePFCandMatching_.
|
private |
Definition at line 197 of file HICaloCompatibleTrackSelector.cc.
References Exception, fCaloComp, matchPFCandToTrack(), minimumQuality_, reco::TrackBase::pt(), reco::TrackBase::quality(), reco::TrackBase::qualityByName(), qualityToMatch_, qualityToSkip_, trkCompPtMin_, and usePFCandMatching_.
Referenced by produce().
|
private |
Definition at line 244 of file HICaloCompatibleTrackSelector.cc.
References fDeltaRTowerMatch, matchByDrAllowReuse(), reco::TrackBase::pt(), reco::TrackBase::quality(), reco::TrackBase::qualityByName(), qualityToMatch_, qualityToSkip_, trkCompPtMin_, and trkMatchPtMin_.
Referenced by produce().
|
private |
Definition at line 79 of file HICaloCompatibleTrackSelector.h.
|
private |
copy only the tracks, not extras and rechits (for AOD)
Definition at line 89 of file HICaloCompatibleTrackSelector.h.
Referenced by HICaloCompatibleTrackSelector(), and produce().
|
private |
copy also trajectories and trajectory->track associations
Definition at line 91 of file HICaloCompatibleTrackSelector.h.
Referenced by HICaloCompatibleTrackSelector(), and produce().
|
private |
Definition at line 120 of file HICaloCompatibleTrackSelector.h.
Referenced by HICaloCompatibleTrackSelector(), and selectByPFCands().
|
private |
Definition at line 120 of file HICaloCompatibleTrackSelector.h.
Referenced by HICaloCompatibleTrackSelector(), and selectByTowers().
|
private |
Definition at line 104 of file HICaloCompatibleTrackSelector.h.
Referenced by HICaloCompatibleTrackSelector().
|
private |
Definition at line 103 of file HICaloCompatibleTrackSelector.h.
Referenced by HICaloCompatibleTrackSelector().
|
private |
Definition at line 87 of file HICaloCompatibleTrackSelector.h.
Referenced by produce().
|
private |
Definition at line 85 of file HICaloCompatibleTrackSelector.h.
|
private |
Definition at line 96 of file HICaloCompatibleTrackSelector.h.
Referenced by selectByPFCands().
|
private |
Definition at line 100 of file HICaloCompatibleTrackSelector.h.
Referenced by matchPFCandToTrack().
|
private |
Definition at line 99 of file HICaloCompatibleTrackSelector.h.
Referenced by matchPFCandToTrack().
|
private |
Definition at line 95 of file HICaloCompatibleTrackSelector.h.
Referenced by selectByPFCands(), and selectByTowers().
|
private |
Definition at line 93 of file HICaloCompatibleTrackSelector.h.
Referenced by produce().
|
private |
Definition at line 94 of file HICaloCompatibleTrackSelector.h.
Referenced by selectByPFCands(), and selectByTowers().
|
private |
Definition at line 97 of file HICaloCompatibleTrackSelector.h.
|
private |
Definition at line 115 of file HICaloCompatibleTrackSelector.h.
Referenced by produce().
|
private |
Definition at line 114 of file HICaloCompatibleTrackSelector.h.
Referenced by produce().
|
private |
Definition at line 113 of file HICaloCompatibleTrackSelector.h.
Referenced by produce().
|
private |
Definition at line 116 of file HICaloCompatibleTrackSelector.h.
Referenced by produce().
|
private |
Definition at line 109 of file HICaloCompatibleTrackSelector.h.
Referenced by produce().
|
private |
Definition at line 108 of file HICaloCompatibleTrackSelector.h.
Referenced by produce().
|
private |
|
private |
Definition at line 111 of file HICaloCompatibleTrackSelector.h.
|
private |
Definition at line 110 of file HICaloCompatibleTrackSelector.h.
Referenced by produce().
|
private |
Definition at line 112 of file HICaloCompatibleTrackSelector.h.
Referenced by produce().
|
private |
Definition at line 73 of file HICaloCompatibleTrackSelector.h.
Referenced by produce().
|
private |
Definition at line 74 of file HICaloCompatibleTrackSelector.h.
Referenced by produce().
|
private |
source collection label
Definition at line 72 of file HICaloCompatibleTrackSelector.h.
Referenced by produce().
|
private |
Definition at line 76 of file HICaloCompatibleTrackSelector.h.
Referenced by HICaloCompatibleTrackSelector(), and produce().
|
private |
Definition at line 75 of file HICaloCompatibleTrackSelector.h.
Referenced by HICaloCompatibleTrackSelector(), and produce().
|
private |
Definition at line 84 of file HICaloCompatibleTrackSelector.h.
Referenced by matchByDrAllowReuse().
|
private |
Definition at line 117 of file HICaloCompatibleTrackSelector.h.
Referenced by produce().
|
private |
Definition at line 82 of file HICaloCompatibleTrackSelector.h.
Referenced by selectByPFCands(), and selectByTowers().
|
private |
Definition at line 83 of file HICaloCompatibleTrackSelector.h.
Referenced by matchByDrAllowReuse().
|
private |
Definition at line 81 of file HICaloCompatibleTrackSelector.h.
Referenced by matchPFCandToTrack(), produce(), and selectByTowers().
|
private |
Definition at line 80 of file HICaloCompatibleTrackSelector.h.
Referenced by produce(), and selectByPFCands().