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

The ACTAR SilRingicon detectorpart of the ROOT Analysis

Definition at line 36 of file ActarSimROOTAnalSilRing.hh.

Public Member Functions

 ActarSimROOTAnalSilRing ()
 Constructor. More...
 
 ~ActarSimROOTAnalSilRing ()
 Destructor. Makes nothing. More...
 
G4int GetTheEventID ()
 
void SetTheEventID (G4int id)
 
G4int GetTheRunID ()
 
void SetTheRunID (G4int id)
 
TBranch * GetSilRingHitsBranch ()
 
void SetSilRingHitsBranch (TBranch *aBranch)
 
TClonesArray * getSilRingHitsCA (void)
 
void SetSilRingHitsCA (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 AddSilRingHit (ActarSimSilRingHit *cHit, ActarSimSilRingGeantHit *gHit, G4int mode)
 
void UserSteppingAction (const G4Step *)
 Actions to perform in the ACTAR gas detector analysis after each step. More...
 

Private Attributes

char * dirName
 
ActarSimSilRingHit ** theSilRingHit
 Pointer to the hits in the silicon ring. More...
 
TClonesArray * silRingHitCA
 ClonesArray of the hits in the silicon ring. More...
 
TFile * simFile
 Local pointer to simFile. More...
 
TTree * eventTree
 Local pointer to the event tree. More...
 
TBranch * silRingHitsBranch
 Local branch for the silicon hits. More...
 
G4int theRunID
 Run ID. More...
 
G4int theEventID
 Event ID. More...
 

#include <ActarSimROOTAnalSilRing.hh>

+ Collaboration diagram for ActarSimROOTAnalSilRing:

Constructor & Destructor Documentation

ActarSimROOTAnalSilRing::ActarSimROOTAnalSilRing ( )

Constructor.

Definition at line 44 of file ActarSimROOTAnalSilRing.cc.

ActarSimROOTAnalSilRing::~ActarSimROOTAnalSilRing ( )

Destructor. Makes nothing.

Definition at line 62 of file ActarSimROOTAnalSilRing.cc.

Member Function Documentation

void ActarSimROOTAnalSilRing::AddSilRingHit ( ActarSimSilRingHit cHit,
ActarSimSilRingGeantHit 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: mode == 0 : creation; the ActarSimSilHit is void and is filled by the data from the ActarSimSilGeantHit mode == 1 : addition; the ActarSimSilHit was already created by other ActarSimSilGeantHit and some data members are updated

Definition at line 204 of file ActarSimROOTAnalSilRing.cc.

Referenced by FillingHits(), and SetSilRingHitsCA().

void ActarSimROOTAnalSilRing::BeginOfEventAction ( const G4Event *  anEvent)

Actions to perform in the silicon anal at the begining of the event.

Definition at line 94 of file ActarSimROOTAnalSilRing.cc.

Referenced by ActarSimROOTAnalysis::BeginOfEventAction(), and SetSilRingHitsCA().

void ActarSimROOTAnalSilRing::BeginOfRunAction ( const G4Run *  aRun)

Actions to perform in the silicon anal at the begining of the run.

Definition at line 73 of file ActarSimROOTAnalSilRing.cc.

Referenced by ActarSimROOTAnalysis::BeginOfRunAction(), and SetSilRingHitsCA().

void ActarSimROOTAnalSilRing::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 ActarSimROOTAnalSilRing.cc.

Referenced by ActarSimROOTAnalysis::EndOfEventAction(), and SetSilRingHitsCA().

void ActarSimROOTAnalSilRing::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 ActarSimROOTAnalSilRing.cc.

Referenced by EndOfEventAction(), and SetSilRingHitsCA().

void ActarSimROOTAnalSilRing::GeneratePrimaries ( const G4Event *  anEvent)

Actions to perform in the silicon anal when generating the primaries.

Definition at line 67 of file ActarSimROOTAnalSilRing.cc.

Referenced by ActarSimROOTAnalysis::GeneratePrimaries(), and SetSilRingHitsCA().

TBranch* ActarSimROOTAnalSilRing::GetSilRingHitsBranch ( )
inline

Definition at line 60 of file ActarSimROOTAnalSilRing.hh.

TClonesArray* ActarSimROOTAnalSilRing::getSilRingHitsCA ( void  )
inline

Definition at line 63 of file ActarSimROOTAnalSilRing.hh.

G4int ActarSimROOTAnalSilRing::GetTheEventID ( )
inline

Definition at line 55 of file ActarSimROOTAnalSilRing.hh.

Referenced by AddSilRingHit().

G4int ActarSimROOTAnalSilRing::GetTheRunID ( )
inline

Definition at line 57 of file ActarSimROOTAnalSilRing.hh.

Referenced by AddSilRingHit().

void ActarSimROOTAnalSilRing::SetSilRingHitsBranch ( TBranch *  aBranch)
inline

Definition at line 61 of file ActarSimROOTAnalSilRing.hh.

void ActarSimROOTAnalSilRing::SetSilRingHitsCA ( TClonesArray *  CA)
inline

Definition at line 64 of file ActarSimROOTAnalSilRing.hh.

void ActarSimROOTAnalSilRing::SetTheEventID ( G4int  id)
inline

Definition at line 56 of file ActarSimROOTAnalSilRing.hh.

Referenced by BeginOfEventAction().

void ActarSimROOTAnalSilRing::SetTheRunID ( G4int  id)
inline

Definition at line 58 of file ActarSimROOTAnalSilRing.hh.

Referenced by BeginOfRunAction().

void ActarSimROOTAnalSilRing::UserSteppingAction ( const G4Step *  aStep)

Actions to perform in the ACTAR gas detector analysis after each step.

Definition at line 255 of file ActarSimROOTAnalSilRing.cc.

Referenced by SetSilRingHitsCA(), and ActarSimROOTAnalysis::UserSteppingAction().

Member Data Documentation

char* ActarSimROOTAnalSilRing::dirName
private

Definition at line 38 of file ActarSimROOTAnalSilRing.hh.

Referenced by BeginOfRunAction().

TTree* ActarSimROOTAnalSilRing::eventTree
private

Local pointer to the event tree.

Definition at line 44 of file ActarSimROOTAnalSilRing.hh.

Referenced by ActarSimROOTAnalSilRing().

TClonesArray* ActarSimROOTAnalSilRing::silRingHitCA
private

ClonesArray of the hits in the silicon ring.

Definition at line 41 of file ActarSimROOTAnalSilRing.hh.

Referenced by ActarSimROOTAnalSilRing(), FillingHits(), and getSilRingHitsCA().

TBranch* ActarSimROOTAnalSilRing::silRingHitsBranch
private

Local branch for the silicon hits.

Definition at line 46 of file ActarSimROOTAnalSilRing.hh.

Referenced by ActarSimROOTAnalSilRing(), and GetSilRingHitsBranch().

TFile* ActarSimROOTAnalSilRing::simFile
private

Local pointer to simFile.

Definition at line 43 of file ActarSimROOTAnalSilRing.hh.

Referenced by ActarSimROOTAnalSilRing(), and BeginOfRunAction().

G4int ActarSimROOTAnalSilRing::theEventID
private

Event ID.

Definition at line 49 of file ActarSimROOTAnalSilRing.hh.

Referenced by GetTheEventID().

G4int ActarSimROOTAnalSilRing::theRunID
private

Run ID.

Definition at line 48 of file ActarSimROOTAnalSilRing.hh.

Referenced by GetTheRunID().

ActarSimSilRingHit** ActarSimROOTAnalSilRing::theSilRingHit
private

Pointer to the hits in the silicon ring.

Definition at line 40 of file ActarSimROOTAnalSilRing.hh.

Referenced by FillingHits().


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