seems to work with different geometries
This commit is contained in:
+3
-1
@@ -40,6 +40,7 @@
|
||||
|
||||
#include "Randomize.hh"
|
||||
#include <iomanip>
|
||||
#include "DetectorConstruction.hh"
|
||||
|
||||
namespace B4a
|
||||
{
|
||||
@@ -48,6 +49,7 @@ namespace B4a
|
||||
|
||||
void EventAction::BeginOfEventAction(const G4Event* /*event*/)
|
||||
{
|
||||
auto cw = B4::DetectorConstruction::getDetectorConstruction()->getConstructionWrapper();
|
||||
// initialisation per event
|
||||
if(cw == nullptr){
|
||||
G4cout << "ConstructionWrapper not found" << G4endl;
|
||||
@@ -82,7 +84,7 @@ void EventAction::EndOfEventAction(const G4Event* event)
|
||||
|
||||
// get analysis manager
|
||||
auto analysisManager = G4AnalysisManager::Instance();
|
||||
|
||||
auto cw = B4::DetectorConstruction::getDetectorConstruction()->getConstructionWrapper();
|
||||
|
||||
//cw->printSensorEnergies();//DEBUG
|
||||
|
||||
|
||||
Reference in New Issue
Block a user