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

The ACTAR Scintillator detectorpart of the ROOT Analysis

Definition at line 36 of file ActarSimROOTAnalSci.hh.

Public Member Functions

 ActarSimROOTAnalSci ()
 Constructor. More...
 
 ~ActarSimROOTAnalSci ()
 Destructor. Makes nothing. More...
 
G4int GetTheEventID ()
 
void SetTheEventID (G4int id)
 
G4int GetTheRunID ()
 
void SetTheRunID (G4int id)
 
TBranch * GetSciHitsBranch ()
 
void SetSciHitsBranch (TBranch *aBranch)
 
TClonesArray * getSciHitsCA (void)
 
void SetSciHitsCA (TClonesArray *CA)
 
void FillingHits (const G4Event *anEvent)
 Defining the ActarSimSciHits from the ActarSimSciGeantHits. More...
 
void AddCalCrystalHit (ActarSimSciHit *, ActarSimSciGeantHit *, G4int)
 
void GeneratePrimaries (const G4Event *)
 Actions to perform in the scintillator anal when generating the primaries. More...
 
void BeginOfRunAction (const G4Run *)
 Actions to perform in the scintillator anal at the begining of the run. More...
 
void BeginOfEventAction (const G4Event *)
 Actions to perform in the scintillator anal at the begining of the event. More...
 
void EndOfEventAction (const G4Event *)
 Actions to perform in the scintillator anal at the beginning of the run. More...
 
void UserSteppingAction (const G4Step *)
 Actions to perform in the scintillator detector analysis after each step. More...
 

Private Attributes

char * dirName
 
TFile * simFile
 Local pointer to simFile. More...
 
TTree * eventTree
 Local pointer to the event tree. More...
 
TBranch * sciHitsBranch
 Local branch for scintillators. More...
 
ActarSimSciHit ** theSciHit
 Pointer to the hits in the scintillators. More...
 
TClonesArray * sciHitCA
 ClonesArray of the hits in the scintillators. More...
 
G4int theRunID
 Run ID. More...
 
G4int theEventID
 Event ID. More...
 

#include <ActarSimROOTAnalSci.hh>

+ Collaboration diagram for ActarSimROOTAnalSci:

Constructor & Destructor Documentation

ActarSimROOTAnalSci::ActarSimROOTAnalSci ( )

Constructor.

Definition at line 45 of file ActarSimROOTAnalSci.cc.

ActarSimROOTAnalSci::~ActarSimROOTAnalSci ( )

Destructor. Makes nothing.

Definition at line 64 of file ActarSimROOTAnalSci.cc.

Member Function Documentation

void ActarSimROOTAnalSci::AddCalCrystalHit ( ActarSimSciHit cHit,
ActarSimSciGeantHit gHit,
G4int  mode 
)

Function to move the information from the ActarSimSciGeantHit (a step hit) to ActarSimSciHit (an event hit) for the Darmstadt-Heidelberg Crystall Ball. Two modes are possible:

Definition at line 323 of file ActarSimROOTAnalSci.cc.

Referenced by FillingHits(), and SetSciHitsCA().

void ActarSimROOTAnalSci::BeginOfEventAction ( const G4Event *  anEvent)

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

Definition at line 96 of file ActarSimROOTAnalSci.cc.

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

void ActarSimROOTAnalSci::BeginOfRunAction ( const G4Run *  aRun)

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

Definition at line 75 of file ActarSimROOTAnalSci.cc.

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

void ActarSimROOTAnalSci::EndOfEventAction ( const G4Event *  anEvent)

Actions to perform in the scintillator anal at the beginning of the run.

Definition at line 102 of file ActarSimROOTAnalSci.cc.

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

void ActarSimROOTAnalSci::FillingHits ( const G4Event *  anEvent)

Defining the ActarSimSciHits from the ActarSimSciGeantHits.

Definition at line 114 of file ActarSimROOTAnalSci.cc.

Referenced by EndOfEventAction(), and SetSciHitsCA().

void ActarSimROOTAnalSci::GeneratePrimaries ( const G4Event *  anEvent)

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

Definition at line 69 of file ActarSimROOTAnalSci.cc.

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

TBranch* ActarSimROOTAnalSci::GetSciHitsBranch ( )
inline

Definition at line 62 of file ActarSimROOTAnalSci.hh.

TClonesArray* ActarSimROOTAnalSci::getSciHitsCA ( void  )
inline

Definition at line 65 of file ActarSimROOTAnalSci.hh.

G4int ActarSimROOTAnalSci::GetTheEventID ( )
inline

Definition at line 57 of file ActarSimROOTAnalSci.hh.

Referenced by AddCalCrystalHit().

G4int ActarSimROOTAnalSci::GetTheRunID ( )
inline

Definition at line 59 of file ActarSimROOTAnalSci.hh.

Referenced by AddCalCrystalHit().

void ActarSimROOTAnalSci::SetSciHitsBranch ( TBranch *  aBranch)
inline

Definition at line 63 of file ActarSimROOTAnalSci.hh.

void ActarSimROOTAnalSci::SetSciHitsCA ( TClonesArray *  CA)
inline

Definition at line 66 of file ActarSimROOTAnalSci.hh.

void ActarSimROOTAnalSci::SetTheEventID ( G4int  id)
inline

Definition at line 58 of file ActarSimROOTAnalSci.hh.

Referenced by BeginOfEventAction().

void ActarSimROOTAnalSci::SetTheRunID ( G4int  id)
inline

Definition at line 60 of file ActarSimROOTAnalSci.hh.

Referenced by BeginOfRunAction().

void ActarSimROOTAnalSci::UserSteppingAction ( const G4Step *  aStep)

Actions to perform in the scintillator detector analysis after each step.

Definition at line 108 of file ActarSimROOTAnalSci.cc.

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

Member Data Documentation

char* ActarSimROOTAnalSci::dirName
private

Definition at line 38 of file ActarSimROOTAnalSci.hh.

Referenced by BeginOfRunAction().

TTree* ActarSimROOTAnalSci::eventTree
private

Local pointer to the event tree.

Definition at line 41 of file ActarSimROOTAnalSci.hh.

Referenced by ActarSimROOTAnalSci().

TClonesArray* ActarSimROOTAnalSci::sciHitCA
private

ClonesArray of the hits in the scintillators.

Definition at line 46 of file ActarSimROOTAnalSci.hh.

Referenced by ActarSimROOTAnalSci(), FillingHits(), and getSciHitsCA().

TBranch* ActarSimROOTAnalSci::sciHitsBranch
private

Local branch for scintillators.

Definition at line 43 of file ActarSimROOTAnalSci.hh.

Referenced by ActarSimROOTAnalSci(), and GetSciHitsBranch().

TFile* ActarSimROOTAnalSci::simFile
private

Local pointer to simFile.

Definition at line 40 of file ActarSimROOTAnalSci.hh.

Referenced by ActarSimROOTAnalSci(), and BeginOfRunAction().

G4int ActarSimROOTAnalSci::theEventID
private

Event ID.

Definition at line 51 of file ActarSimROOTAnalSci.hh.

Referenced by GetTheEventID().

G4int ActarSimROOTAnalSci::theRunID
private

Run ID.

Definition at line 50 of file ActarSimROOTAnalSci.hh.

Referenced by GetTheRunID().

ActarSimSciHit** ActarSimROOTAnalSci::theSciHit
private

Pointer to the hits in the scintillators.

Definition at line 45 of file ActarSimROOTAnalSci.hh.

Referenced by FillingHits().


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