CMS 3D CMS Logo

TmpSimVertex.h
Go to the documentation of this file.
1 #ifndef SimG4Core_TmpSimVertex_H
2 #define SimG4Core_TmpSimVertex_H
3 
6 #include <cmath>
7 
8 class TmpSimVertex {
9 public:
10  TmpSimVertex(const math::XYZVectorD& ip, double it, int iv, int typ = 0)
11  : ilv_(ip), itime_(it), itrack_(iv), ptype_(typ) {}
12  ~TmpSimVertex() = default;
14  const math::XYZVectorD& vertexPosition() const { return ilv_; }
15  double vertexGlobalTime() const { return itime_; }
16  int parentIndex() const { return itrack_; }
17  int processType() const { return ptype_; }
18 
19 private:
21  double itime_;
22  int itrack_;
23  int ptype_;
24 };
25 
26 #endif
TmpSimVertex(const math::XYZVectorD &ip, double it, int iv, int typ=0)
Definition: TmpSimVertex.h:10
~TmpSimVertex()=default
const math::XYZVectorD & vertexPosition() const
index of the parent (-1 if no parent)
Definition: TmpSimVertex.h:14
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > XYZVectorD
spatial vector with cartesian internal representation
Definition: Vector3D.h:8
double itime_
Definition: TmpSimVertex.h:21
int parentIndex() const
Definition: TmpSimVertex.h:16
double vertexGlobalTime() const
Definition: TmpSimVertex.h:15
int processType() const
Definition: TmpSimVertex.h:17
math::XYZVectorD ilv_
Definition: TmpSimVertex.h:20