Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
LXeRunAction Class Reference

#include <Doxymodules_optical.h>

Inheritance diagram for LXeRunAction:
G4UserRunAction

Public Member Functions

 LXeRunAction ()
 
 ~LXeRunAction () override
 
G4RunGenerateRun () override
 
void BeginOfRunAction (const G4Run *) override
 
void EndOfRunAction (const G4Run *) override
 

Private Attributes

LXeRunfRun = nullptr
 
LXeHistoManagerfHistoManager = nullptr
 

Detailed Description

Definition at line 61 of file Doxymodules_optical.h.

Constructor & Destructor Documentation

◆ LXeRunAction()

LXeRunAction::LXeRunAction ( )

Definition at line 38 of file LXeRunAction.cc.

39{
40 // Book predefined histograms
42}
LXeHistoManager * fHistoManager

◆ ~LXeRunAction()

LXeRunAction::~LXeRunAction ( )
override

Definition at line 46 of file LXeRunAction.cc.

46{ delete fHistoManager; }

Member Function Documentation

◆ GenerateRun()

G4Run * LXeRunAction::GenerateRun ( )
override

Definition at line 49 of file LXeRunAction.cc.

50{
51 fRun = new LXeRun();
52 return fRun;
53}
LXeRun * fRun

◆ BeginOfRunAction()

void LXeRunAction::BeginOfRunAction ( const G4Run )
override

Definition at line 57 of file LXeRunAction.cc.

58{
59 G4AnalysisManager* analysisManager = G4AnalysisManager::Instance();
60 if(analysisManager->IsActive())
61 {
62 analysisManager->OpenFile();
63 }
64}

◆ EndOfRunAction()

void LXeRunAction::EndOfRunAction ( const G4Run )
override

Definition at line 68 of file LXeRunAction.cc.

69{
70 if(isMaster)
71 fRun->EndOfRun();
72
73 // save histograms
74 G4AnalysisManager* analysisManager = G4AnalysisManager::Instance();
75 if(analysisManager->IsActive())
76 {
77 analysisManager->Write();
78 analysisManager->CloseFile();
79 }
80}
void EndOfRun()
Definition LXeRun.cc:63

Member Data Documentation

◆ fRun

LXeRun* LXeRunAction::fRun = nullptr
private

Definition at line 52 of file LXeRunAction.hh.

◆ fHistoManager

LXeHistoManager* LXeRunAction::fHistoManager = nullptr
private

Definition at line 53 of file LXeRunAction.hh.


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

Applications | User Support | Publications | Collaboration