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
14#include <TClass.h>
16
17using namespace o2::framework;
18
19// This is how you can define your processing in a declarative way
20std::vector<DataProcessorSpec> defineDataProcessing(ConfigContext const&)
21{
22 return {
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}
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
std::vector< InputSpec > Inputs
std::vector< OutputSpec > Outputs
std::vector< DataProcessorSpec > defineDataProcessing(ConfigContext const &)
This function hooks up the the workflow specifications into the DPL driver.