GEMC  2.3
Geant4 Monte-Carlo Framework
Public Member Functions | Data Fields
MEventAction Class Reference

#include <MEventAction.h>

+ Inheritance diagram for MEventAction:
+ Collaboration diagram for MEventAction:

Public Member Functions

 MEventAction (goptions, map< string, double >)
 Constructor copies gemc options. More...
 
 ~MEventAction ()
 Destructor. More...
 
vector< int > vector_otids (vector< int > tids)
 return original track id of a vector of tid More...
 
void saveBGPartsToLund ()
 
void BeginOfEventAction (const G4Event *)
 Routine at the start of each event. More...
 
void EndOfEventAction (const G4Event *)
 Routine at the end of each event. More...
 
void SetEvtNumber (int N)
 Sets Event Number. More...
 

Data Fields

goptions gemcOpt
 gemc options More...
 
outputContaineroutContainer
 outputContainer class - contains the output format. More...
 
map< string, outputFactoryInMap > * outputFactoryMap
 outputFactory map More...
 
map< string, sensitiveDetector * > SeDe_Map
 Sensitive detector Map. More...
 
map< string, HitProcess_Factory > * hitProcessMap
 Hit Process Routine Factory Map. More...
 
map< string, gBank > * banksMap
 Bank Map. More...
 
map< string, double > gPars
 Parameters Map. More...
 
MPrimaryGeneratorActiongen_action
 Generator Action. More...
 
map< int, int > hierarchy
 Hierarchy map. More...
 
map< int, int > momDaughter
 mom - daughter relationship More...
 
int evtN
 Event Number. More...
 
string hd_msg
 Event Action Message. More...
 
int Modulo
 Print Log Event every Modulo. More...
 
double VERB
 Event Verbosity. More...
 
string catch_v
 Print Log for volume. More...
 
int SAVE_ALL_MOTHERS
 >= 1: Loops over the stored trajectories to store mother vertex and pid in the output. >=2: Also saves all particles that produced a hit onto LUND format More...
 
int MAXP
 Max number of generated particles to save on output stream. More...
 
string WRITE_ALLRAW
 List of detectors for which geant4 all raw info need to be saved. More...
 
string WRITE_INTRAW
 List of detectors for which geant4 raw integrated info need to be saved. More...
 
string WRITE_INTDGT
 List of detectors for which digitized integrated info need to be NOT saved. More...
 
string SIGNALVT
 List of detectors for which voltage versus time need to be saved. More...
 
ofstream * lundOutput
 
map< int, BGPartsbgMap
 
runWeights rw
 

Detailed Description

MEventAction

Derived from G4UserEventAction.
The two functions:

Definition at line 106 of file MEventAction.h.

Constructor & Destructor Documentation

MEventAction::MEventAction ( goptions  opts,
map< string, double >  gpars 
)

Definition at line 79 of file MEventAction.cc.

MEventAction::~MEventAction ( )

Definition at line 105 of file MEventAction.cc.

Member Function Documentation

void MEventAction::BeginOfEventAction ( const G4Event *  evt)

Definition at line 111 of file MEventAction.cc.

void MEventAction::EndOfEventAction ( const G4Event *  evt)

Definition at line 126 of file MEventAction.cc.

void MEventAction::saveBGPartsToLund ( )

Definition at line 573 of file MEventAction.cc.

void MEventAction::SetEvtNumber ( int  N)
inline

Definition at line 147 of file MEventAction.h.

vector< int > MEventAction::vector_otids ( vector< int >  tids)

Definition at line 19 of file MEventAction.cc.

Field Documentation

map<string, gBank>* MEventAction::banksMap

Definition at line 118 of file MEventAction.h.

map<int, BGParts> MEventAction::bgMap

Definition at line 142 of file MEventAction.h.

string MEventAction::catch_v

Definition at line 131 of file MEventAction.h.

int MEventAction::evtN

Definition at line 127 of file MEventAction.h.

goptions MEventAction::gemcOpt

Definition at line 112 of file MEventAction.h.

MPrimaryGeneratorAction* MEventAction::gen_action

Definition at line 120 of file MEventAction.h.

map<string, double> MEventAction::gPars

Definition at line 119 of file MEventAction.h.

string MEventAction::hd_msg

Definition at line 128 of file MEventAction.h.

map<int, int> MEventAction::hierarchy

Definition at line 122 of file MEventAction.h.

map<string, HitProcess_Factory>* MEventAction::hitProcessMap

Definition at line 117 of file MEventAction.h.

ofstream* MEventAction::lundOutput

Definition at line 141 of file MEventAction.h.

int MEventAction::MAXP

Definition at line 133 of file MEventAction.h.

int MEventAction::Modulo

Definition at line 129 of file MEventAction.h.

map<int, int> MEventAction::momDaughter

Definition at line 123 of file MEventAction.h.

outputContainer* MEventAction::outContainer

Definition at line 114 of file MEventAction.h.

map<string, outputFactoryInMap>* MEventAction::outputFactoryMap

Definition at line 115 of file MEventAction.h.

runWeights MEventAction::rw

Definition at line 149 of file MEventAction.h.

int MEventAction::SAVE_ALL_MOTHERS

Definition at line 132 of file MEventAction.h.

map<string, sensitiveDetector*> MEventAction::SeDe_Map

Definition at line 116 of file MEventAction.h.

string MEventAction::SIGNALVT

Definition at line 137 of file MEventAction.h.

double MEventAction::VERB

Definition at line 130 of file MEventAction.h.

string MEventAction::WRITE_ALLRAW

Definition at line 134 of file MEventAction.h.

string MEventAction::WRITE_INTDGT

Definition at line 136 of file MEventAction.h.

string MEventAction::WRITE_INTRAW

Definition at line 135 of file MEventAction.h.