make scene able to run parallel simulations

This commit is contained in:
AndreaRigoni
2026-03-19 21:51:38 +00:00
parent 85e1f1448f
commit c44a7738c0
12 changed files with 247 additions and 24 deletions

View File

@@ -15,8 +15,11 @@ public:
/// @param emitter the primary generator to use (owned by caller)
/// @param output pointer to the results vector (owned by caller)
ActionInitialization(EmitterPrimary *emitter = nullptr,
Vector<GeantEvent> *output = nullptr);
Vector<GeantEvent> *output = nullptr,
int verbosity = 0);
~ActionInitialization();
void SetVerbosity(int level) { m_Verbosity = level; }
// Metodo chiamato solo dal thread principale (Master)
virtual void BuildForMaster() const;
@@ -27,6 +30,7 @@ public:
private:
EmitterPrimary *m_Emitter;
Vector<GeantEvent> *m_Output;
int m_Verbosity = 0;
};
} // namespace Geant