18#include "BDSOutputROOTEventLossWorld.hh"
21#include "CLHEP/Units/SystemOfUnits.h"
22#include "BDSHitEnergyDepositionGlobal.hh"
27BDSOutputROOTEventLossWorld::BDSOutputROOTEventLossWorld()
32BDSOutputROOTEventLossWorld::~BDSOutputROOTEventLossWorld()
39 totalEnergy.push_back( (
float) (hit->totalEnergy / CLHEP::GeV));
42 stepLength.push_back( (
float) (hit->stepLength / CLHEP::m));
43 X.push_back( (
float) (hit->
X / CLHEP::m));
44 Y.push_back( (
float) (hit->
Y / CLHEP::m));
45 Z.push_back( (
float) (hit->
Z / CLHEP::m));
46 T.push_back( (
float) (hit->
T / CLHEP::ns));
47 partID.push_back(hit->pdgID);
48 trackID.push_back(hit->trackID);
50 weight.push_back((
float)hit->weight);
51 turn.push_back(hit->turnsTaken);
76void BDSOutputROOTEventLossWorld::Flush()
Information recorded for a step leaving a volume.
G4double T
Global coordinate.
G4double Z
Global coordinate.
G4double X
Global coordinate.
G4double Y
Global coordinate.
G4double postStepKineticEnergy
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.