CMS 3D CMS Logo

GenParticleInfo.h
Go to the documentation of this file.
1 #ifndef SimG4Core_GenParticleInfo_H
2 #define SimG4Core_GenParticleInfo_H
3 
4 #include "G4VUserPrimaryParticleInformation.hh"
5 
6 class GenParticleInfo : public G4VUserPrimaryParticleInformation {
7 public:
8  explicit GenParticleInfo(int id) : id_(id) {}
9  ~GenParticleInfo() override = default;
10  int id() const { return id_; }
11  void Print() const override {}
12 
13 private:
14  int id_;
15 };
16 
17 #endif
GenParticleInfo(int id)
~GenParticleInfo() override=default
int id() const
void Print() const override