Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-05-31 22:26:11

0001 #ifndef SimG4Core_G4SimVertex_H
0002 #define SimG4Core_G4SimVertex_H
0003 
0004 #include "DataFormats/Math/interface/Vector3D.h"
0005 #include "DataFormats/Math/interface/LorentzVector.h"
0006 #include <cmath>
0007 
0008 class G4SimVertex {
0009 public:
0010   G4SimVertex(const math::XYZVectorD& ip, double it, int iv, unsigned int typ = 0)
0011       : ilv_(ip), itime_(it), itrack_(iv), procType_(typ) {}
0012   ~G4SimVertex() = default;
0013   /// index of the parent (-1 if no parent)
0014   const math::XYZVectorD& vertexPosition() const { return ilv_; }
0015   double vertexGlobalTime() const { return itime_; }
0016   int parentIndex() const { return itrack_; }
0017   unsigned int processType() const { return procType_; }
0018 
0019 private:
0020   math::XYZVectorD ilv_;
0021   double itime_;
0022   int itrack_;
0023   unsigned int procType_;
0024 };
0025 
0026 #endif