BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
__w
bdsim
bdsim
include
BDSOutputROOTEventTrajectoryPoint.hh
1
/*
2
Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3
University of London 2001 - 2024.
4
5
This file is part of BDSIM.
6
7
BDSIM is free software: you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published
9
by the Free Software Foundation version 3 of the License.
10
11
BDSIM is distributed in the hope that it will be useful, but
12
WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along 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
30
class
BDSOutputROOTEventTrajectoryPoint
:
public
TObject
31
{
32
public
:
33
BDSOutputROOTEventTrajectoryPoint
();
34
BDSOutputROOTEventTrajectoryPoint
(
int
partIDIn,
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);
59
virtual
~BDSOutputROOTEventTrajectoryPoint
();
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;
87
int
materialID
;
88
int
stepIndex
;
89
90
ClassDef(
BDSOutputROOTEventTrajectoryPoint
,6);
91
};
92
93
#endif
BDSOutputROOTEventTrajectoryPoint
Structure to record a trajectory point.
Definition
BDSOutputROOTEventTrajectoryPoint.hh:31
BDSOutputROOTEventTrajectoryPoint::stepIndex
int stepIndex
Index along trajectory this point is.
Definition
BDSOutputROOTEventTrajectoryPoint.hh:88
BDSOutputROOTEventTrajectoryPoint::materialID
int materialID
We allow this to be signed so we can use -1 to signify unknown.
Definition
BDSOutputROOTEventTrajectoryPoint.hh:87
Generated on Sat Oct 18 2025 18:31:04 for BDSIM by
1.9.8