R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BPaddleTamexMappedData2.cxx
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
15
16namespace R3B
17{
19 : MapBarSignal{}
20 {
21 push_back(side, signal);
22 }
23
25 : plane_num{ pID }
26 {
27 }
28
29 void PaddleTamexMappedData::push_back(R3B::Side side, unsigned int barID, const R3B::DoubleEdgeSignal& signal)
30 {
31 if (auto barIter = bars.find(barID); barIter != bars.end())
32 {
33 auto& [_, bar] = *barIter;
34 bar.push_back(side, signal);
35 }
36 else
37 {
38 bars.insert(std::make_pair(barID, R3B::MapBarSignal{ side, signal }));
39 }
40 }
41} // namespace R3B
42
ClassImp(R3B::MapBarSignal)
MapBarSignal()=default
void push_back(R3B::Side side, const DoubleEdgeSignal &signal)
void push_back(R3B::Side side, unsigned int barID, const R3B::DoubleEdgeSignal &signal)
std::unordered_map< unsigned int, R3B::MapBarSignal > bars