BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSOutputROOTEventTrajectoryPoint.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3University of London 2001 - 2023.
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 BDSOUTPUTROOTEVENTTRAJECTORYPOINT_H
20#define BDSOUTPUTROOTEVENTTRAJECTORYPOINT_H
21#include "Rtypes.h"
22#include "TVector3.h"
23
31{
32public:
35 unsigned int trackIDIn,
36 unsigned int parentIDIn,
37 unsigned int parentIndexIn,
38 int processTypeIn,
39 int processSubTypeIn,
40 double weightIn,
41 double energyDepositedIn,
42 const TVector3& positionIn,
43 const TVector3& momentumIn,
44 int modelIn,
45 double timeIn,
46 const TVector3& positionLocalIn,
47 const TVector3& momentumLocalIn,
48 double chargeIn,
49 double kineticEnergyIn,
50 int turnsTakenIn,
51 double rigidityIn,
52 double massIn,
53 bool isIonIn,
54 int ionAIn,
55 int ionZIn,
56 int nElectronsIn,
57 int materialIDIn,
58 int stepIndexIn = -1);
60
61 void ClearContents();
62 virtual void Clear(Option_t*) {ClearContents();}
63
64 int partID;
65 unsigned int trackID;
66 unsigned int parentID;
67 unsigned int parentIndex;
68 int postProcessType;
69 int postProcessSubType;
70 double weight;
71 double energyDeposited;
72 TVector3 position;
73 TVector3 momentum;
74 int model;
75 double time;
76 TVector3 positionLocal;
77 TVector3 momentumLocal;
78 double charge;
79 double kineticEnergy;
80 int turnsTaken;
81 double rigidity;
82 double mass;
83 bool isIon;
84 int ionA;
85 int ionZ;
86 int nElectrons;
89
91};
92
93#endif
Structure to record a trajectory point.
int stepIndex
Index along trajectory this point is.
int materialID
We allow this to be signed so we can use -1 to signify unknown.