hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Private Attributes | List of all members
Vertex Class Reference

#include <Vertex.h>

Inheritance diagram for Vertex:

Public Member Functions

 Vertex ()
 
 ~Vertex ()
 
void Clear (Option_t *option="")
 
void addParticle (TObject *part)
 
void setChi2 (const double chi2)
 
void setNdf (const double ndf)
 
void setX (const double x)
 
void setY (const double y)
 
void setZ (const double z)
 
void setPos (const float *pos, bool rotate=false)
 
void setPos (const TVector3 &pos)
 
void setVtxParameters (const std::vector< float > &parameters)
 
void setVtxParameters (const TLorentzVector &p1, const TLorentzVector &p2)
 
void setVtxParameters (const TVector3 &p1, const TVector3 &p2, const double m)
 
void setType (const std::string &type)
 
void setID (const int id)
 
void setCovariance (const std::vector< float > &vec)
 
void setProbability (const float probability)
 
TRefArray getParticles ()
 
const std::vector< float > & getCovariance () const
 
float getProbability () const
 
double getChi2 () const
 
double getNdf () const
 
double getX () const
 
double getY () const
 
double getZ () const
 
TVector3 getPos () const
 
std::string getType () const
 
int getID ()
 
float getInvMass () const
 
float getInvMassErr () const
 
TVector3 getP1 () const
 
double getP1X () const
 
double getP1Y () const
 
double getP1Z () const
 
TVector3 getP2 () const
 
double getP2X () const
 
double getP2Y () const
 
double getP2Z () const
 
TVector3 getP () const
 
double getTgtConstrSigmaX () const
 
double getTgtConstrX () const
 
double getTgtConstrSigmaY () const
 
double getTgtConstrY () const
 
 ClassDef (Vertex, 1)
 

Private Attributes

double chi2_ {-999}
 
int ndf_ {-999}
 
TVector3 pos_
 
TVector3 p1_
 
TVector3 p2_
 
TVector3 p_
 
float invM_ {-999}
 
float invMerr_ {-999}
 
std::vector< float > covariance_ {}
 
float probability_ {-999}
 
int id_
 
std::string type_ {""}
 
TRefArray parts_
 
int n_parts_ {0}
 
std::vector< float > parameters_
 

Detailed Description

Definition at line 22 of file Vertex.h.

Constructor & Destructor Documentation

◆ Vertex()

Vertex ( )

Constructor

◆ ~Vertex()

~Vertex ( )

Destructor

Definition at line 17 of file Vertex.cxx.

Member Function Documentation

◆ addParticle()

void addParticle ( TObject *  part)

Add a reference to a Track used for this vertex

Parameters
A Track object

Definition at line 29 of file Vertex.cxx.

◆ ClassDef()

ClassDef ( Vertex  ,
 
)

◆ Clear()

void Clear ( Option_t *  option = "")

Reset The Vertex object

Definition at line 21 of file Vertex.cxx.

◆ getChi2()

double getChi2 ( ) const
inline

Get the chi2

Definition at line 103 of file Vertex.h.

◆ getCovariance()

const std::vector< float > & getCovariance ( ) const
inline

Returns the covariance matrix as a simple vector of values

Definition at line 97 of file Vertex.h.

◆ getID()

int getID ( )
inline

Get the ID

Definition at line 124 of file Vertex.h.

◆ getInvMass()

float getInvMass ( ) const
inline

Get the invariant mass

Definition at line 127 of file Vertex.h.

◆ getInvMassErr()

float getInvMassErr ( ) const
inline

Get the invariant mass error

Definition at line 130 of file Vertex.h.

◆ getNdf()

double getNdf ( ) const
inline

Get the NDF

Definition at line 106 of file Vertex.h.

◆ getP()

TVector3 getP ( ) const
inline

Definition at line 144 of file Vertex.h.

◆ getP1()

TVector3 getP1 ( ) const
inline

Definition at line 134 of file Vertex.h.

◆ getP1X()

double getP1X ( ) const
inline

Definition at line 135 of file Vertex.h.

◆ getP1Y()

double getP1Y ( ) const
inline

Definition at line 136 of file Vertex.h.

◆ getP1Z()

double getP1Z ( ) const
inline

Definition at line 137 of file Vertex.h.

◆ getP2()

TVector3 getP2 ( ) const
inline

Definition at line 139 of file Vertex.h.

◆ getP2X()

double getP2X ( ) const
inline

Definition at line 140 of file Vertex.h.

◆ getP2Y()

double getP2Y ( ) const
inline

Definition at line 141 of file Vertex.h.

◆ getP2Z()

double getP2Z ( ) const
inline

Definition at line 142 of file Vertex.h.

◆ getParticles()

TRefArray getParticles ( )
inline

Definition at line 94 of file Vertex.h.

◆ getPos()

TVector3 getPos ( ) const
inline

Get the position vector

Definition at line 118 of file Vertex.h.

◆ getProbability()

float getProbability ( ) const
inline

Get the probability

Definition at line 100 of file Vertex.h.

◆ getTgtConstrSigmaX()

double getTgtConstrSigmaX ( ) const
inline

Get the Target Constrained Sigma X

Definition at line 147 of file Vertex.h.

◆ getTgtConstrSigmaY()

double getTgtConstrSigmaY ( ) const
inline

Get the Target Constrained Sigma Y

Definition at line 153 of file Vertex.h.

◆ getTgtConstrX()

double getTgtConstrX ( ) const
inline

Get the Target Constrained X

Definition at line 150 of file Vertex.h.

◆ getTgtConstrY()

double getTgtConstrY ( ) const
inline

Get the Target Constrained Y

Definition at line 156 of file Vertex.h.

◆ getType()

std::string getType ( ) const
inline

Get the type

Definition at line 121 of file Vertex.h.

◆ getX()

double getX ( ) const
inline

Get the X position

Definition at line 109 of file Vertex.h.

◆ getY()

double getY ( ) const
inline

Get the Y position

Definition at line 112 of file Vertex.h.

◆ getZ()

double getZ ( ) const
inline

Get the Z position

Definition at line 115 of file Vertex.h.

◆ setChi2()

void setChi2 ( const double  chi2)
inline

Set the chi2

Definition at line 45 of file Vertex.h.

◆ setCovariance()

void setCovariance ( const std::vector< float > &  vec)

Sets the covariance matrix as a simple vector of values Covariance matrix of the position (stored as lower triangle matrix, i.e. cov(xx),cov(y,x),cov(y,y) ).

Definition at line 35 of file Vertex.cxx.

◆ setID()

void setID ( const int  id)
inline

Set the ID

Definition at line 83 of file Vertex.h.

◆ setNdf()

void setNdf ( const double  ndf)
inline

Set the NDF

Definition at line 48 of file Vertex.h.

◆ setPos() [1/2]

void setPos ( const float *  pos,
bool  rotate = false 
)

Set the position of the vertex. If rotate is set to true, then position is defined in svt coordinates

Definition at line 39 of file Vertex.cxx.

◆ setPos() [2/2]

void setPos ( const TVector3 &  pos)

Set the position from a TVector

◆ setProbability()

void setProbability ( const float  probability)
inline

Set the probability

Definition at line 92 of file Vertex.h.

◆ setType()

void setType ( const std::string &  type)
inline

Set the type

Definition at line 80 of file Vertex.h.

◆ setVtxParameters() [1/3]

void setVtxParameters ( const std::vector< float > &  parameters)

Vertex parameters depend on LCIO files. The available parameters are invMass, p1X, p2Y, p2X, p1Z, p2Z, p1Y, invMassError For unconstrained: V0PzErr, invMass, V0Pz, vXErr, V0Py, V0Px, V0PErr, V0TargProjY, vZErr, V0TargProjXErr, vYErr, V0TargProjYErr, invMassError, p1X, p2Y, p2X, V0P, p1Z, p1Y, p2Z, V0TargProjX, layerCode, V0PxErr, V0PyErr,

Definition at line 81 of file Vertex.cxx.

◆ setVtxParameters() [2/3]

void setVtxParameters ( const TLorentzVector &  p1,
const TLorentzVector &  p2 
)

Definition at line 73 of file Vertex.cxx.

◆ setVtxParameters() [3/3]

void setVtxParameters ( const TVector3 &  p1,
const TVector3 &  p2,
const double  m 
)

Definition at line 54 of file Vertex.cxx.

◆ setX()

void setX ( const double  x)
inline

Set the X position

Definition at line 51 of file Vertex.h.

◆ setY()

void setY ( const double  y)
inline

Set the Y position

Definition at line 54 of file Vertex.h.

◆ setZ()

void setZ ( const double  z)
inline

Set the Z position

Definition at line 57 of file Vertex.h.

Member Data Documentation

◆ chi2_

double chi2_ {-999}
private

Definition at line 162 of file Vertex.h.

◆ covariance_

std::vector<float> covariance_ {}
private

Definition at line 169 of file Vertex.h.

◆ id_

int id_
private

Definition at line 171 of file Vertex.h.

◆ invM_

float invM_ {-999}
private

Definition at line 166 of file Vertex.h.

◆ invMerr_

float invMerr_ {-999}
private

Definition at line 167 of file Vertex.h.

◆ n_parts_

int n_parts_ {0}
private

Definition at line 174 of file Vertex.h.

◆ ndf_

int ndf_ {-999}
private

Definition at line 163 of file Vertex.h.

◆ p1_

TVector3 p1_
private

Definition at line 164 of file Vertex.h.

◆ p2_

TVector3 p2_
private

Definition at line 164 of file Vertex.h.

◆ p_

TVector3 p_
private

Definition at line 164 of file Vertex.h.

◆ parameters_

std::vector<float> parameters_
private

Definition at line 175 of file Vertex.h.

◆ parts_

TRefArray parts_
private

Definition at line 173 of file Vertex.h.

◆ pos_

TVector3 pos_
private

Definition at line 164 of file Vertex.h.

◆ probability_

float probability_ {-999}
private

Definition at line 170 of file Vertex.h.

◆ type_

std::string type_ {""}
private

Definition at line 172 of file Vertex.h.


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