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