From 65cef786513017463cf0667e185223b4f0353b5c Mon Sep 17 00:00:00 2001 From: Giulio Eulisse Date: Thu, 28 Nov 2019 13:48:25 +0100 Subject: [PATCH 1/2] Add missing headers --- DataFormats/common/src/BunchFilling.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DataFormats/common/src/BunchFilling.cxx b/DataFormats/common/src/BunchFilling.cxx index ba9b3348df59d..328c63ff50707 100644 --- a/DataFormats/common/src/BunchFilling.cxx +++ b/DataFormats/common/src/BunchFilling.cxx @@ -10,7 +10,8 @@ #include "FairLogger.h" #include "CommonDataFormat/BunchFilling.h" -#include "TFile.h" +#include +#include using namespace o2; From bb6879524ca9cb8a3d79eed98a7ce0ed186c9fa4 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse Date: Thu, 28 Nov 2019 13:48:06 +0100 Subject: [PATCH 2/2] Dummy Calibration producer for TOF --- .../include/DataFormatsTOF/CalibLHCphaseTOF.h | 3 +- Framework/TestWorkflows/CMakeLists.txt | 6 ++++ .../TestWorkflows/src/tof-dummy-ccdb.cxx | 30 +++++++++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 Framework/TestWorkflows/src/tof-dummy-ccdb.cxx diff --git a/DataFormats/Detectors/TOF/include/DataFormatsTOF/CalibLHCphaseTOF.h b/DataFormats/Detectors/TOF/include/DataFormatsTOF/CalibLHCphaseTOF.h index a2df666fdcf11..ba60077538b9f 100644 --- a/DataFormats/Detectors/TOF/include/DataFormatsTOF/CalibLHCphaseTOF.h +++ b/DataFormats/Detectors/TOF/include/DataFormatsTOF/CalibLHCphaseTOF.h @@ -15,6 +15,7 @@ #define ALICEO2_CALIBLHCPHASETOF_H #include +#include "Rtypes.h" namespace o2 { @@ -39,7 +40,7 @@ class CalibLHCphaseTOF // LHCphase calibration std::vector> mLHCphase; ///< from which the LHCphase measurement is valid - // ClassDefNV(CalibLHCphaseTOF, 1); + ClassDefNV(CalibLHCphaseTOF, 1); }; } // namespace dataformats } // namespace o2 diff --git a/Framework/TestWorkflows/CMakeLists.txt b/Framework/TestWorkflows/CMakeLists.txt index 283161bf6ad2b..0cf83e175d3ca 100644 --- a/Framework/TestWorkflows/CMakeLists.txt +++ b/Framework/TestWorkflows/CMakeLists.txt @@ -108,6 +108,12 @@ o2_add_executable(datasampling-time-pipeline PUBLIC_LINK_LIBRARIES O2::Framework COMPONENT_NAME TestWorkflows) +# Detector specific dummy workflows +o2_add_executable(tof-dummy-ccdb + SOURCES src/tof-dummy-ccdb.cxx + PUBLIC_LINK_LIBRARIES O2::Framework O2::TOFReconstruction + COMPONENT_NAME TestWorkflows) + if(BUILD_SIMULATION) o2_add_executable( ITSClusterizers diff --git a/Framework/TestWorkflows/src/tof-dummy-ccdb.cxx b/Framework/TestWorkflows/src/tof-dummy-ccdb.cxx new file mode 100644 index 0000000000000..44126147d679a --- /dev/null +++ b/Framework/TestWorkflows/src/tof-dummy-ccdb.cxx @@ -0,0 +1,30 @@ +// Copyright CERN and copyright holders of ALICE O2. This software is +// distributed under the terms of the GNU General Public License v3 (GPL +// Version 3), copied verbatim in the file "COPYING". +// +// See http://alice-o2.web.cern.ch/license for full licensing information. +// +// In applying this license CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. +#include "Framework/DataAllocator.h" +#include "Framework/runDataProcessing.h" +#include +#include "DataFormatsTOF/CalibLHCphaseTOF.h" + +using namespace o2::framework; + +// This is how you can define your processing in a declarative way +std::vector defineDataProcessing(ConfigContext const&) +{ + return { + DataProcessorSpec{ + "simple", + Inputs{}, + {OutputSpec{{"phase"}, "TOF", "LHCPhase"}}, + adaptStateless([](DataAllocator& outputs) { + // Create and fill a dummy LHCphase object + auto& lhcPhase = outputs.make(OutputRef{"phase", 0}); + lhcPhase.addLHCphase(0, 0); + })}}; +}