add detector simulation
This commit is contained in:
30
src/HEP/Geant/SimulationContext.h
Normal file
30
src/HEP/Geant/SimulationContext.h
Normal 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
|
||||
Reference in New Issue
Block a user