BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSParticleCoordsFull.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 BDSPARTICLECOORDSFULL_H
19#define BDSPARTICLECOORDSFULL_H
20
21#include "BDSParticleCoords.hh"
22
23#include "G4Types.hh"
24
25#include <ostream>
26
34{
35public:
37 BDSParticleCoordsFull(G4double xIn,
38 G4double yIn,
39 G4double zIn,
40 G4double xpIn,
41 G4double ypIn,
42 G4double zpIn,
43 G4double tIn,
44 G4double sIn,
45 G4double totalEnergyIn,
46 G4double weightIn);
48 G4double sIn,
49 G4double totalEnergyIn,
50 G4double weightIn);
51
52 virtual ~BDSParticleCoordsFull(){;}
53
55 friend std::ostream& operator<< (std::ostream& out, BDSParticleCoordsFull const& p);
56
58 virtual void Print(std::ostream& out) const;
59
60 G4double s;
61 G4double totalEnergy;
62 G4double weight;
63};
64
65#endif
A set of particle coordinates including energy and weight.
G4double s
TODO - remove this. Unused. S (global) is calculated from S0 + z.
virtual void Print(std::ostream &out) const
Actual print out method so it can be called from a derived class.
friend std::ostream & operator<<(std::ostream &out, BDSParticleCoordsFull const &p)
Output stream.
A set of particle coordinates.