#include <BDSOutputROOT.hh>
Inheritance diagram for BDSOutputROOT:
Public Member Functions | |
BDSOutputROOT () | |
virtual | ~BDSOutputROOT () |
virtual void | WriteHits (BDSSamplerHitsCollection *) |
write sampler hit collection | |
virtual void | WriteEnergyLoss (BDSEnergyCounterHitsCollection *) |
make energy loss histo | |
virtual void | WritePrimaryLoss (BDSEnergyCounterHit *) |
write primary loss histo | |
virtual void | WritePrimaryHit (BDSEnergyCounterHit *) |
write primary hits histo | |
virtual void | WriteTrajectory (std::vector< BDSTrajectory * > &TrajVec) |
write a trajectory | |
virtual void | WritePrimary (G4String samplerName, G4double E, G4double x0, G4double y0, G4double z0, G4double xp, G4double yp, G4double zp, G4double t, G4double weight, G4int PDGType, G4int nEvent, G4int TurnsTaken) |
write primary hit | |
virtual void | WriteHistogram (BDSHistogram1D *histogramIn) |
write a histogram | |
virtual void | Commit () |
write and close and open new file | |
virtual void | Write () |
close the file | |
Private Member Functions | |
void | Init () |
close and open new file | |
void | BuildSamplerTree (G4String name) |
output initialisation | |
void | WriteRootHit (G4String Name, G4double InitMom, G4double InitX, G4double InitY, G4double InitZ, G4double InitXPrime, G4double InitYPrime, G4double InitZPrime, G4double InitT, G4double ProdMom, G4double ProdX, G4double ProdY, G4double ProdZ, G4double ProdXPrime, G4double ProdYPrime, G4double ProdZPrime, G4double ProdT, G4double LastScatMom, G4double LastScatX, G4double LastScatY, G4double LastScatZ, G4double LastScatXPrime, G4double LastScatYPrime, G4double LastScatZPrime, G4double LastScatT, G4double Mom, G4double X, G4double Y, G4double Z, G4double XPrime, G4double YPrime, G4double ZPrime, G4double T, G4double GlobalX, G4double GlobalY, G4double GlobalZ, G4double GlobalXPrime, G4double GlobalYPrime, G4double GlobalZPrime, G4double S, G4double Weight, G4int PDGtype, G4int EventNo, G4int ParentID, G4int TrackID, G4int TurnsTaken) |
Private Attributes | |
TFile * | theRootOutputFile |
TTree * | PrecisionRegionEnergyLossTree |
TTree * | EnergyLossTree |
TTree * | PrimaryLossTree |
TTree * | PrimaryHitsTree |
float | x0 |
float | xp0 |
float | y0 |
float | yp0 |
float | z0 |
float | zp0 |
float | E0 |
float | t0 |
float | x_prod |
float | xp_prod |
float | y_prod |
float | yp_prod |
float | z_prod |
float | zp_prod |
float | E_prod |
float | t_prod |
float | x_lastScat |
float | xp_lastScat |
float | y_lastScat |
float | yp_lastScat |
float | z_lastScat |
float | zp_lastScat |
float | E_lastScat |
float | t_lastScat |
float | x |
float | xp |
float | y |
float | yp |
float | z |
float | zp |
float | E |
float | t |
float | X |
float | Xp |
float | Y |
float | Yp |
float | Z |
float | Zp |
float | s |
float | weight |
int | part |
int | nev |
int | pID |
int | track_id |
int | turnnumber |
float | S_el |
energy loss histogram variables | |
float | E_el |
float | X_pl |
primary loss histogram variables | |
float | Y_pl |
float | Z_pl |
float | S_pl |
float | x_pl |
float | y_pl |
float | z_pl |
float | E_pl |
float | weight_pl |
int | part_pl |
int | turnnumber_pl |
int | eventno_pl |
float | X_ph |
primary hits histogram variables | |
float | Y_ph |
float | Z_ph |
float | S_ph |
float | x_ph |
float | y_ph |
float | z_ph |
float | E_ph |
float | weight_ph |
int | part_ph |
int | turnnumber_ph |
int | eventno_ph |
float | X_el_p |
precision energy loss variables | |
float | Y_el_p |
float | Z_el_p |
float | S_el_p |
float | x_el_p |
float | y_el_p |
float | z_el_p |
float | E_el_p |
int | part_el_p |
int | weight_el_p |
int | turnnumber_el_p |
int | eventno_el_p |
char | volumeName_el_p [100] |
Write BDSIM output to ROOT files. Originally part of BDSIM code base and recently developed and maintained by Jochem Snuverink, Lawrence Deacon & Laurie Nevay
Definition at line 24 of file BDSOutputROOT.hh.