DESY Hbb Analysis Framework
Vertex.h
Go to the documentation of this file.
1 #ifndef Analysis_Tools_Vertex_h
2 #define Analysis_Tools_Vertex_h 1
3 
4 // -*- C++ -*-
5 //
6 // Package: Analysis/Tools
7 // Class: Vertex
8 //
16 //
17 // Original Author: Roberval Walsh Bastos Rangel
18 // Created: Mon, 20 Oct 2014 14:24:08 GMT
19 //
20 //
21 
22 // system include files
23 #include <memory>
24 //
25 // user include files
26 #include "TLorentzVector.h"
27 
28 //
29 // class declaration
30 //Original
31 
32 namespace analysis {
33  namespace tools {
34 
35  class Vertex {
36  public:
38  Vertex();
40  Vertex(const float &,const float &,const float &);
42  ~Vertex();
43 
45  float x () const;
47  float y () const;
49  float z () const;
51  float xe () const;
53  float ye () const;
55  float ze () const;
57  float chi2() const;
59  float ndof() const;
61  float rho () const;
63  bool fake() const;
64 
66  void x (const float &);
68  void y (const float &);
70  void z (const float &);
72  void xe (const float &);
74  void ye (const float &);
76  void ze (const float &);
78  void chi2(const float &);
80  void ndof(const float &);
82  void rho (const float &);
84  void fake(const bool &);
85 
86  protected:
87  // ----------member data ---------------------------
88 
89  //
91  float x_ ;
93  float y_ ;
95  float z_ ;
97  float xe_ ;
99  float ye_ ;
101  float ze_ ;
103  float chi2_;
105  float ndof_;
107  float rho_ ;
109  bool fake_;
110 
111  private:
112  };
113  }
114 }
115 
116 #endif // Analysis_Tools_Vertex_h
float ndof_
number of degrees of freedom of the vertex fit
Definition: Vertex.h:105
float z_
z coordinate of vertex position
Definition: Vertex.h:95
float rho() const
returns rho coordinate of vertex position
Definition: Vertex.cc:50
float y_
y coordinate of vertex position
Definition: Vertex.h:93
Vertex()
default constructor
Definition: Vertex.cc:21
float x() const
returns x coordinate of vertex position
Definition: Vertex.cc:42
float y() const
returns y coordinate of vertex position
Definition: Vertex.cc:43
float ye() const
returns error on y coordinate of vertex position
Definition: Vertex.cc:46
float xe() const
returns error on x coordinate of vertex position
Definition: Vertex.cc:45
bool fake() const
returns if vertex is fake or not
Definition: Vertex.cc:51
float x_
x coordinate of vertex position
Definition: Vertex.h:91
float ye_
error on y coordinate of vertex position
Definition: Vertex.h:99
float z() const
returns z coordinate of vertex position
Definition: Vertex.cc:44
float xe_
error on x coordinate of vertex position
Definition: Vertex.h:97
float ndof() const
returns number of degrees of freedom of the vertex fit
Definition: Vertex.cc:49
~Vertex()
destructor
Definition: Vertex.cc:29
float rho_
rho coordinate of vertex position
Definition: Vertex.h:107
float ze() const
returns error on z coordinate of vertex position
Definition: Vertex.cc:47
float ze_
error on z coordinate of vertex position
Definition: Vertex.h:101
float chi2_
chi^2 of the vertex fit
Definition: Vertex.h:103
float chi2() const
returns chi^2 of the vertex fit
Definition: Vertex.cc:48
bool fake_
if vertex is fake or not
Definition: Vertex.h:109