Go to the documentation of this file. 1 #ifndef PhysicsTools_PatAlgos_interface_VertexingHelper_h
2 #define PhysicsTools_PatAlgos_interface_VertexingHelper_h
34 if (iConfig.
existsAs<
double>(
"deltaZ"))
36 if (iConfig.
existsAs<
double>(
"deltaR"))
38 if (iConfig.
existsAs<
double>(
"sigmasZ"))
40 if (iConfig.
existsAs<
double>(
"sigmasR"))
67 template <
typename AnyCandRef>
100 template <
typename AnyCandRef>
106 return associate(*
cand);
edm::EDGetTokenT< edm::ValueMap< pat::VertexAssociation > > vertexAssociationsToken_
edm::Handle< reco::VertexCollection > vertexHandle_
edm::EDGetTokenT< reco::VertexCollection > verticesToken_
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
bool useTracks_
use tracks inside candidates
static pat::VertexAssociationSelector make(const edm::ParameterSet &iConfig)
edm::Handle< edm::ValueMap< pat::VertexAssociation > > vertexAssoMap_
reco::TrackBaseRef getTrack_(const reco::Candidate &c) const
Get out the track from the Candidate / RecoCandidate / PFCandidate.
bool playback_
true if it's just reading the associations from the event
pat::VertexAssociationSelector assoSelector_
selector of associations
Produces and/or checks pat::VertexAssociation's.
pat::VertexAssociation operator()(const AnyCandRef &) const
void newEvent(const edm::Event &event)
To be called for each new event, reads in the vertex collection.
edm::ESHandle< TransientTrackBuilder > ttBuilder_
float dZ
cuts on Z and transverse distance from the vertex, absolute values or significances
Analysis-level structure for vertex-related information.
bool enabled() const
returns true if this was given a non dummy configuration
pat::VertexAssociation associate(const reco::Candidate &) const
T getParameter(std::string const &) const
bool enabled_
true if it has non null configuration