src
SimG4Core
Notification
interface
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::GenParticleInfo
GenParticleInfo(int id)
Definition:
GenParticleInfo.h:8
GenParticleInfo::~GenParticleInfo
~GenParticleInfo() override=default
GenParticleInfo::id_
int id_
Definition:
GenParticleInfo.h:14
GenParticleInfo::id
int id() const
Definition:
GenParticleInfo.h:10
GenParticleInfo::Print
void Print() const override
Definition:
GenParticleInfo.h:11
GenParticleInfo
Definition:
GenParticleInfo.h:6
Generated for CMSSW Reference Manual by
1.8.14