add detector simulation

This commit is contained in:
AndreaRigoni
2026-03-20 00:16:55 +00:00
parent c44a7738c0
commit 033fb598c7
17 changed files with 441 additions and 211 deletions

View File

@@ -0,0 +1,30 @@
#ifndef U_GEANT_SIMULATIONCONTEXT_H
#define U_GEANT_SIMULATIONCONTEXT_H
#include "Core/Vector.h"
#include "GeantEvent.h"
#include "HEP/Detectors/MuonEvent.h"
#include "Math/Dense.h"
#include <mutex>
namespace uLib {
namespace Geant {
enum class SimulationMode {
DETAILED,
DETECTOR
};
struct SimulationContext {
SimulationMode mode = SimulationMode::DETAILED;
Vector<GeantEvent> *outputGeant = nullptr;
Vector<MuonEvent> *outputMuon = nullptr;
Vector<HLine3f> detectorPlanes;
int verbosity = 0;
std::mutex outputMutex;
};
} // namespace Geant
} // namespace uLib
#endif