Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4UserIon.h
Go to the documentation of this file.
1#ifndef TG4_USER_ION_H
2#define TG4_USER_ION_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:
34 TG4UserIon(const G4String& name, G4int pdgEncoding, G4int Q)
35 : fName(name), fPdgEncoding(pdgEncoding), fQ(Q)
36 {}
37
40
41 // methods
42
44 G4String GetName() const { return fName; }
45
47 G4int GetPdgEncoding() const { return fPdgEncoding; }
48
50 G4int GetQ() const { return fQ; }
51
52 private:
53 // data members
54 G4String fName;
56 G4int fQ;
57};
58
59#endif // TG4_USER_ION_H
Definition of the TG4Globals class and basic container types.
The class for user ion definition.
Definition TG4UserIon.h:31
G4String GetName() const
Return the ion name defined by user.
Definition TG4UserIon.h:44
G4String fName
ion name defined by user
Definition TG4UserIon.h:54
G4int fQ
charge
Definition TG4UserIon.h:56
G4int GetPdgEncoding() const
Return the ion PDG encoding.
Definition TG4UserIon.h:47
G4int fPdgEncoding
PDG encoding.
Definition TG4UserIon.h:55
~TG4UserIon()
Destructor.
Definition TG4UserIon.h:39
G4int GetQ() const
Return the ion charge.
Definition TG4UserIon.h:50
TG4UserIon(const G4String &name, G4int pdgEncoding, G4int Q)
Standard constructor.
Definition TG4UserIon.h:34