BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSPrimaryVertexInformation.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) BDSIM Collaboration, 2001 - 2026.
3
4This file is part of BDSIM.
5
6BDSIM is free software: you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published
8by the Free Software Foundation version 3 of the License.
9
10BDSIM is distributed in the hope that it will be useful, but
11WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along 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
27
38class BDSPrimaryVertexInformation: public G4VUserPrimaryVertexInformation
39{
40public:
43 const BDSParticleDefinition* particle);
45 G4double momentumIn,
46 G4double chargeIn,
47 G4double rigidityIn,
48 G4double massIn,
49 G4int pdgID,
50 G4int nElectronsIn = 0);
52
54 virtual void Print() const;
55
57 G4double momentum;
58 G4double charge;
59 G4double rigidity;
60 G4double mass;
61 G4int pdgID;
62 G4int nElectrons;
63};
64
65#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.