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

The Plastic Scintillator detector part of the ROOT Analysis

Definition at line 36 of file ActarSimROOTAnalPla.hh.

Public Member Functions

 ActarSimROOTAnalPla ()
 Constructor. More...
 
 ~ActarSimROOTAnalPla ()
 Destructor. Makes nothing. More...
 
G4int GetTheEventID ()
 
void SetTheEventID (G4int id)
 
G4int GetTheRunID ()
 
void SetTheRunID (G4int id)
 
TBranch * GetPlaHitsBranch ()
 
void SetPlaHitsBranch (TBranch *aBranch)
 
TClonesArray * getPlaHitsCA (void)
 
void SetPlaHitsCA (TClonesArray *CA)
 
void FillingHits (const G4Event *anEvent)
 Defining the ActarSimSciHits from the ActarSimSciGeantHits. More...
 
void AddCalPlaHit (ActarSimPlaHit *, ActarSimPlaGeantHit *, 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 * plaHitsBranch
 Local branch for plastics. More...
 
ActarSimPlaHit ** thePlaHit
 Pointer to the hits in the plastic. More...
 
TClonesArray * plaHitCA
 ClonesArray of the hits in the plastic. More...
 
G4int theRunID
 Run ID. More...
 
G4int theEventID
 Event ID. More...
 

#include <ActarSimROOTAnalPla.hh>

+ Collaboration diagram for ActarSimROOTAnalPla:

Constructor & Destructor Documentation

ActarSimROOTAnalPla::ActarSimROOTAnalPla ( )

Constructor.

Definition at line 45 of file ActarSimROOTAnalPla.cc.

ActarSimROOTAnalPla::~ActarSimROOTAnalPla ( )

Destructor. Makes nothing.

Definition at line 63 of file ActarSimROOTAnalPla.cc.

Member Function Documentation

void ActarSimROOTAnalPla::AddCalPlaHit ( ActarSimPlaHit cHit,
ActarSimPlaGeantHit 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 400 of file ActarSimROOTAnalPla.cc.

Referenced by FillingHits(), and SetPlaHitsCA().

void ActarSimROOTAnalPla::BeginOfEventAction ( const G4Event *  anEvent)

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

Definition at line 96 of file ActarSimROOTAnalPla.cc.

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

void ActarSimROOTAnalPla::BeginOfRunAction ( const G4Run *  aRun)

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

Definition at line 74 of file ActarSimROOTAnalPla.cc.

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

void ActarSimROOTAnalPla::EndOfEventAction ( const G4Event *  anEvent)

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

Definition at line 102 of file ActarSimROOTAnalPla.cc.

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

void ActarSimROOTAnalPla::FillingHits ( const G4Event *  anEvent)

Defining the ActarSimSciHits from the ActarSimSciGeantHits.

Definition at line 114 of file ActarSimROOTAnalPla.cc.

Referenced by EndOfEventAction(), and SetPlaHitsCA().

void ActarSimROOTAnalPla::GeneratePrimaries ( const G4Event *  anEvent)

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

Definition at line 68 of file ActarSimROOTAnalPla.cc.

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

TBranch* ActarSimROOTAnalPla::GetPlaHitsBranch ( )
inline

Definition at line 63 of file ActarSimROOTAnalPla.hh.

TClonesArray* ActarSimROOTAnalPla::getPlaHitsCA ( void  )
inline

Definition at line 66 of file ActarSimROOTAnalPla.hh.

G4int ActarSimROOTAnalPla::GetTheEventID ( )
inline

Definition at line 58 of file ActarSimROOTAnalPla.hh.

Referenced by AddCalPlaHit().

G4int ActarSimROOTAnalPla::GetTheRunID ( )
inline

Definition at line 60 of file ActarSimROOTAnalPla.hh.

Referenced by AddCalPlaHit().

void ActarSimROOTAnalPla::SetPlaHitsBranch ( TBranch *  aBranch)
inline

Definition at line 64 of file ActarSimROOTAnalPla.hh.

void ActarSimROOTAnalPla::SetPlaHitsCA ( TClonesArray *  CA)
inline

Definition at line 67 of file ActarSimROOTAnalPla.hh.

void ActarSimROOTAnalPla::SetTheEventID ( G4int  id)
inline

Definition at line 59 of file ActarSimROOTAnalPla.hh.

Referenced by BeginOfEventAction().

void ActarSimROOTAnalPla::SetTheRunID ( G4int  id)
inline

Definition at line 61 of file ActarSimROOTAnalPla.hh.

Referenced by BeginOfRunAction().

void ActarSimROOTAnalPla::UserSteppingAction ( const G4Step *  aStep)

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

Definition at line 108 of file ActarSimROOTAnalPla.cc.

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

Member Data Documentation

char* ActarSimROOTAnalPla::dirName
private

Definition at line 38 of file ActarSimROOTAnalPla.hh.

Referenced by BeginOfRunAction().

TTree* ActarSimROOTAnalPla::eventTree
private

Local pointer to the event tree.

Definition at line 41 of file ActarSimROOTAnalPla.hh.

Referenced by ActarSimROOTAnalPla().

TClonesArray* ActarSimROOTAnalPla::plaHitCA
private

ClonesArray of the hits in the plastic.

Definition at line 46 of file ActarSimROOTAnalPla.hh.

Referenced by ActarSimROOTAnalPla(), FillingHits(), and getPlaHitsCA().

TBranch* ActarSimROOTAnalPla::plaHitsBranch
private

Local branch for plastics.

Definition at line 43 of file ActarSimROOTAnalPla.hh.

Referenced by ActarSimROOTAnalPla(), and GetPlaHitsBranch().

TFile* ActarSimROOTAnalPla::simFile
private

Local pointer to simFile.

Definition at line 40 of file ActarSimROOTAnalPla.hh.

Referenced by ActarSimROOTAnalPla(), and BeginOfRunAction().

G4int ActarSimROOTAnalPla::theEventID
private

Event ID.

Definition at line 51 of file ActarSimROOTAnalPla.hh.

Referenced by GetTheEventID().

ActarSimPlaHit** ActarSimROOTAnalPla::thePlaHit
private

Pointer to the hits in the plastic.

Definition at line 45 of file ActarSimROOTAnalPla.hh.

Referenced by FillingHits().

G4int ActarSimROOTAnalPla::theRunID
private

Run ID.

Definition at line 50 of file ActarSimROOTAnalPla.hh.

Referenced by GetTheRunID().


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