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