HerdSoftware  0.1.1
Public Member Functions | Private Attributes | List of all members
TrdTravMatAction Class Reference

Action which finds the point of disappearance points for each primary particle. More...

#include <TrdTravMatAction.h>

Inheritance diagram for TrdTravMatAction:

Public Member Functions

 TrdTravMatAction ()
 Constructor. More...
 
void PreUserTrackingAction (const G4Track *track)
 Initialization of primary track. More...
 
void UserSteppingAction (const G4Step *step)
 Accumulates the traversed material in TRD by primary particles. More...
 
void BeginOfEventAction (const G4Event *event)
 Clears the vector of traversed material in TRD by primary particles. More...
 
void EndOfEventAction (const G4Event *event)
 Fills the output tree. More...
 
void BeginOfRunAction (const G4Run *run)
 Opens the output file for the current run and prepares the output tree. More...
 
void EndOfRunAction (const G4Run *run)
 Closes the output file for the current run. More...
 

Private Attributes

std::vector< TrdTravMat_travMat
 
std::string _outBase
 
std::string _outTreeName
 
TFile * _outRootFile
 
TTree * _outTree
 
G4GenericMessenger _messenger
 

Detailed Description

Action which finds the point of disappearance points for each primary particle.

This class follows the propagation of primary particles until they disappear from the simulation, either because of an interaction or because they exit from the world volume.

Constructor & Destructor Documentation

◆ TrdTravMatAction()

TrdTravMatAction::TrdTravMatAction ( )

Constructor.

Member Function Documentation

◆ BeginOfEventAction()

void TrdTravMatAction::BeginOfEventAction ( const G4Event *  event)

Clears the vector of traversed material in TRD by primary particles.

Parameters
eventThe current event.

◆ BeginOfRunAction()

void TrdTravMatAction::BeginOfRunAction ( const G4Run *  run)

Opens the output file for the current run and prepares the output tree.

Parameters
runThe current run.

◆ EndOfEventAction()

void TrdTravMatAction::EndOfEventAction ( const G4Event *  event)

Fills the output tree.

Parameters
eventThe current event.

◆ EndOfRunAction()

void TrdTravMatAction::EndOfRunAction ( const G4Run *  run)

Closes the output file for the current run.

Parameters
runThe current run.

◆ PreUserTrackingAction()

void TrdTravMatAction::PreUserTrackingAction ( const G4Track *  track)

Initialization of primary track.

This routine checks if the current track belongs to a primary particle, and in affirmative case it adds an element for it to the vector of traversed material.

Parameters
trackThe current track.

◆ UserSteppingAction()

void TrdTravMatAction::UserSteppingAction ( const G4Step *  step)

Accumulates the traversed material in TRD by primary particles.

Parameters
stepThe current step

Member Data Documentation

◆ _messenger

G4GenericMessenger TrdTravMatAction::_messenger
private

◆ _outBase

std::string TrdTravMatAction::_outBase
private

◆ _outRootFile

TFile* TrdTravMatAction::_outRootFile
private

◆ _outTree

TTree* TrdTravMatAction::_outTree
private

◆ _outTreeName

std::string TrdTravMatAction::_outTreeName
private

◆ _travMat

std::vector<TrdTravMat> TrdTravMatAction::_travMat
private

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