Skip to content

Commit 2d4cbae

Browse files
ddobrigkalibuild
andauthored
[Common] add Run2BCInfos converter (#9064)
Co-authored-by: ALICE Builder <alibuild@users.noreply.github.com>
1 parent 1c8440c commit 2d4cbae

File tree

3 files changed

+46
-10
lines changed

3 files changed

+46
-10
lines changed

Common/TableProducer/Converters/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,13 @@ o2physics_add_dpl_workflow(trackqa-converter-002
9494
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
9595
COMPONENT_NAME Analysis)
9696

97+
o2physics_add_dpl_workflow(run2bcinfos-converter
98+
SOURCES run2bcinfosConverter.cxx
99+
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
100+
COMPONENT_NAME Analysis)
101+
97102
o2physics_add_dpl_workflow(run2-tracks-extra-converter
98103
SOURCES run2tracksExtraConverter.cxx
99104
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
100105
COMPONENT_NAME Analysis)
106+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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/runDataProcessing.h"
13+
#include "Framework/AnalysisTask.h"
14+
#include "Framework/AnalysisDataModel.h"
15+
16+
using namespace o2;
17+
using namespace o2::framework;
18+
19+
struct Run2BCInfosConverter {
20+
Produces<aod::Run2BCInfos_001> Run2BCInfos_001;
21+
void process(aod::Run2BCInfos_000 const& Run2BCInfos_000)
22+
{
23+
24+
for (const auto& entry : Run2BCInfos_000) {
25+
Run2BCInfos_001(entry.eventCuts(),
26+
entry.triggerMaskNext50(), entry.l0TriggerInputMask(),
27+
entry.spdClustersL0(), entry.spdClustersL1(),
28+
entry.spdFiredChipsL0(), entry.spdFiredChipsL1(),
29+
entry.spdFiredFastOrL0(), entry.spdFiredFastOrL1(),
30+
entry.v0TriggerChargeA(), entry.v0TriggerChargeC(),
31+
0, 0);
32+
}
33+
}
34+
};
35+
36+
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
37+
{
38+
return WorkflowSpec{
39+
adaptAnalysisTask<Run2BCInfosConverter>(cfgc)};
40+
}

Common/TableProducer/Converters/run2tracksExtraConverter.cxx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,6 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
/// \file tracksExtraConverter.cxx
13-
/// \brief Converts TracksExtra table from version 000 to 001
14-
15-
/// This task allows for the conversion of the TracksExtra table from version 000 to 001.
16-
/// The conversion is needed because the table has been extended with the ITSClusterSize column
17-
/// and the ITSClusterMap column is evaluated dynamically from it.
18-
/// In the converter a dummy ITSClusterSize column is filled with overflows if a hit in the layer is present
19-
20-
/// \author F.Mazzaschi <fmazzasc@cern.ch>
21-
2212
#include "Framework/runDataProcessing.h"
2313
#include "Framework/AnalysisTask.h"
2414
#include "Framework/AnalysisDataModel.h"

0 commit comments

Comments
 (0)