10 #ifndef ActarSimROOTAnalGas_h 11 #define ActarSimROOTAnalGas_h 1 15 class G4VPhysicalVolume;
21 #include "G4ClassificationOfNewTrack.hh" 22 #include "G4TrackStatus.hh" 24 #include "G4PrimaryParticle.hh" void SetMinStrideLength(G4double val)
void SetTracksTree(TTree *tree)
void SetPrimPhi(G4double pp)
void SetPrimNbOfParticles(G4int nb)
TTree * eventTree
Local pointer to the event tree.
TH1D * hStepSumLengthOnGas1
Histogram: step Length on gas for first primary.
ActarSimROOTAnalGas()
Default constructor... Simply inits.
TTree * tracksTree
Local pointer to the tracks tree.
void SetTheRunID(G4int id)
void EndOfRunAction(const G4Run *)
Actions to perform in the analysis at the end of the run.
TH3D * htrack
Histogram: 3D track.
G4PrimaryParticle * primary
Storing the primary for accesing during UserStep.
TH2D * htrackInPads
Histogram: all tracks projected in pads.
void SetEventTree(TTree *tree)
TClonesArray * simpleTrackCA
ClonesArray for simple tracks.
G4double primTheta
Theta of primary.
ActarSimTrack * theTracks
Pointer to tracks.
~ActarSimROOTAnalGas()
Destructor. Makes nothing.
void SetSimpleTrackCA(TClonesArray *CA)
void BeginOfEventAction(const G4Event *)
Actions to perform in the analysis at the begining of the event.
void BeginOfRunAction(const G4Run *)
Actions to perform in the analysis at the begining of the run.
G4double primPhi
Phi of primary.
TH2D * htrack2InPads
Histogram: second primary track projected in pads.
G4int GetPrimNbOfParticles()
void SetTheEventID(G4int id)
void SetPrimEnergy(G4double pe)
ActarSimData * theData
Pointer to data.
void GeneratePrimaries(const G4Event *)
Actions to perform in the analysis when generating the primaries.
TProfile * hbeamEnergyAtRange
Histogram profile: ccumulated energy loss and track length of each step.
G4int primNbOfParticles
Number of primaries.
TFile * simFile
Local pointer to simFile.
G4double primEnergy
Energy of primary.
void SetPrimTheta(G4double pt)
TH1D * hEdepInGas
Histogram: energy deposit in Gas over the distance.
TH1D * hTotELossOnGas1
Histogram: energy Loss on gas for first primary.
G4double minStrideLength
Control of minimum simpleTrack stride length.
TClonesArray * getSimpleTrackCA(void)
TH1D * hStepSumLengthOnGas2
Histogram: step Length on gas for second primary.
void init()
Makes most of the work of a constructor...
G4int theEventID
Event ID.
ActarSimSimpleTrack ** simpleTrack
Pointer to simple tracks.
void EndOfEventAction(const G4Event *)
Actions to perform in the analysis at the end of the event.
TH2D * htrackFromBeam
Histogram: tracks from beam direction.
TH2D * htrack1InPads
Histogram: first primary track projected in pads.
void UserSteppingAction(const G4Step *)
Actions to perform in the ACTAR gas detector analysis after each step.
TH1D * hTotELossOnGas2
Histogram: energy Loss on gas for second primary.