9#include <unordered_map>
17 using Record = std::map<unsigned int, uint64_t>;
20 void add(
unsigned int trigID,
R3B::Side side,
unsigned int counts = 1);
21 [[nodiscard]]
auto findID(
R3B::Side side)
const -> std::optional<unsigned int>;
27 using TrigIDMap = std::unordered_map<unsigned int, std::pair<unsigned int, unsigned int>>;
36 std::unordered_map<unsigned int, TrigIDMappingRecorder>
records_;
std::unordered_map< unsigned int, TrigIDMappingRecorder > records_
void add_id_pair(std::pair< unsigned int, unsigned int > pair, R3B::Side side, unsigned int counts=1)
auto extract_trigIDMap(bool force_find=false) -> TrigIDMap
void set_trigIDMap(TrigIDMap idMap)
std::unordered_map< unsigned int, std::pair< unsigned int, unsigned int > > TrigIDMap
TrigIDMappingFinder()=default
static void AutoResolve(TrigIDMap &trigIDMap)
void SetFormat(TrigIDMappingPrintFormat format)
TrigIDMappingPrintFormat format_
void SetFileName(std::string_view filename)
unsigned int numOfModule_
void SetNumOfModule(unsigned int num)
void Save_json(const TrigIDMappingFinder::TrigIDMap &trigMap) const
void SetDir(std::string_view dirname)
auto Read_json() const -> TrigIDMappingFinder::TrigIDMap
void Print_screen(const TrigIDMappingFinder::TrigIDMap &trigMap) const
void Print(const TrigIDMappingFinder::TrigIDMap &trigMap) const
Simulation of NeuLAND Bar/Paddle.
std::map< unsigned int, uint64_t > Record
void add(unsigned int trigID, R3B::Side side, unsigned int counts=1)
auto findID(R3B::Side side) const -> std::optional< unsigned int >