CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
G4SimVertex.h
Go to the documentation of this file.
1 #ifndef SimG4Core_G4SimVertex_H
2 #define SimG4Core_G4SimVertex_H
3 
6 #include <vector>
7 #include <cmath>
8 
9 class G4SimVertex {
10 public:
12  G4SimVertex(const math::XYZVectorD& ip, double it, int iv, unsigned int typ = 0)
13  : ilv_(ip), itime_(it), itrack_(iv), procType_(typ) {}
15  const math::XYZVectorD& vertexPosition() const { return ilv_; }
16  double vertexGlobalTime() const { return itime_; }
17  int parentIndex() const { return itrack_; }
18  unsigned int processType() const { return procType_; }
19 
20 private:
22  double itime_;
23  int itrack_;
24  unsigned int procType_;
25 };
26 
27 #endif
unsigned int procType_
Definition: G4SimVertex.h:24
int32_t *__restrict__ iv
int parentIndex() const
Definition: G4SimVertex.h:17
double itime_
Definition: G4SimVertex.h:22
G4SimVertex(const math::XYZVectorD &ip, double it, int iv, unsigned int typ=0)
Definition: G4SimVertex.h:12
unsigned int processType() const
Definition: G4SimVertex.h:18
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:15
math::XYZVectorD ilv_
Definition: G4SimVertex.h:21
double vertexGlobalTime() const
Definition: G4SimVertex.h:16