Project
Loading...
Searching...
No Matches
ChannelMatching.cxx
Go to the documentation of this file.
1
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3
// All rights not expressly granted are reserved.
4
//
5
// This software is distributed under the terms of the GNU General Public
6
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7
//
8
// In applying this license CERN does not waive the privileges and immunities
9
// granted to it by virtue of its status as an Intergovernmental Organization
10
// or submit itself to any jurisdiction.
11
#include "
Framework/ChannelMatching.h
"
12
#include "
Framework/DataSpecUtils.h
"
13
14
namespace
o2::framework
15
{
16
17
LogicalChannelRange::LogicalChannelRange
(
const
OutputSpec
& spec)
18
{
19
name
= std::string(
"out_"
) + std::string(
DataSpecUtils::label
(spec));
20
}
21
22
bool
LogicalChannelRange::operator<
(
LogicalChannelRange
const
&
other
)
const
23
{
24
return
this->
name
<
other
.name;
25
}
26
27
LogicalChannelDomain::LogicalChannelDomain
(
const
InputSpec
& spec)
28
{
29
name
.value = std::string(
"out_"
) + std::string(
DataSpecUtils::label
(spec));
30
}
31
32
bool
LogicalChannelDomain::operator<
(
LogicalChannelDomain
const
&
other
)
const
33
{
34
return
this->
name
.value <
other
.name.value;
35
}
36
37
PhysicalChannelRange::PhysicalChannelRange
(
const
OutputSpec
& spec,
int
count
)
38
{
39
char
buffer
[16];
40
auto
channel =
LogicalChannelRange
(spec);
41
id
= channel.name + (snprintf(
buffer
, 16,
"_%d"
,
count
),
buffer
);
42
}
43
44
bool
PhysicalChannelRange::operator<
(
PhysicalChannelRange
const
&
other
)
const
45
{
46
return
this->
id
< other.
id
;
47
}
48
49
PhysicalChannelDomain::PhysicalChannelDomain
(
const
InputSpec
& spec,
int
count
)
50
{
51
char
buffer
[16];
52
auto
channel =
LogicalChannelDomain
(spec);
53
id
.value = channel.name.value + (snprintf(
buffer
, 16,
"_%d"
,
count
),
buffer
);
54
}
55
56
bool
PhysicalChannelDomain::operator<
(
PhysicalChannelDomain
const
&
other
)
const
57
{
58
return
this->
id
.value < other.
id
.
value
;
59
}
60
}
// namespace o2::framework
ChannelMatching.h
DataSpecUtils.h
count
GLint GLsizei count
Definition
glcorearb.h:399
buffer
GLuint buffer
Definition
glcorearb.h:655
name
GLuint const GLchar * name
Definition
glcorearb.h:781
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
o2::framework::DataSpecUtils::label
static std::string label(InputSpec const &spec)
Definition
DataSpecUtils.cxx:124
o2::framework::DomainId::value
std::string value
Definition
ChannelMatching.h:30
o2::framework::InputSpec
Definition
InputSpec.h:31
o2::framework::LogicalChannelDomain
Definition
ChannelMatching.h:33
o2::framework::LogicalChannelDomain::operator<
bool operator<(LogicalChannelDomain const &other) const
Definition
ChannelMatching.cxx:32
o2::framework::LogicalChannelDomain::LogicalChannelDomain
LogicalChannelDomain(InputSpec const &spec)
Definition
ChannelMatching.cxx:27
o2::framework::LogicalChannelRange
Definition
ChannelMatching.h:22
o2::framework::LogicalChannelRange::LogicalChannelRange
LogicalChannelRange(OutputSpec const &spec)
Definition
ChannelMatching.cxx:17
o2::framework::LogicalChannelRange::operator<
bool operator<(LogicalChannelRange const &other) const
Definition
ChannelMatching.cxx:22
o2::framework::OutputSpec
Definition
OutputSpec.h:33
o2::framework::PhysicalChannelDomain
Definition
ChannelMatching.h:46
o2::framework::PhysicalChannelDomain::id
DomainId id
Definition
ChannelMatching.h:49
o2::framework::PhysicalChannelDomain::PhysicalChannelDomain
PhysicalChannelDomain(InputSpec const &spec, int count)
Definition
ChannelMatching.cxx:49
o2::framework::PhysicalChannelDomain::operator<
bool operator<(PhysicalChannelDomain const &other) const
Definition
ChannelMatching.cxx:56
o2::framework::PhysicalChannelRange
Definition
ChannelMatching.h:39
o2::framework::PhysicalChannelRange::operator<
bool operator<(PhysicalChannelRange const &other) const
Definition
ChannelMatching.cxx:44
o2::framework::PhysicalChannelRange::PhysicalChannelRange
PhysicalChannelRange(OutputSpec const &spec, int count)
Definition
ChannelMatching.cxx:37
o2::framework::PhysicalChannelRange::id
std::string id
Definition
ChannelMatching.h:42
other
VectorOfTObjectPtrs other
Definition
test_Algorithm.cxx:501
Framework
Core
src
ChannelMatching.cxx
Generated on Tue Feb 25 2025 23:16:39 for Project by
1.9.8