Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4UserParticle.h
Go to the documentation of this file.
1#ifndef TG4_USER_PARTICLE_H
2#define TG4_USER_PARTICLE_H
3
4//------------------------------------------------
5// The Geant4 Virtual Monte Carlo package
6// Copyright (C) 2007 - 2014 Ivana Hrivnacova
7// All rights reserved.
8//
9// For the licensing terms see geant4_vmc/LICENSE.
10// Contact: root-vmc@cern.ch
11//-------------------------------------------------
12
17
18#include "TG4Globals.h"
19
20#include <G4ParticleDefinition.hh>
21#include <globals.hh>
22
23#include <TMCParticleType.h>
24
29
31{
32 public:
33 TG4UserParticle(const G4String& name, TMCParticleType mcType, G4double mass,
34 G4double width, G4double charge, G4int iSpin, G4int iParity,
35 G4int iConjugation, G4int iIsospin, G4int iIsospin3, G4int gParity,
36 const G4String& pType, G4int lepton, G4int baryon, G4int encoding,
37 G4bool stable, G4double lifetime, G4DecayTable* decaytable,
38 G4bool shortlived, const G4String& subType = "", G4int anti_encoding = 0,
39 G4double magneticMoment = 0.0, G4double excitation = 0.0);
40 virtual ~TG4UserParticle();
41
42 TMCParticleType GetMCType() const;
43 G4double GetExcitationEnergy() const;
44
45 private:
48
49 // data members
50 TMCParticleType fMCType;
52};
53
54// inline functions
55
57inline TMCParticleType TG4UserParticle::GetMCType() const { return fMCType; }
58
61{
62 return fExcitationEnergy;
63}
64
65#endif // TG4_USER_PARTICLE_H
Definition of the TG4Globals class and basic container types.
The class for user particle definition.
G4double fExcitationEnergy
excitation energy
TMCParticleType fMCType
particle MC type
TG4UserParticle()
Not implemented.
virtual ~TG4UserParticle()
G4double GetExcitationEnergy() const
Return the particle excitation energy.
TMCParticleType GetMCType() const
Return the particle MC type.