DESY Hbb Analysis Framework
Vertex.cc
Go to the documentation of this file.
1 // system include files
2 //
3 // user include files
4 #include "FWCore/Framework/interface/Event.h"
5 //
6 #include "FWCore/ParameterSet/interface/ParameterSet.h"
7 
9 
10 
11 //
12 // class declaration
13 //
14 
15 using namespace analysis;
16 using namespace analysis::tools;
17 
18 //
19 // constructors and destructor
20 //
21 Vertex::Vertex() : x_(0.), y_(0.), z_(0.)
22 {
23 }
24 
25 Vertex::Vertex(const float & x, const float & y, const float & z) : x_(x), y_(y), z_(z)
26 {
27 }
28 
30 {
31  // do anything here that needs to be done at desctruction time
32  // (e.g. close files, deallocate resources etc.)
33 }
34 
35 
36 //
37 // member functions
38 //
39 
40 // ------------ methods ------------
41 // Get
42 float Vertex::x() const { return x_ ; }
43 float Vertex::y() const { return y_ ; }
44 float Vertex::z() const { return z_ ; }
45 float Vertex::xe() const { return xe_; }
46 float Vertex::ye() const { return ye_; }
47 float Vertex::ze() const { return ze_; }
48 float Vertex::chi2() const { return chi2_; }
49 float Vertex::ndof() const { return ndof_; }
50 float Vertex::rho() const { return rho_ ; }
51 bool Vertex::fake() const { return fake_; }
52 
53 // Set
54 void Vertex::x (const float & x ) { x_ = x ; }
55 void Vertex::y (const float & y ) { y_ = y ; }
56 void Vertex::z (const float & z ) { z_ = z ; }
57 void Vertex::xe (const float & xe) { xe_ = xe; }
58 void Vertex::ye (const float & ye) { ye_ = ye; }
59 void Vertex::ze (const float & ze) { ze_ = ze; }
60 
61 void Vertex::chi2 (const float & chi2 ) { chi2_ = chi2 ; }
62 void Vertex::ndof (const float & ndof ) { ndof_ = ndof ; }
63 void Vertex::rho (const float & rho ) { rho_ = rho ; }
64 
65 void Vertex::fake (const bool & fake ) { fake_ = fake ; }
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