Import Geant4 10.7.0 source tree

This commit is contained in:
Gabriele Cosmo
2020-12-04 12:30:43 +01:00
parent 67ba86d073
commit dab42d2018
3770 changed files with 226369 additions and 286486 deletions
@@ -29,12 +29,15 @@
//
//
#include "LXeRunAction.hh"
#include "LXeRun.hh"
#include "LXeHistoManager.hh"
#include "LXeRun.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
LXeRunAction::LXeRunAction() : fRun(nullptr), fHistoManager(nullptr)
LXeRunAction::LXeRunAction()
: fRun(nullptr)
, fHistoManager(nullptr)
{
// Book predefined histograms
fHistoManager = new LXeHistoManager();
@@ -42,10 +45,7 @@ LXeRunAction::LXeRunAction() : fRun(nullptr), fHistoManager(nullptr)
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
LXeRunAction::~LXeRunAction()
{
delete fHistoManager;
}
LXeRunAction::~LXeRunAction() { delete fHistoManager; }
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
G4Run* LXeRunAction::GenerateRun()
@@ -59,19 +59,23 @@ G4Run* LXeRunAction::GenerateRun()
void LXeRunAction::BeginOfRunAction(const G4Run*)
{
G4AnalysisManager* analysisManager = G4AnalysisManager::Instance();
if (analysisManager->IsActive()) {
if(analysisManager->IsActive())
{
analysisManager->OpenFile();
}
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void LXeRunAction::EndOfRunAction(const G4Run*){
if (isMaster) fRun->EndOfRun();
void LXeRunAction::EndOfRunAction(const G4Run*)
{
if(isMaster)
fRun->EndOfRun();
// save histograms
G4AnalysisManager* analysisManager = G4AnalysisManager::Instance();
if (analysisManager->IsActive()) {
if(analysisManager->IsActive())
{
analysisManager->Write();
analysisManager->CloseFile();
}