BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSOutputROOTEventLossWorld.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 BDSOUTPUTROOTEVENTLOSSWORLD_H
20#define BDSOUTPUTROOTEVENTLOSSWORLD_H
21
22#ifndef __ROOTBUILD__
24#endif
25
26#include "TObject.h"
27
28#include <vector>
29
39class BDSOutputROOTEventLossWorld: public TObject
40{
41public:
42 int n = 0;
43 std::vector<float> totalEnergy;
44 std::vector<float> preStepKineticEnergy;
45 std::vector<float> postStepKineticEnergy;
46 std::vector<float> stepLength;
47
49 std::vector<float> X;
50 std::vector<float> Y;
51 std::vector<float> Z;
53
54 std::vector<float> T;
55 std::vector<int> partID;
56 std::vector<int> trackID;
57 std::vector<int> parentID;
58 std::vector<float> weight;
59 std::vector<int> turn;
60
63#ifndef __ROOTBUILD__
64 void Fill(const BDSHitEnergyDepositionGlobal* hit);
65#endif
67 void Fill(const BDSOutputROOTEventLossWorld* other);
68 virtual void Flush();
69
71};
72
73
74#endif
Information recorded for a step leaving a volume.
Data stored for world hits per event.
std::vector< float > T
Global time (time since beginning of event).
std::vector< int > trackID
TrackID that created the deposit.
std::vector< float > totalEnergy
Energy deposited in step.
std::vector< int > parentID
ParentID that created the deposit.
std::vector< int > partID
ParticleID that create the deposit.
std::vector< int > turn
Turn number.
std::vector< float > preStepKineticEnergy
Kinetic energy in GeV at pre step point.
std::vector< float > weight
Weight.
std::vector< float > stepLength
Step length.
std::vector< float > postStepKineticEnergy
Kinetic energy in GeV at post step point.