BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
BDSOutputROOTEventInfo.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3University of London 2001 - 2022.
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 BDSOUTPUTROOTEVENTINFO_H
20#define BDSOUTPUTROOTEVENTINFO_H
21
22#include "Rtypes.h"
23#include "TObject.h"
24
25#include <ctime>
26#include <string>
27
34class BDSOutputROOTEventInfo: public TObject
35{
36public:
37 time_t startTime;
38 time_t stopTime;
41 std::string seedStateAtStart;
42 int index;
43 bool aborted;
56 double energyKilled;
57 double energyTotal;
59 long long int nTracks;
60
62
64 void Flush();
65
67 void Fill(const BDSOutputROOTEventInfo* other);
68
69 ClassDef(BDSOutputROOTEventInfo, 6);
70};
71
72#endif
Information pertaining to an individual event.
double energyKilled
Total energy of killed particles that weren't in a sensitive volume.
double energyWorldExitKinetic
Total kinetic energy leaving the world.
void Fill(const BDSOutputROOTEventInfo *other)
Fill from another instance.
double memoryUsageMb
Memory usage (rusage.ru_maxrss).
bool aborted
Whether the event was aborted or not.
double energyWorldExit
Total energy leaving the world.
int index
Number of this event or run.
double energyDepositedWorldContents
Total energy deposited in the world contents for this event.
double energyImpactingApertureKinetic
Total kinetic energy impacting the aperture.
double energyDepositedWorld
Total energy deposited in the world for this event.
double energyDepositedTunnel
Total energy deposited in the tunnel for this event.
long long int nTracks
Number of tracks in the event.
float durationWall
Number of seconds event took (wall time) to complete simulation (not writing out).
double energyDepositedVacuum
Total energy deposited in vacuum volumes.
time_t startTime
Time stamp at start of event.
int nCollimatorsInteracted
Number of collimators primary interacted with.
double energyTotal
Sum of above 5 variables that totals all energy.
bool primaryHitMachine
Wether the primary particle hit the accelerator or not.
double energyDeposited
Total energy deposited in machine (not world or tunnel).
float durationCPU
Number of seconds event took (CPU time).
time_t stopTime
Time stamp at end of event.
std::string seedStateAtStart
Seed state at the start of the event.
double energyImpactingAperture
Total energy impacting the aperture.
bool primaryAbsorbedInCollimator
Whether the primary stopped in a collimator.