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#include "R3BShared.h"
16#include <utility>
17
18namespace R3B
19{
21 : MapBarSignal{}
22 {
23 push_back(side, signal);
24 }
25
30
32 {
33 if (auto barIter = bars.find(barID); barIter != bars.end())
34 {
35 auto& [_, bar] = *barIter;
36 bar.push_back(side, signal);
37 }
38 else
39 {
40 bars.insert(std::make_pair(barID, R3B::MapBarSignal{ side, signal }));
41 }
42 }
43} // namespace R3B
MapBarSignal()=default
void push_back(R3B::Side side, const DoubleEdgeSignal &signal)
void push_back(R3B::Side side, int barID, const R3B::DoubleEdgeSignal &signal)
std::unordered_map< int, R3B::MapBarSignal > bars
number of bar 1..n