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 <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
G4SimVertex
Definition: G4SimVertex.h:9
G4SimVertex::itime_
double itime_
Definition: G4SimVertex.h:22
G4SimVertex::procType_
unsigned int procType_
Definition: G4SimVertex.h:24
G4SimVertex::parentIndex
int parentIndex() const
Definition: G4SimVertex.h:17
G4SimVertex::vertexPosition
const math::XYZVectorD & vertexPosition() const
index of the parent (-1 if no parent)
Definition: G4SimVertex.h:15
G4SimVertex::vertexGlobalTime
double vertexGlobalTime() const
Definition: G4SimVertex.h:16
G4SimVertex::processType
unsigned int processType() const
Definition: G4SimVertex.h:18
G4SimVertex::G4SimVertex
G4SimVertex(const math::XYZVectorD &ip, double it, int iv, unsigned int typ=0)
Definition: G4SimVertex.h:12
math::XYZVectorD
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > XYZVectorD
spatial vector with cartesian internal representation
Definition: Vector3D.h:8
LorentzVector.h
G4SimVertex::G4SimVertex
G4SimVertex()
Definition: G4SimVertex.h:11
G4SimVertex::ilv_
math::XYZVectorD ilv_
Definition: G4SimVertex.h:21
G4SimVertex::itrack_
int itrack_
Definition: G4SimVertex.h:23
Vector3D.h