CMS 3D CMS Logo

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