ACTARSim
ACTAR TPC Simulation Reference Guide
Public Member Functions | Private Attributes | List of all members
ActarSimROOTAnalGas Class Reference

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
 
ActarSimDatatheData
 Pointer to data. More...
 
ActarSimTracktheTracks
 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>

+ Collaboration diagram for ActarSimROOTAnalGas:

Constructor & Destructor Documentation

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.

Member Function Documentation

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().

TTree* ActarSimROOTAnalGas::GetEventTree ( )
inline

Definition at line 89 of file ActarSimROOTAnalGas.hh.

G4double ActarSimROOTAnalGas::GetPrimEnergy ( )
inline

Definition at line 100 of file ActarSimROOTAnalGas.hh.

G4int ActarSimROOTAnalGas::GetPrimNbOfParticles ( )
inline

Definition at line 99 of file ActarSimROOTAnalGas.hh.

G4double ActarSimROOTAnalGas::GetPrimPhi ( )
inline

Definition at line 102 of file ActarSimROOTAnalGas.hh.

G4double ActarSimROOTAnalGas::GetPrimTheta ( )
inline

Definition at line 101 of file ActarSimROOTAnalGas.hh.

TClonesArray* ActarSimROOTAnalGas::getSimpleTrackCA ( void  )
inline

Definition at line 111 of file ActarSimROOTAnalGas.hh.

G4int ActarSimROOTAnalGas::GetTheEventID ( )
inline

Definition at line 94 of file ActarSimROOTAnalGas.hh.

Referenced by EndOfEventAction(), and UserSteppingAction().

G4int ActarSimROOTAnalGas::GetTheRunID ( )
inline

Definition at line 96 of file ActarSimROOTAnalGas.hh.

Referenced by EndOfEventAction(), and UserSteppingAction().

TTree* ActarSimROOTAnalGas::GetTracksTree ( )
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().

void ActarSimROOTAnalGas::SetEventTree ( TTree *  tree)
inline

Definition at line 90 of file ActarSimROOTAnalGas.hh.

void ActarSimROOTAnalGas::SetMinStrideLength ( G4double  val)
inline

Definition at line 109 of file ActarSimROOTAnalGas.hh.

Referenced by ActarSimROOTAnalysis::SetMinStrideLength().

void ActarSimROOTAnalGas::SetPrimEnergy ( G4double  pe)
inline

Definition at line 105 of file ActarSimROOTAnalGas.hh.

void ActarSimROOTAnalGas::SetPrimNbOfParticles ( G4int  nb)
inline

Definition at line 104 of file ActarSimROOTAnalGas.hh.

void ActarSimROOTAnalGas::SetPrimPhi ( G4double  pp)
inline

Definition at line 107 of file ActarSimROOTAnalGas.hh.

void ActarSimROOTAnalGas::SetPrimTheta ( G4double  pt)
inline

Definition at line 106 of file ActarSimROOTAnalGas.hh.

void ActarSimROOTAnalGas::SetSimpleTrackCA ( TClonesArray *  CA)
inline

Definition at line 112 of file ActarSimROOTAnalGas.hh.

void ActarSimROOTAnalGas::SetTheEventID ( G4int  id)
inline

Definition at line 95 of file ActarSimROOTAnalGas.hh.

Referenced by BeginOfEventAction().

void ActarSimROOTAnalGas::SetTheRunID ( G4int  id)
inline

Definition at line 97 of file ActarSimROOTAnalGas.hh.

Referenced by BeginOfRunAction().

void ActarSimROOTAnalGas::SetTracksTree ( TTree *  tree)
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().

Member Data Documentation

char* ActarSimROOTAnalGas::dirName
private

Definition at line 42 of file ActarSimROOTAnalGas.hh.

Referenced by BeginOfRunAction().

TTree* ActarSimROOTAnalGas::eventTree
private

Local pointer to the event tree.

Definition at line 51 of file ActarSimROOTAnalGas.hh.

Referenced by GetEventTree(), and init().

TProfile* ActarSimROOTAnalGas::hbeamEnergyAtRange
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().

TH1D* ActarSimROOTAnalGas::hEdepInGas
private

Histogram: energy deposit in Gas over the distance.

Definition at line 64 of file ActarSimROOTAnalGas.hh.

Referenced by BeginOfRunAction(), EndOfRunAction(), init(), and UserSteppingAction().

TH1D* ActarSimROOTAnalGas::hStepSumLengthOnGas1
private

Histogram: step Length on gas for first primary.

Definition at line 54 of file ActarSimROOTAnalGas.hh.

Referenced by BeginOfRunAction(), EndOfEventAction(), and init().

TH1D* ActarSimROOTAnalGas::hStepSumLengthOnGas2
private

Histogram: step Length on gas for second primary.

Definition at line 55 of file ActarSimROOTAnalGas.hh.

Referenced by BeginOfRunAction(), EndOfEventAction(), and init().

TH1D* ActarSimROOTAnalGas::hTotELossOnGas1
private

Histogram: energy Loss on gas for first primary.

Definition at line 57 of file ActarSimROOTAnalGas.hh.

Referenced by BeginOfRunAction(), EndOfEventAction(), and init().

TH1D* ActarSimROOTAnalGas::hTotELossOnGas2
private

Histogram: energy Loss on gas for second primary.

Definition at line 58 of file ActarSimROOTAnalGas.hh.

Referenced by BeginOfRunAction(), EndOfEventAction(), and init().

TH3D* ActarSimROOTAnalGas::htrack
private

Histogram: 3D track.

Definition at line 70 of file ActarSimROOTAnalGas.hh.

Referenced by BeginOfRunAction(), init(), and UserSteppingAction().

TH2D* ActarSimROOTAnalGas::htrack1InPads
private

Histogram: first primary track projected in pads.

Definition at line 61 of file ActarSimROOTAnalGas.hh.

Referenced by BeginOfRunAction(), init(), and UserSteppingAction().

TH2D* ActarSimROOTAnalGas::htrack2InPads
private

Histogram: second primary track projected in pads.

Definition at line 62 of file ActarSimROOTAnalGas.hh.

Referenced by BeginOfRunAction(), init(), and UserSteppingAction().

TH2D* ActarSimROOTAnalGas::htrackFromBeam
private

Histogram: tracks from beam direction.

Definition at line 68 of file ActarSimROOTAnalGas.hh.

Referenced by BeginOfRunAction(), init(), and UserSteppingAction().

TH2D* ActarSimROOTAnalGas::htrackInPads
private

Histogram: all tracks projected in pads.

Definition at line 60 of file ActarSimROOTAnalGas.hh.

Referenced by BeginOfRunAction(), init(), and UserSteppingAction().

G4double ActarSimROOTAnalGas::minStrideLength
private

Control of minimum simpleTrack stride length.

Definition at line 72 of file ActarSimROOTAnalGas.hh.

Referenced by EndOfEventAction(), and init().

G4PrimaryParticle* ActarSimROOTAnalGas::primary
private

Storing the primary for accesing during UserStep.

Definition at line 74 of file ActarSimROOTAnalGas.hh.

Referenced by GeneratePrimaries().

G4double ActarSimROOTAnalGas::primEnergy
private

Energy of primary.

Definition at line 76 of file ActarSimROOTAnalGas.hh.

Referenced by GeneratePrimaries(), and GetPrimEnergy().

G4int ActarSimROOTAnalGas::primNbOfParticles
private

Number of primaries.

Definition at line 75 of file ActarSimROOTAnalGas.hh.

Referenced by GeneratePrimaries(), and GetPrimNbOfParticles().

G4double ActarSimROOTAnalGas::primPhi
private

Phi of primary.

Definition at line 78 of file ActarSimROOTAnalGas.hh.

Referenced by GeneratePrimaries(), and GetPrimPhi().

G4double ActarSimROOTAnalGas::primTheta
private

Theta of primary.

Definition at line 77 of file ActarSimROOTAnalGas.hh.

Referenced by GeneratePrimaries(), and GetPrimTheta().

TFile* ActarSimROOTAnalGas::simFile
private

Local pointer to simFile.

Definition at line 50 of file ActarSimROOTAnalGas.hh.

Referenced by BeginOfRunAction(), and init().

ActarSimSimpleTrack** ActarSimROOTAnalGas::simpleTrack
private

Pointer to simple tracks.

Definition at line 47 of file ActarSimROOTAnalGas.hh.

Referenced by EndOfEventAction(), and init().

TClonesArray* ActarSimROOTAnalGas::simpleTrackCA
private

ClonesArray for simple tracks.

Definition at line 48 of file ActarSimROOTAnalGas.hh.

Referenced by EndOfEventAction(), getSimpleTrackCA(), and init().

ActarSimData* ActarSimROOTAnalGas::theData
private

Pointer to data.

Definition at line 44 of file ActarSimROOTAnalGas.hh.

Referenced by EndOfEventAction(), and init().

G4int ActarSimROOTAnalGas::theEventID
private

Event ID.

Definition at line 81 of file ActarSimROOTAnalGas.hh.

Referenced by GetTheEventID().

G4int ActarSimROOTAnalGas::theRunID
private

Run ID.

Definition at line 80 of file ActarSimROOTAnalGas.hh.

Referenced by GetTheRunID().

ActarSimTrack* ActarSimROOTAnalGas::theTracks
private

Pointer to tracks.

Definition at line 45 of file ActarSimROOTAnalGas.hh.

Referenced by init(), and UserSteppingAction().

TTree* ActarSimROOTAnalGas::tracksTree
private

Local pointer to the tracks tree.

Definition at line 52 of file ActarSimROOTAnalGas.hh.

Referenced by GetTracksTree(), init(), and UserSteppingAction().


The documentation for this class was generated from the following files: