Import Geant4 9.6.0 source tree
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include "G4Run.hh"
|
||||
#include "G4RunManager.hh"
|
||||
#include "G4UnitsTable.hh"
|
||||
#include "G4SystemOfUnits.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -64,6 +65,12 @@ void B4RunAction::BeginOfRunAction(const G4Run* run)
|
||||
// The choice of analysis technology is done via selectin of a namespace
|
||||
// in B4Analysis.hh
|
||||
G4AnalysisManager* analysisManager = G4AnalysisManager::Instance();
|
||||
G4cout << "Using " << analysisManager->GetType()
|
||||
<< " analysis manager" << G4endl;
|
||||
|
||||
// Create directories
|
||||
//analysisManager->SetHistoDirectoryName("histograms");
|
||||
//analysisManager->SetNtupleDirectoryName("ntuple");
|
||||
|
||||
// Open an output file
|
||||
//
|
||||
@@ -105,7 +112,7 @@ void B4RunAction::EndOfRunAction(const G4Run* aRun)
|
||||
<< " EAbs : mean = " << G4BestUnit(analysisManager->GetH1(1)->mean(), "Energy")
|
||||
<< " rms = " << G4BestUnit(analysisManager->GetH1(1)->rms(), "Energy")
|
||||
<< G4endl;
|
||||
G4cout
|
||||
G4cout
|
||||
<< " EGap : mean = " << G4BestUnit(analysisManager->GetH1(2)->mean(), "Energy")
|
||||
<< " rms = " << G4BestUnit(analysisManager->GetH1(2)->rms(), "Energy")
|
||||
<< G4endl;
|
||||
|
||||
Reference in New Issue
Block a user