19#include "BDSOutputROOTEventLossWorld.hh"
22#include "CLHEP/Units/SystemOfUnits.h"
23#include "BDSHitEnergyDepositionGlobal.hh"
28BDSOutputROOTEventLossWorld::BDSOutputROOTEventLossWorld()
33BDSOutputROOTEventLossWorld::~BDSOutputROOTEventLossWorld()
40 totalEnergy.push_back( (
float) (hit->totalEnergy / CLHEP::GeV));
43 stepLength.push_back( (
float) (hit->stepLength / CLHEP::m));
44 X.push_back( (
float) (hit->
X / CLHEP::m));
45 Y.push_back( (
float) (hit->
Y / CLHEP::m));
46 Z.push_back( (
float) (hit->
Z / CLHEP::m));
47 T.push_back( (
float) (hit->
T / CLHEP::ns));
48 partID.push_back(hit->pdgID);
49 trackID.push_back(hit->trackID);
51 weight.push_back((
float)hit->weight);
52 turn.push_back(hit->turnsTaken);
77void 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.