DESY Hbb Analysis Framework
Public Member Functions | Protected Attributes | List of all members
analysis::tools::Vertex Class Reference

#include <Vertex.h>

Public Member Functions

float chi2 () const
 returns chi^2 of the vertex fit More...
 
void chi2 (const float &)
 sets chi^2 of the vertex fit More...
 
bool fake () const
 returns if vertex is fake or not More...
 
void fake (const bool &)
 sets if vertex is fake or not More...
 
float ndof () const
 returns number of degrees of freedom of the vertex fit More...
 
void ndof (const float &)
 sets number of degrees of freedom of the vertex fit More...
 
float rho () const
 returns rho coordinate of vertex position More...
 
void rho (const float &)
 sets rho coordinate of vertex position More...
 
 Vertex ()
 default constructor More...
 
 Vertex (const float &, const float &, const float &)
 constructor with defined position x, y, z More...
 
float x () const
 returns x coordinate of vertex position More...
 
void x (const float &)
 sets x coordinate of vertex position More...
 
float xe () const
 returns error on x coordinate of vertex position More...
 
void xe (const float &)
 sets error on x coordinate of vertex position More...
 
float y () const
 returns y coordinate of vertex position More...
 
void y (const float &)
 sets y coordinate of vertex position More...
 
float ye () const
 returns error on y coordinate of vertex position More...
 
void ye (const float &)
 sets error on y coordinate of vertex position More...
 
float z () const
 returns z coordinate of vertex position More...
 
void z (const float &)
 sets z coordinate of vertex position More...
 
float ze () const
 returns error on z coordinate of vertex position More...
 
void ze (const float &)
 sets error on z coordinate of vertex position More...
 
 ~Vertex ()
 destructor More...
 

Protected Attributes

float chi2_
 chi^2 of the vertex fit More...
 
bool fake_
 if vertex is fake or not More...
 
float ndof_
 number of degrees of freedom of the vertex fit More...
 
float rho_
 rho coordinate of vertex position More...
 
float x_
 x coordinate of vertex position More...
 
float xe_
 error on x coordinate of vertex position More...
 
float y_
 y coordinate of vertex position More...
 
float ye_
 error on y coordinate of vertex position More...
 
float z_
 z coordinate of vertex position More...
 
float ze_
 error on z coordinate of vertex position More...
 

Detailed Description

Definition at line 35 of file Vertex.h.

Constructor & Destructor Documentation

Vertex::Vertex ( )

default constructor

Definition at line 21 of file Vertex.cc.

21  : x_(0.), y_(0.), z_(0.)
22 {
23 }
float z_
z coordinate of vertex position
Definition: Vertex.h:95
float y_
y coordinate of vertex position
Definition: Vertex.h:93
float x_
x coordinate of vertex position
Definition: Vertex.h:91
Vertex::Vertex ( const float &  x,
const float &  y,
const float &  z 
)

constructor with defined position x, y, z

Definition at line 25 of file Vertex.cc.

25  : x_(x), y_(y), z_(z)
26 {
27 }
float z_
z coordinate of vertex position
Definition: Vertex.h:95
float y_
y coordinate of vertex position
Definition: Vertex.h:93
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 x_
x coordinate of vertex position
Definition: Vertex.h:91
float z() const
returns z coordinate of vertex position
Definition: Vertex.cc:44
Vertex::~Vertex ( )

destructor

Definition at line 29 of file Vertex.cc.

30 {
31  // do anything here that needs to be done at desctruction time
32  // (e.g. close files, deallocate resources etc.)
33 }

Member Function Documentation

float Vertex::chi2 ( ) const

returns chi^2 of the vertex fit

Definition at line 48 of file Vertex.cc.

References chi2_.

Referenced by chi2(), and analysis::tools::PhysicsObjectTree< Object >::collection().

48 { return chi2_; }
float chi2_
chi^2 of the vertex fit
Definition: Vertex.h:103
void Vertex::chi2 ( const float &  chi2)

sets chi^2 of the vertex fit

Definition at line 61 of file Vertex.cc.

References chi2(), and chi2_.

61 { chi2_ = chi2 ; }
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 Vertex::fake ( ) const

returns if vertex is fake or not

Definition at line 51 of file Vertex.cc.

References fake_.

Referenced by analysis::tools::PhysicsObjectTree< Object >::collection(), and fake().

51 { return fake_; }
bool fake_
if vertex is fake or not
Definition: Vertex.h:109
void Vertex::fake ( const bool &  fake)

sets if vertex is fake or not

Definition at line 65 of file Vertex.cc.

References fake(), and fake_.

65 { fake_ = fake ; }
bool fake() const
returns if vertex is fake or not
Definition: Vertex.cc:51
bool fake_
if vertex is fake or not
Definition: Vertex.h:109
float Vertex::ndof ( ) const

returns number of degrees of freedom of the vertex fit

Definition at line 49 of file Vertex.cc.

References ndof_.

Referenced by analysis::tools::PhysicsObjectTree< Object >::collection(), and ndof().

49 { return ndof_; }
float ndof_
number of degrees of freedom of the vertex fit
Definition: Vertex.h:105
void Vertex::ndof ( const float &  ndof)

sets number of degrees of freedom of the vertex fit

Definition at line 62 of file Vertex.cc.

References ndof(), and ndof_.

62 { ndof_ = ndof ; }
float ndof_
number of degrees of freedom of the vertex fit
Definition: Vertex.h:105
float ndof() const
returns number of degrees of freedom of the vertex fit
Definition: Vertex.cc:49
float Vertex::rho ( ) const

returns rho coordinate of vertex position

Definition at line 50 of file Vertex.cc.

References rho_.

Referenced by analysis::tools::PhysicsObjectTree< Object >::collection(), and rho().

50 { return rho_ ; }
float rho_
rho coordinate of vertex position
Definition: Vertex.h:107
void Vertex::rho ( const float &  rho)

sets rho coordinate of vertex position

Definition at line 63 of file Vertex.cc.

References rho(), and rho_.

63 { rho_ = rho ; }
float rho() const
returns rho coordinate of vertex position
Definition: Vertex.cc:50
float rho_
rho coordinate of vertex position
Definition: Vertex.h:107
float Vertex::x ( ) const

returns x coordinate of vertex position

Definition at line 42 of file Vertex.cc.

References x_.

Referenced by x().

42 { return x_ ; }
float x_
x coordinate of vertex position
Definition: Vertex.h:91
void Vertex::x ( const float &  x)

sets x coordinate of vertex position

Definition at line 54 of file Vertex.cc.

References x(), and x_.

54 { x_ = x ; }
float x() const
returns x coordinate of vertex position
Definition: Vertex.cc:42
float x_
x coordinate of vertex position
Definition: Vertex.h:91
float Vertex::xe ( ) const

returns error on x coordinate of vertex position

Definition at line 45 of file Vertex.cc.

References xe_.

Referenced by xe().

45 { return xe_; }
float xe_
error on x coordinate of vertex position
Definition: Vertex.h:97
void Vertex::xe ( const float &  xe)

sets error on x coordinate of vertex position

Definition at line 57 of file Vertex.cc.

References xe(), and xe_.

57 { xe_ = xe; }
float xe() const
returns error on x coordinate of vertex position
Definition: Vertex.cc:45
float xe_
error on x coordinate of vertex position
Definition: Vertex.h:97
float Vertex::y ( ) const

returns y coordinate of vertex position

Definition at line 43 of file Vertex.cc.

References y_.

Referenced by y().

43 { return y_ ; }
float y_
y coordinate of vertex position
Definition: Vertex.h:93
void Vertex::y ( const float &  y)

sets y coordinate of vertex position

Definition at line 55 of file Vertex.cc.

References y(), and y_.

55 { y_ = y ; }
float y_
y coordinate of vertex position
Definition: Vertex.h:93
float y() const
returns y coordinate of vertex position
Definition: Vertex.cc:43
float Vertex::ye ( ) const

returns error on y coordinate of vertex position

Definition at line 46 of file Vertex.cc.

References ye_.

Referenced by ye().

46 { return ye_; }
float ye_
error on y coordinate of vertex position
Definition: Vertex.h:99
void Vertex::ye ( const float &  ye)

sets error on y coordinate of vertex position

Definition at line 58 of file Vertex.cc.

References ye(), and ye_.

58 { ye_ = ye; }
float ye() const
returns error on y coordinate of vertex position
Definition: Vertex.cc:46
float ye_
error on y coordinate of vertex position
Definition: Vertex.h:99
float Vertex::z ( ) const

returns z coordinate of vertex position

Definition at line 44 of file Vertex.cc.

References z_.

Referenced by z().

44 { return z_ ; }
float z_
z coordinate of vertex position
Definition: Vertex.h:95
void Vertex::z ( const float &  z)

sets z coordinate of vertex position

Definition at line 56 of file Vertex.cc.

References z(), and z_.

56 { z_ = z ; }
float z_
z coordinate of vertex position
Definition: Vertex.h:95
float z() const
returns z coordinate of vertex position
Definition: Vertex.cc:44
float Vertex::ze ( ) const

returns error on z coordinate of vertex position

Definition at line 47 of file Vertex.cc.

References ze_.

Referenced by ze().

47 { return ze_; }
float ze_
error on z coordinate of vertex position
Definition: Vertex.h:101
void Vertex::ze ( const float &  ze)

sets error on z coordinate of vertex position

Definition at line 59 of file Vertex.cc.

References ze(), and ze_.

59 { ze_ = ze; }
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

Member Data Documentation

float analysis::tools::Vertex::chi2_
protected

chi^2 of the vertex fit

Definition at line 103 of file Vertex.h.

Referenced by chi2().

bool analysis::tools::Vertex::fake_
protected

if vertex is fake or not

Definition at line 109 of file Vertex.h.

Referenced by fake().

float analysis::tools::Vertex::ndof_
protected

number of degrees of freedom of the vertex fit

Definition at line 105 of file Vertex.h.

Referenced by ndof().

float analysis::tools::Vertex::rho_
protected

rho coordinate of vertex position

Definition at line 107 of file Vertex.h.

Referenced by rho().

float analysis::tools::Vertex::x_
protected

x coordinate of vertex position

Definition at line 91 of file Vertex.h.

Referenced by x().

float analysis::tools::Vertex::xe_
protected

error on x coordinate of vertex position

Definition at line 97 of file Vertex.h.

Referenced by xe().

float analysis::tools::Vertex::y_
protected

y coordinate of vertex position

Definition at line 93 of file Vertex.h.

Referenced by y().

float analysis::tools::Vertex::ye_
protected

error on y coordinate of vertex position

Definition at line 99 of file Vertex.h.

Referenced by ye().

float analysis::tools::Vertex::z_
protected

z coordinate of vertex position

Definition at line 95 of file Vertex.h.

Referenced by z().

float analysis::tools::Vertex::ze_
protected

error on z coordinate of vertex position

Definition at line 101 of file Vertex.h.

Referenced by ze().


The documentation for this class was generated from the following files: