Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-10-18 08:50:00

0001 // SPDX-License-Identifier: LGPL-3.0-or-later
0002 // Copyright (C) 2024, 2025, 2026, Alexander Kiselev
0003 
0004 #pragma once
0005 
0006 #include <nlohmann/json.hpp>
0007 
0008 #include <IRT2/CherenkovDetectorCollection.h>
0009 
0010 namespace eicrecon {
0011 
0012 // JOmniFactoryGeneratorT does not allow to use more than one extra config parameter ->
0013 // bunch whatever is needed to pass in a single structure; do not want to repeat parsing
0014 // of either the optics file or a JSON configuration file twice;
0015 struct IrtConfig {
0016   std::string m_detector_name;
0017   std::string m_json_config_file_name;
0018 
0019   // FIXME: perhaps do it better later; but in general see no reason in parsing
0020   // the same fields in a JSON file twice;
0021   double m_eta_min{0}, m_eta_max{0};
0022 };
0023 
0024 } // namespace eicrecon