From 1e7c9617f620259cb1d971e34a1fa02b4a08fb0e Mon Sep 17 00:00:00 2001 From: dthisse <damien.thisse@cea.fr> Date: Mon, 25 Nov 2024 11:17:38 +0100 Subject: [PATCH] Added in ACTAR : the possibility to load a LookupTable for Simulation automatically --- NPLib/Detectors/Actar/TActarPhysics.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NPLib/Detectors/Actar/TActarPhysics.cxx b/NPLib/Detectors/Actar/TActarPhysics.cxx index b546ae71c..da9dbd291 100644 --- a/NPLib/Detectors/Actar/TActarPhysics.cxx +++ b/NPLib/Detectors/Actar/TActarPhysics.cxx @@ -642,7 +642,9 @@ void TActarPhysics::ReadAnalysisConfig() { // Lookup table // bool ReadingLookupTable = false; - string LT_FileName = "./configs/LT.dat"; + string LT_FileName; + if(IsSimulation()) {LT_FileName = "./configs/LT_SIMU.dat";} + else {LT_FileName = "./configs/LT.dat";} ifstream LTConfigFile; LTConfigFile.open(LT_FileName.c_str()); if(!LTConfigFile.is_open()){ -- GitLab