CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
LeptonVertexSignificance.h
Go to the documentation of this file.
1 //
2 //
3 
4 #ifndef PhysicsTools_PatUtils_LeptonVertexSignificance_h
5 #define PhysicsTools_PatUtils_LeptonVertexSignificance_h
6 
20 
22 
23 namespace reco {
24  class Track;
25 }
26 
27 namespace pat {
28  class Electron;
29  class Muon;
30 
32  public:
33  LeptonVertexSignificance() = default;
34  ~LeptonVertexSignificance() = default;
35 
36  //NOTE: expects vertices from "offlinePrimaryVerticesFromCTFTracks"
38 
39  //NOTE: expects TransientTrackBuilder to be a copy of one from record TransientTrackRecord with label "TransientTrackBuilder"
40  float calculate(const Electron& anElectron,
42  const TransientTrackBuilder& builder);
43  float calculate(const Muon& aMuon, const reco::VertexCollection& vertices, const TransientTrackBuilder& builder);
44 
45  private:
46  float calculate(const reco::Track& track,
47  const reco::VertexCollection& vertices,
48  const TransientTrackBuilder& builder);
49  };
50 
51 } // namespace pat
52 
53 #endif
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
Calculates a lepton&#39;s vertex association significance.
float calculate(const Electron &anElectron, const reco::VertexCollection &vertices, const TransientTrackBuilder &builder)
Analysis-level electron class.
Definition: Electron.h:51
constexpr char Electron[]
Definition: modules.cc:12
Analysis-level muon class.
Definition: Muon.h:51
static edm::InputTag vertexCollectionTag()