SToGS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
SToGS::BaseROOTEventsUserAction Class Reference

The BaseROOTEventsUserAction Stores in a ROOT Tree BaseROOTEvents [SBREvent, SBRPEvent etc ... see analysis/SToGS/BaseROOTEvents.h file]. More...

#include <SToGS_BaseROOTEventsActions.hh>

Inheritance diagram for SToGS::BaseROOTEventsUserAction:

Public Member Functions

 BaseROOTEventsUserAction (G4String conffile="setup/SToGS_Tree_actions.conf")
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void BeginOfRunAction (const G4Run *)
 
virtual void EndOfEventAction (const G4Event *)
 
virtual void EndOfRunAction (const G4Run *)
 
virtual G4Run * GenerateRun ()
 
virtual void PostUserTrackingAction (const G4Track *)
 
virtual void PreUserTrackingAction (const G4Track *)
 
virtual void UserSteppingAction (const G4Step *)
 
virtual ~BaseROOTEventsUserAction ()
 

Protected Member Functions

virtual void CloseFile ()
 Make sure ths file is closed properly. More...
 
virtual void OpenFile (G4int run_id)
 Open the stream depending of the configuration and attach the Tree to the file. More...
 

Protected Attributes

G4String fBaseName
 base for all the files More...
 
G4int fisOptical
 true if one has also photons from scintillations More...
 
G4int fMaxEvents
 max numer of event per files ... better to limit because of BaseROOT file could be uged ! More...
 
SBROpticalEventfOpticalEventBeg
 emitted optical photons More...
 
SBROpticalEventfOpticalEventEnd
 end of optical photons More...
 
G4String fOption
 
G4String fPathToData
 directory where to output data More...
 
G4int fPrintModulo
 to print out status any fPrintModulo events More...
 
G4int fRecordOption
 0 [default] means keep all, 1 only events which gives at least one hit in the full detector More...
 
TFile * fRootFile
 the current root file More...
 
TTree * fTree
 the Tree to be filled More...
 
G4String fTreeName
 
G4String fTreeTitle
 

Detailed Description

The BaseROOTEventsUserAction Stores in a ROOT Tree BaseROOTEvents [SBREvent, SBRPEvent etc ... see analysis/SToGS/BaseROOTEvents.h file].

Definition at line 58 of file SToGS_BaseROOTEventsActions.hh.

Constructor & Destructor Documentation

SToGS::BaseROOTEventsUserAction::BaseROOTEventsUserAction ( G4String  conffile = "setup/SToGS_Tree_actions.conf")

Definition at line 185 of file SToGS_BaseROOTEventsActions.cc.

virtual SToGS::BaseROOTEventsUserAction::~BaseROOTEventsUserAction ( )
inlinevirtual

Definition at line 70 of file SToGS_BaseROOTEventsActions.hh.

Member Function Documentation

void SToGS::BaseROOTEventsUserAction::BeginOfEventAction ( const G4Event *  evt)
virtual

Reimplemented from SToGS::BaseROOTAction.

Definition at line 260 of file SToGS_BaseROOTEventsActions.cc.

void SToGS::BaseROOTAction::BeginOfRunAction ( const G4Run *  aRun)
virtualinherited

Reimplemented from SToGS::AllActions.

Definition at line 172 of file SToGS_BaseROOT.cc.

void SToGS::BaseROOTTreeAction::CloseFile ( )
protectedvirtualinherited

Make sure ths file is closed properly.

Reimplemented from SToGS::BaseROOTAction.

Definition at line 270 of file SToGS_BaseROOT.cc.

void SToGS::BaseROOTAction::EndOfEventAction ( const G4Event *  evt)
virtualinherited

Reimplemented from SToGS::AllActions.

Definition at line 193 of file SToGS_BaseROOT.cc.

void SToGS::BaseROOTEventsUserAction::EndOfRunAction ( const G4Run *  therun)
virtual

Reimplemented from SToGS::BaseROOTAction.

Definition at line 252 of file SToGS_BaseROOTEventsActions.cc.

G4Run * SToGS::BaseROOTEventsUserAction::GenerateRun ( )
virtual

Reimplemented from SToGS::AllActions.

Definition at line 217 of file SToGS_BaseROOTEventsActions.cc.

void SToGS::BaseROOTTreeAction::OpenFile ( G4int  run_id)
protectedvirtualinherited

Open the stream depending of the configuration and attach the Tree to the file.

Reimplemented from SToGS::BaseROOTAction.

Definition at line 245 of file SToGS_BaseROOT.cc.

void SToGS::BaseROOTEventsUserAction::PostUserTrackingAction ( const G4Track *  atrack)
virtual

Reimplemented from SToGS::BaseROOTAction.

Definition at line 309 of file SToGS_BaseROOTEventsActions.cc.

void SToGS::BaseROOTEventsUserAction::PreUserTrackingAction ( const G4Track *  atrack)
virtual

Reimplemented from SToGS::BaseROOTAction.

Definition at line 271 of file SToGS_BaseROOTEventsActions.cc.

virtual void SToGS::AllActions::UserSteppingAction ( const G4Step *  )
inlinevirtualinherited

Reimplemented in SToGS::PrintOutAction.

Definition at line 100 of file SToGS_UserActionInitialization.hh.

Member Data Documentation

G4String SToGS::BaseROOTAction::fBaseName
protectedinherited

base for all the files

Definition at line 71 of file SToGS_BaseROOT.hh.

G4int SToGS::BaseROOTEventsUserAction::fisOptical
protected

true if one has also photons from scintillations

Definition at line 62 of file SToGS_BaseROOTEventsActions.hh.

G4int SToGS::BaseROOTAction::fMaxEvents
protectedinherited

max numer of event per files ... better to limit because of BaseROOT file could be uged !

Definition at line 73 of file SToGS_BaseROOT.hh.

SBROpticalEvent* SToGS::BaseROOTEventsUserAction::fOpticalEventBeg
protected

emitted optical photons

Definition at line 64 of file SToGS_BaseROOTEventsActions.hh.

SBROpticalEvent* SToGS::BaseROOTEventsUserAction::fOpticalEventEnd
protected

end of optical photons

Definition at line 66 of file SToGS_BaseROOTEventsActions.hh.

G4String SToGS::AllActions::fOption
protectedinherited

Definition at line 64 of file SToGS_UserActionInitialization.hh.

G4String SToGS::BaseROOTAction::fPathToData
protectedinherited

directory where to output data

Definition at line 69 of file SToGS_BaseROOT.hh.

G4int SToGS::BaseROOTAction::fPrintModulo
protectedinherited

to print out status any fPrintModulo events

Definition at line 77 of file SToGS_BaseROOT.hh.

G4int SToGS::BaseROOTAction::fRecordOption
protectedinherited

0 [default] means keep all, 1 only events which gives at least one hit in the full detector

Definition at line 75 of file SToGS_BaseROOT.hh.

TFile* SToGS::BaseROOTAction::fRootFile
protectedinherited

the current root file

Definition at line 66 of file SToGS_BaseROOT.hh.

TTree* SToGS::BaseROOTTreeAction::fTree
protectedinherited

the Tree to be filled

Definition at line 106 of file SToGS_BaseROOT.hh.

G4String SToGS::BaseROOTTreeAction::fTreeName
protectedinherited

Definition at line 109 of file SToGS_BaseROOT.hh.

G4String SToGS::BaseROOTTreeAction::fTreeTitle
protectedinherited

Definition at line 110 of file SToGS_BaseROOT.hh.


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