ACTARSim
ACTAR TPC Simulation Reference Guide
|
The gas detector part of the ROOT Analysis
Definition at line 40 of file ActarSimROOTAnalGas.hh.
Public Member Functions | |
ActarSimROOTAnalGas () | |
Default constructor... Simply inits. More... | |
~ActarSimROOTAnalGas () | |
Destructor. Makes nothing. More... | |
void | init () |
Makes most of the work of a constructor... More... | |
TTree * | GetEventTree () |
void | SetEventTree (TTree *tree) |
TTree * | GetTracksTree () |
void | SetTracksTree (TTree *tree) |
G4int | GetTheEventID () |
void | SetTheEventID (G4int id) |
G4int | GetTheRunID () |
void | SetTheRunID (G4int id) |
G4int | GetPrimNbOfParticles () |
G4double | GetPrimEnergy () |
G4double | GetPrimTheta () |
G4double | GetPrimPhi () |
void | SetPrimNbOfParticles (G4int nb) |
void | SetPrimEnergy (G4double pe) |
void | SetPrimTheta (G4double pt) |
void | SetPrimPhi (G4double pp) |
void | SetMinStrideLength (G4double val) |
TClonesArray * | getSimpleTrackCA (void) |
void | SetSimpleTrackCA (TClonesArray *CA) |
void | GeneratePrimaries (const G4Event *) |
Actions to perform in the analysis when generating the primaries. More... | |
void | BeginOfRunAction (const G4Run *) |
Actions to perform in the analysis at the begining of the run. More... | |
void | EndOfRunAction (const G4Run *) |
Actions to perform in the analysis at the end of the run. More... | |
void | BeginOfEventAction (const G4Event *) |
Actions to perform in the analysis at the begining of the event. More... | |
void | EndOfEventAction (const G4Event *) |
Actions to perform in the analysis at the end of the event. More... | |
void | UserSteppingAction (const G4Step *) |
Actions to perform in the ACTAR gas detector analysis after each step. More... | |
Private Attributes | |
char * | dirName |
ActarSimData * | theData |
Pointer to data. More... | |
ActarSimTrack * | theTracks |
Pointer to tracks. More... | |
ActarSimSimpleTrack ** | simpleTrack |
Pointer to simple tracks. More... | |
TClonesArray * | simpleTrackCA |
ClonesArray for simple tracks. More... | |
TFile * | simFile |
Local pointer to simFile. More... | |
TTree * | eventTree |
Local pointer to the event tree. More... | |
TTree * | tracksTree |
Local pointer to the tracks tree. More... | |
TH1D * | hStepSumLengthOnGas1 |
Histogram: step Length on gas for first primary. More... | |
TH1D * | hStepSumLengthOnGas2 |
Histogram: step Length on gas for second primary. More... | |
TH1D * | hTotELossOnGas1 |
Histogram: energy Loss on gas for first primary. More... | |
TH1D * | hTotELossOnGas2 |
Histogram: energy Loss on gas for second primary. More... | |
TH2D * | htrackInPads |
Histogram: all tracks projected in pads. More... | |
TH2D * | htrack1InPads |
Histogram: first primary track projected in pads. More... | |
TH2D * | htrack2InPads |
Histogram: second primary track projected in pads. More... | |
TH1D * | hEdepInGas |
Histogram: energy deposit in Gas over the distance. More... | |
TProfile * | hbeamEnergyAtRange |
Histogram profile: ccumulated energy loss and track length of each step. More... | |
TH2D * | htrackFromBeam |
Histogram: tracks from beam direction. More... | |
TH3D * | htrack |
Histogram: 3D track. More... | |
G4double | minStrideLength |
Control of minimum simpleTrack stride length. More... | |
G4PrimaryParticle * | primary |
Storing the primary for accesing during UserStep. More... | |
G4int | primNbOfParticles |
Number of primaries. More... | |
G4double | primEnergy |
Energy of primary. More... | |
G4double | primTheta |
Theta of primary. More... | |
G4double | primPhi |
Phi of primary. More... | |
G4int | theRunID |
Run ID. More... | |
G4int | theEventID |
Event ID. More... | |
#include <ActarSimROOTAnalGas.hh>
ActarSimROOTAnalGas::ActarSimROOTAnalGas | ( | ) |
Default constructor... Simply inits.
Definition at line 52 of file ActarSimROOTAnalGas.cc.
ActarSimROOTAnalGas::~ActarSimROOTAnalGas | ( | ) |
Destructor. Makes nothing.
Definition at line 117 of file ActarSimROOTAnalGas.cc.
void ActarSimROOTAnalGas::BeginOfEventAction | ( | const G4Event * | anEvent | ) |
Actions to perform in the analysis at the begining of the event.
Definition at line 293 of file ActarSimROOTAnalGas.cc.
Referenced by ActarSimROOTAnalysis::BeginOfEventAction(), and SetSimpleTrackCA().
void ActarSimROOTAnalGas::BeginOfRunAction | ( | const G4Run * | aRun | ) |
Actions to perform in the analysis at the begining of the run.
Definition at line 141 of file ActarSimROOTAnalGas.cc.
Referenced by ActarSimROOTAnalysis::BeginOfRunAction(), and SetSimpleTrackCA().
void ActarSimROOTAnalGas::EndOfEventAction | ( | const G4Event * | anEvent | ) |
Actions to perform in the analysis at the end of the event.
Definition at line 299 of file ActarSimROOTAnalGas.cc.
Referenced by ActarSimROOTAnalysis::EndOfEventAction(), and SetSimpleTrackCA().
void ActarSimROOTAnalGas::EndOfRunAction | ( | const G4Run * | aRun | ) |
Actions to perform in the analysis at the end of the run.
Definition at line 281 of file ActarSimROOTAnalGas.cc.
Referenced by ActarSimROOTAnalysis::EndOfRunAction(), and SetSimpleTrackCA().
void ActarSimROOTAnalGas::GeneratePrimaries | ( | const G4Event * | anEvent | ) |
Actions to perform in the analysis when generating the primaries.
Definition at line 122 of file ActarSimROOTAnalGas.cc.
Referenced by ActarSimROOTAnalysis::GeneratePrimaries(), and SetSimpleTrackCA().
|
inline |
Definition at line 89 of file ActarSimROOTAnalGas.hh.
|
inline |
Definition at line 100 of file ActarSimROOTAnalGas.hh.
|
inline |
Definition at line 99 of file ActarSimROOTAnalGas.hh.
|
inline |
Definition at line 102 of file ActarSimROOTAnalGas.hh.
|
inline |
Definition at line 101 of file ActarSimROOTAnalGas.hh.
|
inline |
Definition at line 111 of file ActarSimROOTAnalGas.hh.
|
inline |
Definition at line 94 of file ActarSimROOTAnalGas.hh.
Referenced by EndOfEventAction(), and UserSteppingAction().
|
inline |
Definition at line 96 of file ActarSimROOTAnalGas.hh.
Referenced by EndOfEventAction(), and UserSteppingAction().
|
inline |
Definition at line 91 of file ActarSimROOTAnalGas.hh.
void ActarSimROOTAnalGas::init | ( | ) |
Makes most of the work of a constructor...
Definition at line 58 of file ActarSimROOTAnalGas.cc.
Referenced by ActarSimROOTAnalGas().
|
inline |
Definition at line 90 of file ActarSimROOTAnalGas.hh.
|
inline |
Definition at line 109 of file ActarSimROOTAnalGas.hh.
Referenced by ActarSimROOTAnalysis::SetMinStrideLength().
|
inline |
Definition at line 105 of file ActarSimROOTAnalGas.hh.
|
inline |
Definition at line 104 of file ActarSimROOTAnalGas.hh.
|
inline |
Definition at line 107 of file ActarSimROOTAnalGas.hh.
|
inline |
Definition at line 106 of file ActarSimROOTAnalGas.hh.
|
inline |
Definition at line 112 of file ActarSimROOTAnalGas.hh.
|
inline |
Definition at line 95 of file ActarSimROOTAnalGas.hh.
Referenced by BeginOfEventAction().
|
inline |
Definition at line 97 of file ActarSimROOTAnalGas.hh.
Referenced by BeginOfRunAction().
|
inline |
Definition at line 92 of file ActarSimROOTAnalGas.hh.
void ActarSimROOTAnalGas::UserSteppingAction | ( | const G4Step * | aStep | ) |
Actions to perform in the ACTAR gas detector analysis after each step.
Definition at line 480 of file ActarSimROOTAnalGas.cc.
Referenced by SetSimpleTrackCA(), and ActarSimROOTAnalysis::UserSteppingAction().
|
private |
Definition at line 42 of file ActarSimROOTAnalGas.hh.
Referenced by BeginOfRunAction().
|
private |
Local pointer to the event tree.
Definition at line 51 of file ActarSimROOTAnalGas.hh.
Referenced by GetEventTree(), and init().
|
private |
Histogram profile: ccumulated energy loss and track length of each step.
Definition at line 66 of file ActarSimROOTAnalGas.hh.
Referenced by BeginOfRunAction(), and init().
|
private |
Histogram: energy deposit in Gas over the distance.
Definition at line 64 of file ActarSimROOTAnalGas.hh.
Referenced by BeginOfRunAction(), EndOfRunAction(), init(), and UserSteppingAction().
|
private |
Histogram: step Length on gas for first primary.
Definition at line 54 of file ActarSimROOTAnalGas.hh.
Referenced by BeginOfRunAction(), EndOfEventAction(), and init().
|
private |
Histogram: step Length on gas for second primary.
Definition at line 55 of file ActarSimROOTAnalGas.hh.
Referenced by BeginOfRunAction(), EndOfEventAction(), and init().
|
private |
Histogram: energy Loss on gas for first primary.
Definition at line 57 of file ActarSimROOTAnalGas.hh.
Referenced by BeginOfRunAction(), EndOfEventAction(), and init().
|
private |
Histogram: energy Loss on gas for second primary.
Definition at line 58 of file ActarSimROOTAnalGas.hh.
Referenced by BeginOfRunAction(), EndOfEventAction(), and init().
|
private |
Histogram: 3D track.
Definition at line 70 of file ActarSimROOTAnalGas.hh.
Referenced by BeginOfRunAction(), init(), and UserSteppingAction().
|
private |
Histogram: first primary track projected in pads.
Definition at line 61 of file ActarSimROOTAnalGas.hh.
Referenced by BeginOfRunAction(), init(), and UserSteppingAction().
|
private |
Histogram: second primary track projected in pads.
Definition at line 62 of file ActarSimROOTAnalGas.hh.
Referenced by BeginOfRunAction(), init(), and UserSteppingAction().
|
private |
Histogram: tracks from beam direction.
Definition at line 68 of file ActarSimROOTAnalGas.hh.
Referenced by BeginOfRunAction(), init(), and UserSteppingAction().
|
private |
Histogram: all tracks projected in pads.
Definition at line 60 of file ActarSimROOTAnalGas.hh.
Referenced by BeginOfRunAction(), init(), and UserSteppingAction().
|
private |
Control of minimum simpleTrack stride length.
Definition at line 72 of file ActarSimROOTAnalGas.hh.
Referenced by EndOfEventAction(), and init().
|
private |
Storing the primary for accesing during UserStep.
Definition at line 74 of file ActarSimROOTAnalGas.hh.
Referenced by GeneratePrimaries().
|
private |
Energy of primary.
Definition at line 76 of file ActarSimROOTAnalGas.hh.
Referenced by GeneratePrimaries(), and GetPrimEnergy().
|
private |
Number of primaries.
Definition at line 75 of file ActarSimROOTAnalGas.hh.
Referenced by GeneratePrimaries(), and GetPrimNbOfParticles().
|
private |
Phi of primary.
Definition at line 78 of file ActarSimROOTAnalGas.hh.
Referenced by GeneratePrimaries(), and GetPrimPhi().
|
private |
Theta of primary.
Definition at line 77 of file ActarSimROOTAnalGas.hh.
Referenced by GeneratePrimaries(), and GetPrimTheta().
|
private |
Local pointer to simFile.
Definition at line 50 of file ActarSimROOTAnalGas.hh.
Referenced by BeginOfRunAction(), and init().
|
private |
Pointer to simple tracks.
Definition at line 47 of file ActarSimROOTAnalGas.hh.
Referenced by EndOfEventAction(), and init().
|
private |
ClonesArray for simple tracks.
Definition at line 48 of file ActarSimROOTAnalGas.hh.
Referenced by EndOfEventAction(), getSimpleTrackCA(), and init().
|
private |
Pointer to data.
Definition at line 44 of file ActarSimROOTAnalGas.hh.
Referenced by EndOfEventAction(), and init().
|
private |
|
private |
|
private |
Pointer to tracks.
Definition at line 45 of file ActarSimROOTAnalGas.hh.
Referenced by init(), and UserSteppingAction().
|
private |
Local pointer to the tracks tree.
Definition at line 52 of file ActarSimROOTAnalGas.hh.
Referenced by GetTracksTree(), init(), and UserSteppingAction().