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
14
#include "
R3BPaddleTamexMappedData2.h
"
15
#include "
R3BShared.h
"
16
#include <utility>
17
18
namespace
R3B
19
{
20
MapBarSignal::MapBarSignal
(
R3B::Side
side,
const
DoubleEdgeSignal
& signal)
21
:
MapBarSignal
{}
22
{
23
push_back
(side, signal);
24
}
25
26
void
PaddleTamexMappedData::push_back
(
R3B::Side
side,
int
bar_num,
const
R3B::DoubleEdgeSignal
& signal)
27
{
28
if
(
auto
barIter =
bars
.find(bar_num); barIter !=
bars
.end())
29
{
30
auto
& [_, bar] = *barIter;
31
bar.push_back(side, signal);
32
}
33
else
34
{
35
bars
.insert(std::make_pair(bar_num,
R3B::MapBarSignal
{ side, signal }));
36
}
37
}
38
}
// namespace R3B
R3BPaddleTamexMappedData2.h
R3BShared.h
R3B
Definition
GeneratorFactoryJson.h:12
R3B::Side
Side
Definition
R3BShared.h:112
R3B::DoubleEdgeSignal
Definition
R3BPaddleTamexMappedData2.h:34
R3B::MapBarSignal
Definition
R3BPaddleTamexMappedData2.h:42
R3B::MapBarSignal::MapBarSignal
MapBarSignal()=default
R3B::MapBarSignal::push_back
void push_back(R3B::Side side, const DoubleEdgeSignal &signal)
Definition
R3BPaddleTamexMappedData2.h:45
R3B::PaddleTamexMappedData::push_back
void push_back(R3B::Side side, int bar_num, const R3B::DoubleEdgeSignal &signal)
Definition
R3BPaddleTamexMappedData2.cxx:26
R3B::PaddleTamexMappedData::bars
std::unordered_map< int, R3B::MapBarSignal > bars
bar number in a plane 1..50
Definition
R3BPaddleTamexMappedData2.h:58
r3bdata
neulandData
R3BPaddleTamexMappedData2.cxx
Generated by
1.14.0