#include <PrimaryVertexSorter.h>
Public Types | |
typedef edm::Association< reco::VertexCollection > | CandToVertex |
typedef edm::ValueMap< int > | CandToVertexQuality |
typedef ParticlesCollection | PFCollection |
typedef edm::ValueMap< float > | VertexScore |
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 Member Functions | |
PrimaryVertexSorter (const edm::ParameterSet &) | |
void | produce (edm::Event &, const edm::EventSetup &) override |
std::vector< reco::Vertex > | sortedList (const reco::VertexCollection &primaryVertex) const |
~PrimaryVertexSorter () override | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndRuns () const final |
Private Member Functions | |
void | doConsumesForTiming (const edm::ParameterSet &iConfig) |
template<> | |
void | doConsumesForTiming (const edm::ParameterSet &iConfig) |
template<> | |
void | doConsumesForTiming (const edm::ParameterSet &iConfig) |
bool | needsProductsForTiming () |
template<> | |
bool | needsProductsForTiming () |
template<> | |
bool | needsProductsForTiming () |
template<> | |
std::pair< int, PrimaryVertexAssignment::Quality > | runAlgo (const reco::VertexCollection &vertices, const reco::PFCandidate &pf, const edm::ValueMap< float > *trackTimeTag, const edm::ValueMap< float > *trackTimeResoTag, const edm::View< reco::Candidate > &jets, const TransientTrackBuilder &builder) |
template<> | |
std::pair< int, PrimaryVertexAssignment::Quality > | runAlgo (const reco::VertexCollection &vertices, const reco::RecoChargedRefCandidate &pf, const edm::ValueMap< float > *trackTimeTag, const edm::ValueMap< float > *trackTimeResoTag, const edm::View< reco::Candidate > &jets, const TransientTrackBuilder &builder) |
std::pair< int, PrimaryVertexAssignment::Quality > | runAlgo (const reco::VertexCollection &vertices, const typename ParticlesCollection::value_type &pf, const edm::ValueMap< float > *trackTimeTag, const edm::ValueMap< float > *trackTimeResoTag, const edm::View< reco::Candidate > &jets, const TransientTrackBuilder &builder) |
Private Attributes | |
PrimaryVertexAssignment | assignmentAlgo_ |
bool | produceOriginalMapping_ |
bool | producePFNoPileUp_ |
bool | producePFPileUp_ |
bool | produceSortedVertices_ |
int | qualityCut_ |
PrimaryVertexSorting | sortingAlgo_ |
edm::EDGetTokenT< PFCollection > | tokenCandidates_ |
Candidates to be analyzed. More... | |
edm::EDGetTokenT< edm::View< reco::Candidate > > | tokenJets_ |
edm::EDGetTokenT< edm::ValueMap< float > > | tokenTrackTimeResoTag_ |
edm::EDGetTokenT< edm::ValueMap< float > > | tokenTrackTimeTag_ |
edm::EDGetTokenT< reco::VertexCollection > | tokenVertices_ |
vertices More... | |
bool | useMET_ |
bool | useTiming_ |
class to sort VertexCollection in decreasing order of the sum of the squared track pT's
Definition at line 31 of file PrimaryVertexSorter.h.
typedef edm::Association<reco::VertexCollection> PrimaryVertexSorter< ParticlesCollection >::CandToVertex |
Definition at line 33 of file PrimaryVertexSorter.h.
typedef edm::ValueMap<int> PrimaryVertexSorter< ParticlesCollection >::CandToVertexQuality |
Definition at line 34 of file PrimaryVertexSorter.h.
typedef ParticlesCollection PrimaryVertexSorter< ParticlesCollection >::PFCollection |
Definition at line 37 of file PrimaryVertexSorter.h.
typedef edm::ValueMap<float> PrimaryVertexSorter< ParticlesCollection >::VertexScore |
Definition at line 35 of file PrimaryVertexSorter.h.
|
explicit |
Definition at line 86 of file PrimaryVertexSorter.h.
References PrimaryVertexSorter< ParticlesCollection >::doConsumesForTiming(), PrimaryVertexSorter< ParticlesCollection >::produceOriginalMapping_, PrimaryVertexSorter< ParticlesCollection >::producePFNoPileUp_, PrimaryVertexSorter< ParticlesCollection >::producePFPileUp_, PrimaryVertexSorter< ParticlesCollection >::produceSortedVertices_, and PrimaryVertexSorter< ParticlesCollection >::useTiming_.
|
inlineoverride |
Definition at line 41 of file PrimaryVertexSorter.h.
|
private |
|
private |
Definition at line 304 of file PrimaryVertexSorter.h.
References edm::ParameterSet::getParameter(), PrimaryVertexSorter< ParticlesCollection >::tokenTrackTimeResoTag_, and PrimaryVertexSorter< ParticlesCollection >::tokenTrackTimeTag_.
|
private |
Definition at line 311 of file PrimaryVertexSorter.h.
|
private |
Referenced by PrimaryVertexSorter< ParticlesCollection >::produce().
|
private |
Definition at line 314 of file PrimaryVertexSorter.h.
|
private |
Definition at line 319 of file PrimaryVertexSorter.h.
|
override |
Definition at line 134 of file PrimaryVertexSorter.h.
References edm::helper::Filler< Map >::fill(), edm::EventSetup::get(), get, mps_fire::i, charmTagsComputerCvsB_cfi::idx, iEvent, edm::helper::Filler< Map >::insert(), singleTopDQM_cfi::jets, eostools::move(), PrimaryVertexSorter< ParticlesCollection >::needsProductsForTiming(), ecalTrigSettings_cff::particles, packedPFCandidateRefMixer_cfi::pf, PrimaryVertexSorter< ParticlesCollection >::produceOriginalMapping_, PrimaryVertexSorter< ParticlesCollection >::producePFNoPileUp_, PrimaryVertexSorter< ParticlesCollection >::producePFPileUp_, PrimaryVertexSorter< ParticlesCollection >::produceSortedVertices_, edm::Handle< T >::product(), MetAnalyzer::pv(), PrimaryVertexSorter< ParticlesCollection >::qualityCut_, PrimaryVertexSorter< ParticlesCollection >::runAlgo(), alignCSCRings::s, PrimaryVertexSorting::score(), PrimaryVertexSorter< ParticlesCollection >::sortingAlgo_, PrimaryVertexSorter< ParticlesCollection >::tokenCandidates_, PrimaryVertexSorter< ParticlesCollection >::tokenJets_, PrimaryVertexSorter< ParticlesCollection >::tokenTrackTimeResoTag_, PrimaryVertexSorter< ParticlesCollection >::tokenTrackTimeTag_, PrimaryVertexSorter< ParticlesCollection >::tokenVertices_, offlinePrimaryVertices_cfi::trackTimeResoTag, offlinePrimaryVertices_cfi::trackTimeTag, PrimaryVertexSorter< ParticlesCollection >::useMET_, PrimaryVertexSorter< ParticlesCollection >::useTiming_, and pwdgSkimBPark_cfi::vertices.
|
private |
Definition at line 335 of file PrimaryVertexSorter.h.
References PrimaryVertexSorter< ParticlesCollection >::assignmentAlgo_, PrimaryVertexAssignment::chargedHadronVertex(), singleTopDQM_cfi::jets, packedPFCandidateRefMixer_cfi::pf, and pwdgSkimBPark_cfi::vertices.
|
private |
Definition at line 325 of file PrimaryVertexSorter.h.
References PrimaryVertexSorter< ParticlesCollection >::assignmentAlgo_, PrimaryVertexAssignment::chargedHadronVertex(), singleTopDQM_cfi::jets, packedPFCandidateRefMixer_cfi::pf, offlinePrimaryVertices_cfi::trackTimeResoTag, offlinePrimaryVertices_cfi::trackTimeTag, and pwdgSkimBPark_cfi::vertices.
|
private |
Referenced by PrimaryVertexSorter< ParticlesCollection >::produce().
VertexCollection PrimaryVertexSorter< ParticlesCollection >::sortedList | ( | const reco::VertexCollection & | primaryVertex | ) | const |
|
private |
Definition at line 46 of file PrimaryVertexSorter.h.
Referenced by PrimaryVertexSorter< ParticlesCollection >::runAlgo().
|
private |
Definition at line 58 of file PrimaryVertexSorter.h.
Referenced by PrimaryVertexSorter< ParticlesCollection >::PrimaryVertexSorter(), and PrimaryVertexSorter< ParticlesCollection >::produce().
|
private |
Definition at line 61 of file PrimaryVertexSorter.h.
Referenced by PrimaryVertexSorter< ParticlesCollection >::PrimaryVertexSorter(), and PrimaryVertexSorter< ParticlesCollection >::produce().
|
private |
Definition at line 60 of file PrimaryVertexSorter.h.
Referenced by PrimaryVertexSorter< ParticlesCollection >::PrimaryVertexSorter(), and PrimaryVertexSorter< ParticlesCollection >::produce().
|
private |
Definition at line 59 of file PrimaryVertexSorter.h.
Referenced by PrimaryVertexSorter< ParticlesCollection >::PrimaryVertexSorter(), and PrimaryVertexSorter< ParticlesCollection >::produce().
|
private |
Definition at line 62 of file PrimaryVertexSorter.h.
Referenced by PrimaryVertexSorter< ParticlesCollection >::produce().
|
private |
Definition at line 47 of file PrimaryVertexSorter.h.
Referenced by PrimaryVertexSorter< ParticlesCollection >::produce().
|
private |
Candidates to be analyzed.
Definition at line 50 of file PrimaryVertexSorter.h.
Referenced by PrimaryVertexSorter< ParticlesCollection >::produce().
|
private |
Definition at line 54 of file PrimaryVertexSorter.h.
Referenced by PrimaryVertexSorter< ParticlesCollection >::produce().
|
private |
Definition at line 56 of file PrimaryVertexSorter.h.
Referenced by PrimaryVertexSorter< ParticlesCollection >::doConsumesForTiming(), and PrimaryVertexSorter< ParticlesCollection >::produce().
|
private |
Definition at line 55 of file PrimaryVertexSorter.h.
Referenced by PrimaryVertexSorter< ParticlesCollection >::doConsumesForTiming(), and PrimaryVertexSorter< ParticlesCollection >::produce().
|
private |
vertices
Definition at line 53 of file PrimaryVertexSorter.h.
Referenced by PrimaryVertexSorter< ParticlesCollection >::produce().
|
private |
Definition at line 63 of file PrimaryVertexSorter.h.
Referenced by PrimaryVertexSorter< ParticlesCollection >::produce().
|
private |
Definition at line 64 of file PrimaryVertexSorter.h.
Referenced by PrimaryVertexSorter< ParticlesCollection >::PrimaryVertexSorter(), and PrimaryVertexSorter< ParticlesCollection >::produce().