#include <PrimaryVertexSorter.h>
Public Member Functions | |
PrimaryVertexSorter (const edm::ParameterSet &) | |
virtual void | produce (edm::Event &, const edm::EventSetup &) override |
std::vector< reco::Vertex > | sortedList (const reco::VertexCollection &primaryVertex) const |
~PrimaryVertexSorter () | |
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 | |
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 () |
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) |
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) |
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) |
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_ |
Additional Inherited Members | |
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) |
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 34 of file PrimaryVertexSorter.h.
typedef edm::ValueMap<int> PrimaryVertexSorter< ParticlesCollection >::CandToVertexQuality |
Definition at line 35 of file PrimaryVertexSorter.h.
typedef ParticlesCollection PrimaryVertexSorter< ParticlesCollection >::PFCollection |
Definition at line 38 of file PrimaryVertexSorter.h.
typedef edm::ValueMap<float> PrimaryVertexSorter< ParticlesCollection >::VertexScore |
Definition at line 36 of file PrimaryVertexSorter.h.
|
explicit |
Definition at line 88 of file PrimaryVertexSorter.h.
References PrimaryVertexSorter< ParticlesCollection >::doConsumesForTiming(), PrimaryVertexSorter< ParticlesCollection >::produceOriginalMapping_, PrimaryVertexSorter< ParticlesCollection >::producePFNoPileUp_, PrimaryVertexSorter< ParticlesCollection >::producePFPileUp_, PrimaryVertexSorter< ParticlesCollection >::produceSortedVertices_, and PrimaryVertexSorter< ParticlesCollection >::useTiming_.
|
inline |
Definition at line 42 of file PrimaryVertexSorter.h.
References PrimaryVertexSorter< ParticlesCollection >::produce().
|
private |
|
private |
Definition at line 323 of file PrimaryVertexSorter.h.
References edm::ParameterSet::getParameter(), PrimaryVertexSorter< ParticlesCollection >::tokenTrackTimeResoTag_, and PrimaryVertexSorter< ParticlesCollection >::tokenTrackTimeTag_.
|
private |
Definition at line 330 of file PrimaryVertexSorter.h.
|
private |
Referenced by PrimaryVertexSorter< ParticlesCollection >::produce().
|
private |
Definition at line 335 of file PrimaryVertexSorter.h.
|
private |
Definition at line 341 of file PrimaryVertexSorter.h.
|
overridevirtual |
Definition at line 142 of file PrimaryVertexSorter.h.
References edm::helper::Filler< Map >::fill(), edm::EventSetup::get(), edm::Event::getByToken(), mps_fire::i, training_settings::idx, edm::helper::Filler< Map >::insert(), fwrapper::jets, eostools::move(), PrimaryVertexSorter< ParticlesCollection >::needsProductsForTiming(), lumidbDDL::newToOld(), lumidbDDL::oldToNew(), HadronAndPartonSelector_cfi::particles, packedPFCandidateRefMixer_cfi::pf, PrimaryVertexSorter< ParticlesCollection >::produceOriginalMapping_, PrimaryVertexSorter< ParticlesCollection >::producePFNoPileUp_, PrimaryVertexSorter< ParticlesCollection >::producePFPileUp_, PrimaryVertexSorter< ParticlesCollection >::produceSortedVertices_, edm::Handle< T >::product(), edm::Event::put(), 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_, RecoVertex_cff::trackTimeResoTag, RecoVertex_cff::trackTimeTag, PrimaryVertexSorter< ParticlesCollection >::useMET_, PrimaryVertexSorter< ParticlesCollection >::useTiming_, and ecalDrivenElectronSeedsParameters_cff::vertices.
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), HTMLExport.HTMLExportStatic::export(), and PrimaryVertexSorter< ParticlesCollection >::~PrimaryVertexSorter().
|
private |
Referenced by PrimaryVertexSorter< ParticlesCollection >::produce().
|
private |
Definition at line 348 of file PrimaryVertexSorter.h.
References PrimaryVertexSorter< ParticlesCollection >::assignmentAlgo_, and PrimaryVertexAssignment::chargedHadronVertex().
|
private |
Definition at line 356 of file PrimaryVertexSorter.h.
References PrimaryVertexSorter< ParticlesCollection >::assignmentAlgo_, and PrimaryVertexAssignment::chargedHadronVertex().
VertexCollection PrimaryVertexSorter< ParticlesCollection >::sortedList | ( | const reco::VertexCollection & | primaryVertex | ) | const |
Definition at line 8 of file PrimaryVertexSorter.cc.
Referenced by QualityCutsAnalyzer::LoopOverJetTracksAssociation().
|
private |
Definition at line 48 of file PrimaryVertexSorter.h.
Referenced by PrimaryVertexSorter< ParticlesCollection >::runAlgo().
|
private |
Definition at line 60 of file PrimaryVertexSorter.h.
Referenced by PrimaryVertexSorter< ParticlesCollection >::PrimaryVertexSorter(), and PrimaryVertexSorter< ParticlesCollection >::produce().
|
private |
Definition at line 63 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 >::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 64 of file PrimaryVertexSorter.h.
Referenced by PrimaryVertexSorter< ParticlesCollection >::produce().
|
private |
Definition at line 49 of file PrimaryVertexSorter.h.
Referenced by PrimaryVertexSorter< ParticlesCollection >::produce().
|
private |
Candidates to be analyzed.
Definition at line 52 of file PrimaryVertexSorter.h.
Referenced by PrimaryVertexSorter< ParticlesCollection >::produce().
|
private |
Definition at line 56 of file PrimaryVertexSorter.h.
Referenced by PrimaryVertexSorter< ParticlesCollection >::produce().
|
private |
Definition at line 58 of file PrimaryVertexSorter.h.
Referenced by PrimaryVertexSorter< ParticlesCollection >::doConsumesForTiming(), and PrimaryVertexSorter< ParticlesCollection >::produce().
|
private |
Definition at line 57 of file PrimaryVertexSorter.h.
Referenced by PrimaryVertexSorter< ParticlesCollection >::doConsumesForTiming(), and PrimaryVertexSorter< ParticlesCollection >::produce().
|
private |
vertices
Definition at line 55 of file PrimaryVertexSorter.h.
Referenced by PrimaryVertexSorter< ParticlesCollection >::produce().
|
private |
Definition at line 65 of file PrimaryVertexSorter.h.
Referenced by PrimaryVertexSorter< ParticlesCollection >::produce().
|
private |
Definition at line 66 of file PrimaryVertexSorter.h.
Referenced by PrimaryVertexSorter< ParticlesCollection >::PrimaryVertexSorter(), and PrimaryVertexSorter< ParticlesCollection >::produce().