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

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>

+ Collaboration diagram for ActarSimROOTAnalSil:

Constructor & Destructor Documentation

ActarSimROOTAnalSil::ActarSimROOTAnalSil ( )

Constructor.

Definition at line 44 of file ActarSimROOTAnalSil.cc.

ActarSimROOTAnalSil::~ActarSimROOTAnalSil ( )

Destructor. Makes nothing.

Definition at line 62 of file ActarSimROOTAnalSil.cc.

Member Function Documentation

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

TBranch* ActarSimROOTAnalSil::GetSilHitsBranch ( )
inline

Definition at line 60 of file ActarSimROOTAnalSil.hh.

TClonesArray* ActarSimROOTAnalSil::getSilHitsCA ( void  )
inline

Definition at line 63 of file ActarSimROOTAnalSil.hh.

G4int ActarSimROOTAnalSil::GetTheEventID ( )
inline

Definition at line 55 of file ActarSimROOTAnalSil.hh.

Referenced by AddSilHit().

G4int ActarSimROOTAnalSil::GetTheRunID ( )
inline

Definition at line 57 of file ActarSimROOTAnalSil.hh.

Referenced by AddSilHit().

void ActarSimROOTAnalSil::SetSilHitsBranch ( TBranch *  aBranch)
inline

Definition at line 61 of file ActarSimROOTAnalSil.hh.

void ActarSimROOTAnalSil::SetSilHitsCA ( TClonesArray *  CA)
inline

Definition at line 64 of file ActarSimROOTAnalSil.hh.

void ActarSimROOTAnalSil::SetTheEventID ( G4int  id)
inline

Definition at line 56 of file ActarSimROOTAnalSil.hh.

Referenced by BeginOfEventAction().

void ActarSimROOTAnalSil::SetTheRunID ( G4int  id)
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().

Member Data Documentation

char* ActarSimROOTAnalSil::dirName
private

Definition at line 38 of file ActarSimROOTAnalSil.hh.

Referenced by BeginOfRunAction().

TTree* ActarSimROOTAnalSil::eventTree
private

Local pointer to the event tree.

Definition at line 44 of file ActarSimROOTAnalSil.hh.

Referenced by ActarSimROOTAnalSil().

TClonesArray* ActarSimROOTAnalSil::silHitCA
private

ClonesArray of the hits in the silicons.

Definition at line 41 of file ActarSimROOTAnalSil.hh.

Referenced by ActarSimROOTAnalSil(), FillingHits(), and getSilHitsCA().

TBranch* ActarSimROOTAnalSil::silHitsBranch
private

Local branch for the silicon hits.

Definition at line 46 of file ActarSimROOTAnalSil.hh.

Referenced by ActarSimROOTAnalSil(), and GetSilHitsBranch().

TFile* ActarSimROOTAnalSil::simFile
private

Local pointer to simFile.

Definition at line 43 of file ActarSimROOTAnalSil.hh.

Referenced by ActarSimROOTAnalSil(), and BeginOfRunAction().

G4int ActarSimROOTAnalSil::theEventID
private

Event ID.

Definition at line 49 of file ActarSimROOTAnalSil.hh.

Referenced by GetTheEventID().

G4int ActarSimROOTAnalSil::theRunID
private

Run ID.

Definition at line 48 of file ActarSimROOTAnalSil.hh.

Referenced by GetTheRunID().

ActarSimSilHit** ActarSimROOTAnalSil::theSilHit
private

Pointer to the hits in the silicons.

Definition at line 40 of file ActarSimROOTAnalSil.hh.

Referenced by FillingHits().


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