ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DicomRunAction Class Reference

#include <geant4/tree/geant4-10.6-release/examples/extended/medical/DICOM/include/DicomRunAction.hh>

+ Inheritance diagram for DicomRunAction:
+ Collaboration diagram for DicomRunAction:

Public Member Functions

 DicomRunAction ()
 Constructor.
 
 ~DicomRunAction ()
 Destructor.
 
G4RunGenerateRun ()
 
void BeginOfRunAction (const G4Run *)
 
void EndOfRunAction (const G4Run *)
 
DicomRunGetDicomRun () const
 
void PrintHeader (std::ostream *out)
 
std::string FillString (const std::string &name, char c, G4int n, G4bool back=true)
 
- Public Member Functions inherited from G4UserRunAction
 G4UserRunAction ()
 
virtual ~G4UserRunAction ()
 
virtual void SetMaster (G4bool val=true)
 
G4bool IsMaster () const
 

Protected Attributes

DicomRunfDcmrun
 
std::vector< G4StringfSDName
 
- Protected Attributes inherited from G4UserRunAction
G4bool isMaster
 

Private Attributes

G4int fFieldValue
 

Detailed Description

Definition at line 42 of file DicomRunAction.hh.

View newest version in sPHENIX GitHub at line 42 of file DicomRunAction.hh

Constructor & Destructor Documentation

DicomRunAction::DicomRunAction ( )

Constructor.

Definition at line 46 of file DicomRunAction.cc.

View newest version in sPHENIX GitHub at line 46 of file DicomRunAction.cc

References fSDName.

DicomRunAction::~DicomRunAction ( )

Destructor.

Definition at line 56 of file DicomRunAction.cc.

View newest version in sPHENIX GitHub at line 56 of file DicomRunAction.cc

References fSDName.

Member Function Documentation

void DicomRunAction::BeginOfRunAction ( const G4Run aRun)
virtual

Reimplemented from G4UserRunAction.

Definition at line 72 of file DicomRunAction.cc.

View newest version in sPHENIX GitHub at line 72 of file DicomRunAction.cc

References G4cout, G4endl, G4Run::GetNumberOfEventToBeProcessed(), G4Run::GetRunID(), G4RunManager::GetRunManager(), G4RunManager::SetPrintProgress(), G4RunManager::SetRandomNumberStore(), G4RunManager::SetRandomNumberStoreDir(), G4RunManager::SetRandomNumberStorePerEvent(), and nlohmann::to_string().

+ Here is the call graph for this function:

void DicomRunAction::EndOfRunAction ( const G4Run aRun)
virtual

Reimplemented from G4UserRunAction.

Reimplemented in Dicom2RunAction.

Definition at line 87 of file DicomRunAction.cc.

View newest version in sPHENIX GitHub at line 87 of file DicomRunAction.cc

References test::fname, fSDName, G4cout, G4endl, G4Exception(), DicomRun::GetHitsMap(), G4VTHitsMap< T, Map_t >::GetMap(), G4Run::GetNumberOfEvent(), G4Run::GetRunID(), CLHEP::gray, gray, G4UserRunAction::IsMaster(), JustWarning, and PrintHeader().

Referenced by Dicom2RunAction::EndOfRunAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string DicomRunAction::FillString ( const std::string &  name,
char  c,
G4int  n,
G4bool  back = true 
)

Definition at line 219 of file DicomRunAction.cc.

View newest version in sPHENIX GitHub at line 219 of file DicomRunAction.cc

References test::fname, and k.

G4Run * DicomRunAction::GenerateRun ( void  )
virtual

Reimplemented from G4UserRunAction.

Reimplemented in Dicom2RunAction.

Definition at line 62 of file DicomRunAction.cc.

View newest version in sPHENIX GitHub at line 62 of file DicomRunAction.cc

References fDcmrun, and fSDName.

DicomRun* DicomRunAction::GetDicomRun ( ) const
inline

Definition at line 55 of file DicomRunAction.hh.

View newest version in sPHENIX GitHub at line 55 of file DicomRunAction.hh

References fDcmrun.

void DicomRunAction::PrintHeader ( std::ostream *  out)

Definition at line 197 of file DicomRunAction.cc.

View newest version in sPHENIX GitHub at line 197 of file DicomRunAction.cc

References fFieldValue, G4endl, and it.

Referenced by EndOfRunAction(), and Dicom2RunAction::EndOfRunAction().

+ Here is the caller graph for this function:

Member Data Documentation

DicomRun* DicomRunAction::fDcmrun
protected

Definition at line 62 of file DicomRunAction.hh.

View newest version in sPHENIX GitHub at line 62 of file DicomRunAction.hh

Referenced by GenerateRun(), Dicom2RunAction::GenerateRun(), and GetDicomRun().

G4int DicomRunAction::fFieldValue
private

Definition at line 68 of file DicomRunAction.hh.

View newest version in sPHENIX GitHub at line 68 of file DicomRunAction.hh

Referenced by PrintHeader().

std::vector<G4String> DicomRunAction::fSDName
protected

Definition at line 64 of file DicomRunAction.hh.

View newest version in sPHENIX GitHub at line 64 of file DicomRunAction.hh

Referenced by DicomRunAction(), EndOfRunAction(), Dicom2RunAction::EndOfRunAction(), GenerateRun(), Dicom2RunAction::GenerateRun(), and ~DicomRunAction().


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