test
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, unsigned int typ=0) :
14  ilv_(ip),itime_(it),itrack_(iv),procType_(typ) {}
16  const math::XYZVectorD & vertexPosition() const { return ilv_; }
17  const double vertexGlobalTime() const { return itime_; }
18  const int parentIndex() const { return itrack_; }
19  const unsigned int processType() const { return procType_; }
20 private:
22  double itime_;
23  int itrack_;
24  unsigned int procType_;
25 };
26 
27 #endif
unsigned int procType_
Definition: G4SimVertex.h:24
const unsigned int processType() const
Definition: G4SimVertex.h:19
double itime_
Definition: G4SimVertex.h:22
G4SimVertex(const math::XYZVectorD &ip, double it, int iv, unsigned int typ=0)
Definition: G4SimVertex.h:13
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:16
math::XYZVectorD ilv_
Definition: G4SimVertex.h:21
const int parentIndex() const
Definition: G4SimVertex.h:18
const double vertexGlobalTime() const
Definition: G4SimVertex.h:17