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