R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandBasePar.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
3 * Copyright (C) 2019-2023 Members of R3B Collaboration *
4 * *
5 * This software is distributed under the terms of the *
6 * GNU General Public Licence (GPL) version 3, *
7 * copied verbatim in the file "LICENSE". *
8 * *
9 * In applying this license GSI does not waive the privileges and immunities *
10 * granted to it by virtue of its status as an Intergovernmental Organization *
11 * or submit itself to any jurisdiction. *
12 ******************************************************************************/
13#pragma once
14
15#include <R3BNeulandJsonHeader.h> // NOLINT
16#include <R3BNeulandParSet.h>
17#include <Rtypes.h>
18#include <string>
19#include <string_view>
20#include <unordered_map>
21#include <utility>
22
23namespace R3B::Neuland
24{
26 {
27 public:
28 using TrigIDMap = std::unordered_map<unsigned int, std::pair<unsigned int, unsigned int>>;
29 explicit CalibrationBasePar(std::string_view name = "NeulandCalibrationBasePar",
30 std::string_view title = "Neuland calibration base par",
31 std::string_view context = "TestDefaultContext",
32 bool own = true)
33 : Neuland::ParSet(name.data(), title.data(), context.data(), own)
34 {
35 }
36
37 [[nodiscard]] auto get_trig_id_map() const -> const auto& { return trigIDMap_; }
38 [[nodiscard]] auto get_exp_ids() const -> const auto& { return exp_ids_; }
39 auto get_offspill_tpat_pos() const -> int { return offspill_tpat_pos_; }
40 auto get_num_of_planes() const -> int { return num_of_planes_; }
41
42 // setters:
43 void set_num_of_planes(int num_of_plane) { num_of_planes_ = num_of_plane; }
44 void set_exp_ids(const std::string& exp_ids) { exp_ids_ = exp_ids; }
46 void set_trig_id_map(TrigIDMap trigIDMap) { trigIDMap_ = std::move(trigIDMap); }
47
48 private:
49 std::string exp_ids_;
53
54 public:
56 };
57} // namespace R3B::Neuland
auto get_trig_id_map() const -> const auto &
void set_trig_id_map(TrigIDMap trigIDMap)
void set_num_of_planes(int num_of_plane)
std::unordered_map< unsigned int, std::pair< unsigned int, unsigned int > > TrigIDMap
CalibrationBasePar(std::string_view name="NeulandCalibrationBasePar", std::string_view title="Neuland calibration base par", std::string_view context="TestDefaultContext", bool own=true)
void set_exp_ids(const std::string &exp_ids)
auto get_offspill_tpat_pos() const -> int
auto get_exp_ids() const -> const auto &
ClassDefOverride(CalibrationBasePar, 1)
ParSet(std::string_view name="parSet", std::string_view title="Neuland parameter", std::string_view context="TestDefaultContext", bool own=true)
Simulation of NeuLAND Bar/Paddle.