BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
bdsim
include
BDSPrimaryVertexInformation.hh
1
/*
2
Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3
University of London 2001 - 2023.
4
5
This file is part of BDSIM.
6
7
BDSIM is free software: you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published
9
by the Free Software Foundation version 3 of the License.
10
11
BDSIM is distributed in the hope that it will be useful, but
12
WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
#ifndef BDSPRIMARYVERTEXINFORMATION_H
20
#define BDSPRIMARYVERTEXINFORMATION_H
21
22
#include "BDSParticleCoordsFullGlobal.hh"
23
24
#include "globals.hh"
25
#include "G4VUserPrimaryVertexInformation.hh"
26
27
class
BDSParticleDefinition
;
28
39
class
BDSPrimaryVertexInformation
:
public
G4VUserPrimaryVertexInformation
40
{
41
public
:
42
BDSPrimaryVertexInformation
() =
delete
;
43
BDSPrimaryVertexInformation
(
const
BDSParticleCoordsFullGlobal
& primaryVertexIn,
44
const
BDSParticleDefinition
* particle);
45
BDSPrimaryVertexInformation
(
const
BDSParticleCoordsFullGlobal
& primaryVertexIn,
46
G4double momentumIn,
47
G4double chargeIn,
48
G4double rigidityIn,
49
G4double massIn,
50
G4int
pdgID
,
51
G4int nElectronsIn = 0);
52
virtual
~BDSPrimaryVertexInformation
(){;}
53
55
virtual
void
Print
()
const
;
56
57
BDSParticleCoordsFullGlobal
primaryVertex
;
58
G4double
momentum
;
59
G4double
charge
;
60
G4double
rigidity
;
61
G4double
mass
;
62
G4int
pdgID
;
63
G4int
nElectrons
;
64
};
65
66
#endif
BDSParticleCoordsFullGlobal
A set of particle coordinates in both local and global.
Definition:
BDSParticleCoordsFullGlobal.hh:39
BDSParticleDefinition
Wrapper for particle definition.
Definition:
BDSParticleDefinition.hh:43
BDSPrimaryVertexInformation
Full set of coordinates for association with primary vertex.
Definition:
BDSPrimaryVertexInformation.hh:40
BDSPrimaryVertexInformation::Print
virtual void Print() const
Required implementation by virtual base class.
Definition:
BDSPrimaryVertexInformation.cc:65
BDSPrimaryVertexInformation::momentum
G4double momentum
Magnitude of momentum.
Definition:
BDSPrimaryVertexInformation.hh:58
BDSPrimaryVertexInformation::charge
G4double charge
Effective charge of primary.
Definition:
BDSPrimaryVertexInformation.hh:59
BDSPrimaryVertexInformation::nElectrons
G4int nElectrons
Number of electrons if partially stripped ion or atom.
Definition:
BDSPrimaryVertexInformation.hh:63
BDSPrimaryVertexInformation::mass
G4double mass
Mass of particle - recorded as G4Vertex doesn't take into account electrons.
Definition:
BDSPrimaryVertexInformation.hh:61
BDSPrimaryVertexInformation::primaryVertex
BDSParticleCoordsFullGlobal primaryVertex
Full set of coordinates.
Definition:
BDSPrimaryVertexInformation.hh:57
BDSPrimaryVertexInformation::rigidity
G4double rigidity
Rigidity of particle at construction.
Definition:
BDSPrimaryVertexInformation.hh:60
BDSPrimaryVertexInformation::pdgID
G4int pdgID
Particle Data Group ID number.
Definition:
BDSPrimaryVertexInformation.hh:62
Generated on Mon Aug 14 2023 13:49:30 for BDSIM by
1.9.6