CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
10 {
11 public:
13  G4SimVertex(const math::XYZVectorD & ip, double it, int iv) :
14  ilv_(ip),itime_(it),itrack_(iv) {}
16  const math::XYZVectorD & vertexPosition() const { return ilv_; }
17  const double vertexGlobalTime() const { return itime_; }
18  const int parentIndex() const { return itrack_; }
19 private:
21  double itime_;
22  int itrack_;
23 };
24 
25 #endif
double itime_
Definition: G4SimVertex.h:21
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > XYZVectorD
spatial vector with cartesian internal representation
Definition: Vector3D.h:9
const math::XYZVectorD & vertexPosition() const
index of the parent (-1 if no parent)
Definition: G4SimVertex.h:16
math::XYZVectorD ilv_
Definition: G4SimVertex.h:20
const int parentIndex() const
Definition: G4SimVertex.h:18
G4SimVertex(const math::XYZVectorD &ip, double it, int iv)
Definition: G4SimVertex.h:13
const double vertexGlobalTime() const
Definition: G4SimVertex.h:17