Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:30:26

0001 #ifndef SimG4Core_TmpSimVertex_H
0002 #define SimG4Core_TmpSimVertex_H
0003 
0004 #include "DataFormats/Math/interface/Vector3D.h"
0005 #include "DataFormats/Math/interface/LorentzVector.h"
0006 #include <cmath>
0007 
0008 class TmpSimVertex {
0009 public:
0010   TmpSimVertex(const math::XYZVectorD& ip, double it, int iv, int typ = 0)
0011       : ilv_(ip), itime_(it), itrack_(iv), ptype_(typ) {}
0012   ~TmpSimVertex() = 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   int processType() const { return ptype_; }
0018 
0019 private:
0020   math::XYZVectorD ilv_;
0021   double itime_;
0022   int itrack_;
0023   int ptype_;
0024 };
0025 
0026 #endif