renamed
This commit is contained in:
+5
-5
@@ -27,7 +27,7 @@
|
||||
/// \file B4/B4a/src/EventAction.cc
|
||||
/// \brief Implementation of the B4a::EventAction class
|
||||
|
||||
#include "ConstructionWrapper.hh"
|
||||
#include "GeometryDescriptor.hh"
|
||||
|
||||
#include "EventAction.hh"
|
||||
#include "RunAction.hh"
|
||||
@@ -49,11 +49,11 @@ namespace B4a
|
||||
|
||||
void EventAction::BeginOfEventAction(const G4Event* /*event*/)
|
||||
{
|
||||
auto cw = B4::DetectorConstruction::getDetectorConstruction()->getConstructionWrapper();
|
||||
auto cw = B4::DetectorConstruction::getDetectorConstruction()->getGeometryDescriptor();
|
||||
// initialisation per event
|
||||
if(cw == nullptr){
|
||||
G4cout << "ConstructionWrapper not found" << G4endl;
|
||||
throw std::runtime_error("ConstructionWrapper not found");
|
||||
G4cout << "GeometryDescriptor not found" << G4endl;
|
||||
throw std::runtime_error("GeometryDescriptor not found");
|
||||
}
|
||||
if(gen == nullptr){
|
||||
G4cout << "PrimaryGeneratorAction not found" << G4endl;
|
||||
@@ -84,7 +84,7 @@ void EventAction::EndOfEventAction(const G4Event* event)
|
||||
|
||||
// get analysis manager
|
||||
auto analysisManager = G4AnalysisManager::Instance();
|
||||
auto cw = B4::DetectorConstruction::getDetectorConstruction()->getConstructionWrapper();
|
||||
auto cw = B4::DetectorConstruction::getDetectorConstruction()->getGeometryDescriptor();
|
||||
|
||||
//cw->printSensorEnergies();//DEBUG
|
||||
|
||||
|
||||
Reference in New Issue
Block a user