Skip to content

Commit a89b38e

Browse files
committed
Dummy Calibration producer for TOF
1 parent f095b03 commit a89b38e

3 files changed

Lines changed: 38 additions & 1 deletion

File tree

DataFormats/Detectors/TOF/include/DataFormatsTOF/CalibLHCphaseTOF.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#define ALICEO2_CALIBLHCPHASETOF_H
1616

1717
#include <vector>
18+
#include "Rtypes.h"
1819

1920
namespace o2
2021
{
@@ -39,7 +40,7 @@ class CalibLHCphaseTOF
3940
// LHCphase calibration
4041
std::vector<std::pair<int, float>> mLHCphase; ///< <timestamp,LHCphase> from which the LHCphase measurement is valid
4142

42-
// ClassDefNV(CalibLHCphaseTOF, 1);
43+
ClassDefNV(CalibLHCphaseTOF, 1);
4344
};
4445
} // namespace dataformats
4546
} // namespace o2

Framework/TestWorkflows/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ o2_add_executable(datasampling-time-pipeline
108108
PUBLIC_LINK_LIBRARIES O2::Framework
109109
COMPONENT_NAME TestWorkflows)
110110

111+
# Detector specific dummy workflows
112+
o2_add_executable(tof-dummy-ccdb
113+
SOURCES src/tof-dummy-ccdb.cxx
114+
PUBLIC_LINK_LIBRARIES O2::Framework O2::TOFReconstruction
115+
COMPONENT_NAME TestWorkflows)
116+
111117
if(BUILD_SIMULATION)
112118
o2_add_executable(
113119
ITSClusterizers
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Copyright CERN and copyright holders of ALICE O2. This software is
2+
// distributed under the terms of the GNU General Public License v3 (GPL
3+
// Version 3), copied verbatim in the file "COPYING".
4+
//
5+
// See http://alice-o2.web.cern.ch/license for full licensing information.
6+
//
7+
// In applying this license CERN does not waive the privileges and immunities
8+
// granted to it by virtue of its status as an Intergovernmental Organization
9+
// or submit itself to any jurisdiction.
10+
#include "Framework/DataAllocator.h"
11+
#include "Framework/runDataProcessing.h"
12+
#include <TClass.h>
13+
#include "DataFormatsTOF/CalibLHCphaseTOF.h"
14+
15+
using namespace o2::framework;
16+
17+
// This is how you can define your processing in a declarative way
18+
std::vector<DataProcessorSpec> defineDataProcessing(ConfigContext const&)
19+
{
20+
return {
21+
DataProcessorSpec{
22+
"simple",
23+
Inputs{},
24+
{OutputSpec{{"phase"}, "TOF", "LHCPhase"}},
25+
adaptStateless([](DataAllocator& outputs) {
26+
// Create and fill a dummy LHCphase object
27+
auto& lhcPhase = outputs.make<o2::dataformats::CalibLHCphaseTOF>(OutputRef{"phase", 0});
28+
lhcPhase.addLHCphase(0, 0);
29+
})}};
30+
}

0 commit comments

Comments
 (0)