BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
BDSPrimaryVertexInformation.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3University of London 2001 - 2022.
4
5This file is part of BDSIM.
6
7BDSIM is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published
9by the Free Software Foundation version 3 of the License.
10
11BDSIM is distributed in the hope that it will be useful, but
12WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along 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
28
39class BDSPrimaryVertexInformation: public G4VUserPrimaryVertexInformation
40{
41public:
44 const BDSParticleDefinition* particle);
46 G4double momentumIn,
47 G4double chargeIn,
48 G4double rigidityIn,
49 G4double massIn,
50 G4int pdgID,
51 G4int nElectronsIn = 0);
53
55 virtual void Print() const;
56
58 G4double momentum;
59 G4double charge;
60 G4double rigidity;
61 G4double mass;
62 G4int pdgID;
63 G4int nElectrons;
64};
65
66#endif
A set of particle coordinates in both local and global.
Wrapper for particle definition.
Full set of coordinates for association with primary vertex.
virtual void Print() const
Required implementation by virtual base class.
G4double momentum
Magnitude of momentum.
G4double charge
Effective charge of primary.
G4int nElectrons
Number of electrons if partially stripped ion or atom.
G4double mass
Mass of particle - recorded as G4Vertex doesn't take into account electrons.
BDSParticleCoordsFullGlobal primaryVertex
Full set of coordinates.
G4double rigidity
Rigidity of particle at construction.
G4int pdgID
Particle Data Group ID number.