Project
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
o
p
q
r
s
t
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
z
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Symbols
a
b
c
f
g
m
o
q
r
s
t
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
a
b
c
d
k
m
n
s
v
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Concepts
Loading...
Searching...
No Matches
tof-compressed-inspector.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
16
17
#include "
TOFWorkflowUtils/CompressedInspectorTask.h
"
18
#include "
Framework/WorkflowSpec.h
"
19
#include "
Framework/ConfigParamSpec.h
"
20
#include <fairlogger/Logger.h>
21
22
using namespace
o2::framework
;
23
24
// add workflow options, note that customization needs to be declared before
25
// including Framework/runDataProcessing
26
void
customize
(std::vector<ConfigParamSpec>& workflowOptions)
27
{
28
auto
inputDesc =
ConfigParamSpec
{
"tof-compressed-inspector-input-desc"
, VariantType::String,
"CRAWDATA"
, {
"Input specs description string"
}};
29
auto
rdhVersion =
ConfigParamSpec
{
"tof-compressed-inspector-rdh-version"
, VariantType::Int, 7, {
"Raw Data Header version"
}};
30
workflowOptions.push_back(inputDesc);
31
workflowOptions.push_back(rdhVersion);
32
}
26
void
customize
(std::vector<ConfigParamSpec>& workflowOptions) {
…
}
33
34
#include "
Framework/runDataProcessing.h
"
// the main driver
35
37
WorkflowSpec
defineDataProcessing
(
ConfigContext
const
& cfgc)
38
{
39
auto
inputDesc = cfgc.
options
().
get
<std::string>(
"tof-compressed-inspector-input-desc"
);
40
auto
rdhVersion = cfgc.
options
().
get
<
int
>(
"tof-compressed-inspector-rdh-version"
);
41
42
AlgorithmSpec
algoSpec;
43
if
(rdhVersion == 4) {
44
algoSpec =
AlgorithmSpec
{adaptFromTask<o2::tof::CompressedInspectorTask<o2::header::RAWDataHeaderV4>>()};
45
}
else
if
(rdhVersion == 6) {
46
algoSpec =
AlgorithmSpec
{adaptFromTask<o2::tof::CompressedInspectorTask<o2::header::RAWDataHeaderV6>>()};
47
}
else
if
(rdhVersion == 7) {
48
algoSpec =
AlgorithmSpec
{adaptFromTask<o2::tof::CompressedInspectorTask<o2::header::RAWDataHeaderV7>>()};
49
}
50
51
WorkflowSpec
workflow;
52
workflow.emplace_back(
DataProcessorSpec
{
53
"tof-compressed-inspector"
,
54
select
(std::string(
"x:TOF/"
+ inputDesc).c_str()),
55
Outputs
{},
56
algoSpec,
57
Options
{
58
{
"tof-compressed-inspector-filename"
, VariantType::String,
"inspector.root"
, {
"Name of the inspector output file"
}},
59
{
"tof-compressed-inspector-decoder-verbose"
, VariantType::Bool,
false
, {
"Decode in verbose mode"
}}}});
60
61
return
workflow;
62
}
37
WorkflowSpec
defineDataProcessing
(
ConfigContext
const
& cfgc) {
…
}
CompressedInspectorTask.h
TOF compressed data inspector task.
ConfigParamSpec.h
WorkflowSpec.h
o2::framework::ConfigContext
Definition
ConfigContext.h:24
o2::framework::ConfigContext::options
ConfigParamRegistry & options() const
Definition
ConfigContext.h:28
o2::framework::ConfigParamRegistry::get
T get(const char *key) const
Definition
ConfigParamRegistry.h:98
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
o2::framework::WorkflowSpec
std::vector< DataProcessorSpec > WorkflowSpec
Definition
HBFUtilsInitializer.h:39
o2::framework::select
std::vector< InputSpec > select(char const *matcher="")
Definition
WorkflowSpec.cxx:152
o2::framework::Outputs
std::vector< OutputSpec > Outputs
Definition
DataProcessorSpec.h:30
runDataProcessing.h
Options
Definition
TreeMergerTool.cxx:26
o2::framework::AlgorithmSpec
Definition
AlgorithmSpec.h:43
o2::framework::ConfigParamSpec
Definition
ConfigParamSpec.h:31
o2::framework::DataProcessorSpec
Definition
DataProcessorSpec.h:41
defineDataProcessing
WorkflowSpec defineDataProcessing(ConfigContext const &cfgc)
This function hooks up the the workflow specifications into the DPL driver.
Definition
tof-compressed-inspector.cxx:37
customize
void customize(std::vector< ConfigParamSpec > &workflowOptions)
Definition
tof-compressed-inspector.cxx:26
Detectors
TOF
compression
src
tof-compressed-inspector.cxx
Generated on Thu Apr 17 2025 09:01:00 for Project by
1.9.8