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.
|
#include <Vertex.h>
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 > ¶meters) |
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_ |
Vertex | ( | ) |
Constructor
~Vertex | ( | ) |
Destructor
Definition at line 17 of file Vertex.cxx.
void addParticle | ( | TObject * | part | ) |
Add a reference to a Track used for this vertex
A Track object |
Definition at line 29 of file Vertex.cxx.
ClassDef | ( | Vertex | , |
1 | |||
) |
void Clear | ( | Option_t * | option = "" | ) |
Reset The Vertex object
Definition at line 21 of file Vertex.cxx.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
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.
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.
void setPos | ( | const TVector3 & | pos | ) |
Set the position from a TVector
|
inline |
|
inline |
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.
void setVtxParameters | ( | const TLorentzVector & | p1, |
const TLorentzVector & | p2 | ||
) |
Definition at line 73 of file Vertex.cxx.
void setVtxParameters | ( | const TVector3 & | p1, |
const TVector3 & | p2, | ||
const double | m | ||
) |
Definition at line 54 of file Vertex.cxx.