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
PaddleTamexMappedData::PaddleTamexMappedData
(
int
pID)
27
:
plane_num
{ pID }
28
{
29
}
30
31
void
PaddleTamexMappedData::push_back
(
R3B::Side
side,
int
barID,
const
R3B::DoubleEdgeSignal
& signal)
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
R3BPaddleTamexMappedData2.h
R3BShared.h
R3B
Definition
GeneratorFactoryJson.h:12
R3B::Side
Side
Definition
R3BShared.h:113
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::plane_num
int plane_num
number of plane 1..n
Definition
R3BPaddleTamexMappedData2.h:58
R3B::PaddleTamexMappedData::PaddleTamexMappedData
PaddleTamexMappedData()=default
R3B::PaddleTamexMappedData::push_back
void push_back(R3B::Side side, int barID, const R3B::DoubleEdgeSignal &signal)
Definition
R3BPaddleTamexMappedData2.cxx:31
R3B::PaddleTamexMappedData::bars
std::unordered_map< int, R3B::MapBarSignal > bars
number of bar 1..n
Definition
R3BPaddleTamexMappedData2.h:59
r3bdata
neulandData
R3BPaddleTamexMappedData2.cxx
Generated by
1.13.2