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 {
8 public:
9  explicit GenParticleInfo(int id) : id_(id) {}
10  int id() const { return id_; }
11  void Print() const override {}
12 private:
13  int id_;
14 };
15 
16 #endif
void Print() const override
GenParticleInfo(int id)
int id() const