Project
Loading...
Searching...
No Matches
zdc-dummy-ccdb-for-calib.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
12
#include "
Framework/DataAllocator.h
"
13
#include "
Framework/runDataProcessing.h
"
14
#include <TClass.h>
15
#include "
Framework/ControlService.h
"
16
17
using namespace
o2::framework
;
18
19
// This is how you can define your processing in a declarative way
20
std::vector<DataProcessorSpec>
defineDataProcessing
(
ConfigContext
const
&)
21
{
22
return
{
23
DataProcessorSpec
{
24
"simple"
,
25
Inputs
{{
"input"
,
"ZDC"
,
"CALIBDATA"
}},
26
Outputs
{
OutputSpec
{{
"config"
},
"ZDC"
,
"ZDCConfig"
},
27
OutputSpec
{{
"hv"
},
"ZDC"
,
"HVSetting"
},
28
OutputSpec
{{
"position"
},
"ZDC"
,
"Position"
}},
29
/*adaptStateless([](DataAllocator& outputs, ControlService& control) {
30
auto& calibTimeSlewing = outputs.make<o2::dataformats::CalibTimeSlewingParamZDC>(OutputRef{"timeSlewing", 0});
31
for (int ich = 0; ich < o2::dataformats::CalibTimeSlewingParamZDC::NCHANNELS; ich++) {
32
calibTimeSlewing.addTimeSlewingInfo(ich, 0, 0);
33
int sector = ich / o2::dataformats::CalibTimeSlewingParamZDC::NCHANNELXSECTOR;
34
int channelInSector = ich % o2::dataformats::CalibTimeSlewingParamZDC::NCHANNELXSECTOR;
35
calibTimeSlewing.setFractionUnderPeak(sector, channelInSector, 1);
36
}*/
37
38
// you should uncomment the lines below if you need that this workflow
39
// triggers the end of the subsequent ones (e.g. in the ZDC reconstruction workflow, but not fot the ZDC-calib-workflow)
40
// control.endOfStream();
41
// control.readyToQuit(QuitRequest::Me);
42
}};
43
}
ControlService.h
DataAllocator.h
o2::framework::ConfigContext
Definition
ConfigContext.h:24
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
o2::framework::Inputs
std::vector< InputSpec > Inputs
Definition
DataProcessorSpec.h:29
o2::framework::Outputs
std::vector< OutputSpec > Outputs
Definition
DataProcessorSpec.h:30
runDataProcessing.h
o2::framework::DataProcessorSpec
Definition
DataProcessorSpec.h:41
o2::framework::OutputSpec
Definition
OutputSpec.h:33
defineDataProcessing
std::vector< DataProcessorSpec > defineDataProcessing(ConfigContext const &)
This function hooks up the the workflow specifications into the DPL driver.
Definition
zdc-dummy-ccdb-for-calib.cxx:20
Detectors
ZDC
calib
testWorkflow
zdc-dummy-ccdb-for-calib.cxx
Generated on Tue Feb 25 2025 23:16:37 for Project by
1.9.8