#include <HICaloCompatibleTrackSelector.h>
Public Member Functions | |
HICaloCompatibleTrackSelector (const edm::ParameterSet &cfg) | |
constructor More... | |
virtual | ~HICaloCompatibleTrackSelector () |
destructor More... | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
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 | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
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) |
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 | |
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) |
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 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 HLT_25ns14e33_v1_cff::alias, copyExtras_, copyTrajectories_, fCaloComp, fDeltaRTowerMatch, funcCaloComp_, funcDeltaRTowerMatch_, edm::ParameterSet::getParameter(), srcTrackTrajAssoc_, srcTrackTrajs_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
virtual |
|
private |
Definition at line 359 of file HICaloCompatibleTrackSelector.cc.
References reco::deltaR(), reco::LeafCandidate::eta(), i, EnergyCorrector::pt, reco::LeafCandidate::pt(), towerPtMin_, and trkEtaMax_.
Referenced by selectByTowers().
|
private |
Definition at line 272 of file HICaloCompatibleTrackSelector.cc.
References reco::PFCandidate::e, reco::PFBlockElement::ECAL, bookConverter::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().
|
privatevirtual |
process one event
Implements edm::EDProducer.
Definition at line 79 of file HICaloCompatibleTrackSelector.cc.
References edm::AssociationMap< edm::OneToOne< std::vector< Trajectory >, reco::TrackCollection, unsigned short > >::const_iterator, copyExtras_, copyTrajectories_, cond::rpcobimon::current, edm::friendlyname::emptyString(), edm::Event::getByToken(), edm::Event::getRefBeforePut(), 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(), gen::n, reco::Track::outerDetId(), reco::Track::outerMomentum(), reco::Track::outerOk(), reco::Track::outerPosition(), reco::Track::outerStateCovariance(), reco::tau::pfCandidates(), edm::Event::put(), reco::TrackBase::qualityByName(), qualityToSet_, reco::Track::recHitsBegin(), reco::Track::recHitsEnd(), dt_dqm_sourceclient_common_cff::reco, 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_, HLT_25ns14e33_v1_cff::towers, 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().