Geant4 VMC
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
source
physics
include
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
30
class
TG4UserIon
31
{
32
public
:
34
TG4UserIon
(
const
G4String& name, G4int pdgEncoding, G4int Q)
35
:
fName
(name),
fPdgEncoding
(pdgEncoding),
fQ
(Q)
36
{}
37
39
~TG4UserIon
() {}
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
;
55
G4int
fPdgEncoding
;
56
G4int
fQ
;
57
};
58
59
#endif
// TG4_USER_ION_H
TG4Globals.h
Definition of the TG4Globals class and basic container types.
TG4UserIon::GetName
G4String GetName() const
Return the ion name defined by user.
Definition
TG4UserIon.h:44
TG4UserIon::fName
G4String fName
ion name defined by user
Definition
TG4UserIon.h:54
TG4UserIon::fQ
G4int fQ
charge
Definition
TG4UserIon.h:56
TG4UserIon::GetPdgEncoding
G4int GetPdgEncoding() const
Return the ion PDG encoding.
Definition
TG4UserIon.h:47
TG4UserIon::fPdgEncoding
G4int fPdgEncoding
PDG encoding.
Definition
TG4UserIon.h:55
TG4UserIon::~TG4UserIon
~TG4UserIon()
Destructor.
Definition
TG4UserIon.h:39
TG4UserIon::GetQ
G4int GetQ() const
Return the ion charge.
Definition
TG4UserIon.h:50
TG4UserIon::TG4UserIon
TG4UserIon(const G4String &name, G4int pdgEncoding, G4int Q)
Standard constructor.
Definition
TG4UserIon.h:34
Generated on
for Geant4 VMC by
1.17.0