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

This class just print out once a new run begins/ends with the run number and the number of events to be simulated. More...

#include <SToGS_Ascii.hh>

Inheritance diagram for SToGS::AsciiAction:

Public Member Functions

 AsciiAction (G4String conffile="setup/SToGS_ascii_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 ~AsciiAction ()
 

Protected Member Functions

virtual void CloseFile ()
 Make sure ths file is closed properly. More...
 
virtual void OpenFile (G4int run_id)
 Just check if there are collected hits in the collection. More...
 

Protected Attributes

G4String fBaseName
 base for all the files More...
 
G4int fMaxEvents
 max numer of event per files ... better to limit because of ascii file could be uged ! More...
 
G4String fOption
 
std::ofstream fOutputFile
 current stream to output data More...
 
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...
 

Detailed Description

This class just print out once a new run begins/ends with the run number and the number of events to be simulated.

Definition at line 65 of file SToGS_Ascii.hh.

Constructor & Destructor Documentation

SToGS::AsciiAction::AsciiAction ( G4String  conffile = "setup/SToGS_ascii_actions.conf")

Definition at line 150 of file SToGS_Ascii.cc.

virtual SToGS::AsciiAction::~AsciiAction ( )
inlinevirtual

Definition at line 93 of file SToGS_Ascii.hh.

Member Function Documentation

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

Reimplemented from SToGS::AllActions.

Definition at line 278 of file SToGS_Ascii.cc.

void SToGS::AsciiAction::BeginOfRunAction ( const G4Run *  aRun)
virtual

Reimplemented from SToGS::AllActions.

Definition at line 265 of file SToGS_Ascii.cc.

void SToGS::AsciiAction::CloseFile ( )
protectedvirtual

Make sure ths file is closed properly.

Definition at line 231 of file SToGS_Ascii.cc.

void SToGS::AsciiAction::EndOfEventAction ( const G4Event *  evt)
virtual

Reimplemented from SToGS::AllActions.

Definition at line 285 of file SToGS_Ascii.cc.

void SToGS::AsciiAction::EndOfRunAction ( const G4Run *  aRun)
virtual

Reimplemented from SToGS::AllActions.

Definition at line 272 of file SToGS_Ascii.cc.

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

Reimplemented from SToGS::AllActions.

Definition at line 247 of file SToGS_Ascii.cc.

void SToGS::AsciiAction::OpenFile ( G4int  run_id)
protectedvirtual

Just check if there are collected hits in the collection.

Open the stream depending of the configuration

Definition at line 197 of file SToGS_Ascii.cc.

virtual void SToGS::AllActions::PostUserTrackingAction ( const G4Track *  )
inlinevirtualinherited
virtual void SToGS::AllActions::PreUserTrackingAction ( const G4Track *  )
inlinevirtualinherited
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::AsciiAction::fBaseName
protected

base for all the files

Definition at line 74 of file SToGS_Ascii.hh.

G4int SToGS::AsciiAction::fMaxEvents
protected

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

Definition at line 76 of file SToGS_Ascii.hh.

G4String SToGS::AllActions::fOption
protectedinherited

Definition at line 64 of file SToGS_UserActionInitialization.hh.

std::ofstream SToGS::AsciiAction::fOutputFile
protected

current stream to output data

Definition at line 69 of file SToGS_Ascii.hh.

G4String SToGS::AsciiAction::fPathToData
protected

directory where to output data

Definition at line 72 of file SToGS_Ascii.hh.

G4int SToGS::AsciiAction::fPrintModulo
protected

to print out status any fPrintModulo events

Definition at line 80 of file SToGS_Ascii.hh.

G4int SToGS::AsciiAction::fRecordOption
protected

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

Definition at line 78 of file SToGS_Ascii.hh.


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