34 TString fParticleName;
35 Double_t fExcitationLevel = 0;
36 TVector3 fDirection = {1, 0, 0};
42 inline TString GetParticleName()
const {
return fParticleName; }
43 inline Double_t GetExcitationLevel()
const {
return fExcitationLevel; }
44 inline Double_t GetEnergy()
const {
return fEnergy; }
45 inline TVector3 GetMomentumDirection()
const {
return fDirection; }
46 inline Int_t GetParticleCharge()
const {
return fCharge; }
47 inline TVector3 GetOrigin()
const {
return fOrigin; }
51 void SetParticleName(TString particle) { fParticleName = particle; }
53 void SetExcitationLevel(Double_t excitationEnergy) {
54 fExcitationLevel = excitationEnergy;
55 if (fExcitationLevel < 0) fExcitationLevel = 0;
58 void SetParticleCharge(Int_t charge) { fCharge = charge; }
60 void SetDirection(TVector3 dir) { fDirection = dir; }
61 void SetEnergy(Double_t en) { fEnergy = en; }
62 void SetOrigin(TVector3 pos) { fOrigin = pos; }
A class used to store particle properties.
void SetParticle(TRestGeant4Particle particle)
A copy method.
void Print() const
Prints on screen the details about the Geant4 simulation conditions, stored in TRestGeant4Metadata.