CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RecoTauVertexAssociator.h
Go to the documentation of this file.
1 #ifndef RecoTauTag_RecoTau_RecoTauVertexAssociator_h
2 #define RecoTauTag_RecoTau_RecoTauVertexAssociator_h
3 
4 /* RecoTauVertexAssociator
5  *
6  * Authors: Evan K. Friis, Christian Veelken, UC Davis
7  * Michalis Bachtis, UW Madison
8  *
9  * The associatedVertex member function retrieves the vertex from the event
10  * associated to a given tau. This class is configured using a cms.PSet.
11  *
12  * The required arguments are:
13  * o primaryVertexSrc - InputTag with the vertex collection
14  * o useClosestPV - Use the "closest to lead track in z" to find the vertex.
15  *
16  * The setEvent method must be called at least once per event.
17  *
18  */
19 
26 
29 
31 
32 #include <map>
33 
34 // Forward declarations
35 namespace edm {
36  class ParameterSet;
37  class Event;
38 }
39 
40 namespace reco {
41  class PFTau;
42  class PFJet;
43 }
44 
45 namespace reco { namespace tau {
46 
48  public:
49  enum Algorithm {
54  };
55 
57  virtual ~RecoTauVertexAssociator();
65  void setEvent(const edm::Event& evt);
67 
68  private:
72  std::vector<reco::VertexRef> selectedVertices_;
75  //PJ adding quality cuts
81  // containers for holding vertices associated to jets
82  std::map<const reco::PFJet*, reco::VertexRef>* jetToVertexAssociation_;
83  int lastEvent_;
85 };
86 
87 } /* tau */ } /* reco */
88 
89 #endif /* end of include guard: RecoTauTag_RecoTau_RecoTauVertexAssociator_h */
reco::VertexRef associatedVertex(const PFJet &jet) const
void setEvent(const edm::Event &evt)
Load the vertices from the event.
reco::TrackBaseRef getLeadTrack(const PFJet &jet) const
Jets made from PFObjects.
Definition: PFJet.h:21
std::vector< reco::VertexRef > selectedVertices_
StringCutObjectSelector< reco::Vertex > * vertexSelector_
RecoTauVertexAssociator(const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
edm::EDGetTokenT< reco::VertexCollection > vxToken_
std::map< const reco::PFJet *, reco::VertexRef > * jetToVertexAssociation_