ACTARSim
ACTAR TPC Simulation Reference Guide
|
The ACTAR Silicon detectorpart of the ROOT Analysis
Definition at line 36 of file ActarSimROOTAnalSil.hh.
Public Member Functions | |
ActarSimROOTAnalSil () | |
Constructor. More... | |
~ActarSimROOTAnalSil () | |
Destructor. Makes nothing. More... | |
G4int | GetTheEventID () |
void | SetTheEventID (G4int id) |
G4int | GetTheRunID () |
void | SetTheRunID (G4int id) |
TBranch * | GetSilHitsBranch () |
void | SetSilHitsBranch (TBranch *aBranch) |
TClonesArray * | getSilHitsCA (void) |
void | SetSilHitsCA (TClonesArray *CA) |
void | GeneratePrimaries (const G4Event *) |
Actions to perform in the silicon anal when generating the primaries. More... | |
void | BeginOfRunAction (const G4Run *) |
Actions to perform in the silicon anal at the begining of the run. More... | |
void | BeginOfEventAction (const G4Event *) |
Actions to perform in the silicon anal at the begining of the event. More... | |
void | EndOfEventAction (const G4Event *) |
void | FillingHits (const G4Event *) |
void | AddSilHit (ActarSimSilHit *cHit, ActarSimSilGeantHit *gHit, G4int mode) |
void | UserSteppingAction (const G4Step *) |
Actions to perform in the ACTAR gas detector analysis after each step. More... | |
Private Attributes | |
char * | dirName |
ActarSimSilHit ** | theSilHit |
Pointer to the hits in the silicons. More... | |
TClonesArray * | silHitCA |
ClonesArray of the hits in the silicons. More... | |
TFile * | simFile |
Local pointer to simFile. More... | |
TTree * | eventTree |
Local pointer to the event tree. More... | |
TBranch * | silHitsBranch |
Local branch for the silicon hits. More... | |
G4int | theRunID |
Run ID. More... | |
G4int | theEventID |
Event ID. More... | |
#include <ActarSimROOTAnalSil.hh>
ActarSimROOTAnalSil::ActarSimROOTAnalSil | ( | ) |
Constructor.
Definition at line 44 of file ActarSimROOTAnalSil.cc.
ActarSimROOTAnalSil::~ActarSimROOTAnalSil | ( | ) |
Destructor. Makes nothing.
Definition at line 62 of file ActarSimROOTAnalSil.cc.
void ActarSimROOTAnalSil::AddSilHit | ( | ActarSimSilHit * | cHit, |
ActarSimSilGeantHit * | gHit, | ||
G4int | mode | ||
) |
Function to move the information from the ActarSimSilGeantHit (a step hit) to ActarSimSilHit (a simple primary representation in the silicon)
Two modes are possible:
Definition at line 207 of file ActarSimROOTAnalSil.cc.
Referenced by FillingHits(), and SetSilHitsCA().
void ActarSimROOTAnalSil::BeginOfEventAction | ( | const G4Event * | anEvent | ) |
Actions to perform in the silicon anal at the begining of the event.
Definition at line 94 of file ActarSimROOTAnalSil.cc.
Referenced by ActarSimROOTAnalysis::BeginOfEventAction(), and SetSilHitsCA().
void ActarSimROOTAnalSil::BeginOfRunAction | ( | const G4Run * | aRun | ) |
Actions to perform in the silicon anal at the begining of the run.
Definition at line 73 of file ActarSimROOTAnalSil.cc.
Referenced by ActarSimROOTAnalysis::BeginOfRunAction(), and SetSilHitsCA().
void ActarSimROOTAnalSil::EndOfEventAction | ( | const G4Event * | anEvent | ) |
Actions to perform in the silicon anal at the beginning of the run Defining the ActarSimSilHit from the ActarSimSilGeantHits
Definition at line 101 of file ActarSimROOTAnalSil.cc.
Referenced by ActarSimROOTAnalysis::EndOfEventAction(), and SetSilHitsCA().
void ActarSimROOTAnalSil::FillingHits | ( | const G4Event * | anEvent | ) |
Defining the ActarSimSilHits from the ActarSimSilGeantHits
A simple algorithm checking the number of primaries reaching the Sil and calculating their mean parameters taking into account their energy deposition on the silicons NOTE that only primaries can produce Hits following this scheme
Definition at line 112 of file ActarSimROOTAnalSil.cc.
Referenced by EndOfEventAction(), and SetSilHitsCA().
void ActarSimROOTAnalSil::GeneratePrimaries | ( | const G4Event * | anEvent | ) |
Actions to perform in the silicon anal when generating the primaries.
Definition at line 67 of file ActarSimROOTAnalSil.cc.
Referenced by ActarSimROOTAnalysis::GeneratePrimaries(), and SetSilHitsCA().
|
inline |
Definition at line 60 of file ActarSimROOTAnalSil.hh.
|
inline |
Definition at line 63 of file ActarSimROOTAnalSil.hh.
|
inline |
Definition at line 55 of file ActarSimROOTAnalSil.hh.
Referenced by AddSilHit().
|
inline |
Definition at line 57 of file ActarSimROOTAnalSil.hh.
Referenced by AddSilHit().
|
inline |
Definition at line 61 of file ActarSimROOTAnalSil.hh.
|
inline |
Definition at line 64 of file ActarSimROOTAnalSil.hh.
|
inline |
Definition at line 56 of file ActarSimROOTAnalSil.hh.
Referenced by BeginOfEventAction().
|
inline |
Definition at line 58 of file ActarSimROOTAnalSil.hh.
Referenced by BeginOfRunAction().
void ActarSimROOTAnalSil::UserSteppingAction | ( | const G4Step * | aStep | ) |
Actions to perform in the ACTAR gas detector analysis after each step.
Definition at line 258 of file ActarSimROOTAnalSil.cc.
Referenced by SetSilHitsCA(), and ActarSimROOTAnalysis::UserSteppingAction().
|
private |
Definition at line 38 of file ActarSimROOTAnalSil.hh.
Referenced by BeginOfRunAction().
|
private |
Local pointer to the event tree.
Definition at line 44 of file ActarSimROOTAnalSil.hh.
Referenced by ActarSimROOTAnalSil().
|
private |
ClonesArray of the hits in the silicons.
Definition at line 41 of file ActarSimROOTAnalSil.hh.
Referenced by ActarSimROOTAnalSil(), FillingHits(), and getSilHitsCA().
|
private |
Local branch for the silicon hits.
Definition at line 46 of file ActarSimROOTAnalSil.hh.
Referenced by ActarSimROOTAnalSil(), and GetSilHitsBranch().
|
private |
Local pointer to simFile.
Definition at line 43 of file ActarSimROOTAnalSil.hh.
Referenced by ActarSimROOTAnalSil(), and BeginOfRunAction().
|
private |
|
private |
|
private |
Pointer to the hits in the silicons.
Definition at line 40 of file ActarSimROOTAnalSil.hh.
Referenced by FillingHits().