Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Common/TableProducer/Converters/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2020 CERN and copyright holders of ALICE O2.

Check warning on line 1 in Common/TableProducer/Converters/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-workflow]

Use kebab-case for names of workflows and match the name of the workflow file.
# See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
# All rights not expressly granted are reserved.
#
Expand Down Expand Up @@ -44,7 +44,7 @@
PUBLIC_LINK_LIBRARIES
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(mccollision-converter

Check warning on line 47 in Common/TableProducer/Converters/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-workflow]

Workflow name mccollision-converter does not match its file name mcCollisionConverter.cxx. (Matches mccollisionConverter.cxx.)
SOURCES mcCollisionConverter.cxx
PUBLIC_LINK_LIBRARIES
COMPONENT_NAME Analysis)
Expand All @@ -69,27 +69,32 @@
PUBLIC_LINK_LIBRARIES
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(hmpid-converter

Check warning on line 72 in Common/TableProducer/Converters/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-workflow]

Workflow name hmpid-converter does not match its file name hmpConverter.cxx. (Matches hmpidConverter.cxx.)
SOURCES hmpConverter.cxx
PUBLIC_LINK_LIBRARIES
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(multsextra-converter

Check warning on line 77 in Common/TableProducer/Converters/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-workflow]

Workflow name multsextra-converter does not match its file name multsExtraConverter.cxx. (Matches multsextraConverter.cxx.)
SOURCES multsExtraConverter.cxx
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(multmcextras-converter

Check warning on line 82 in Common/TableProducer/Converters/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-workflow]

Workflow name multmcextras-converter does not match its file name multMCExtrasConverter.cxx. (Matches multmcextrasConverter.cxx.)
SOURCES multMCExtrasConverter.cxx
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(trackqa-converter

Check warning on line 87 in Common/TableProducer/Converters/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-workflow]

Workflow name trackqa-converter does not match its file name trackQAConverter.cxx. (Matches trackqaConverter.cxx.)
SOURCES trackQAConverter.cxx
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(trackqa-converter-002

Check warning on line 92 in Common/TableProducer/Converters/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-workflow]

Workflow name trackqa-converter-002 does not match its file name trackQA002Converter.cxx. (Matches trackqaConverter002.cxx.)
SOURCES trackQA002Converter.cxx
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(run2-tracks-extra-converter

Check warning on line 97 in Common/TableProducer/Converters/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-workflow]

Workflow name run2-tracks-extra-converter does not match its file name run2tracksExtraConverter.cxx. (Matches run2TracksExtraConverter.cxx.)
SOURCES run2tracksExtraConverter.cxx
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
COMPONENT_NAME Analysis)
44 changes: 44 additions & 0 deletions Common/TableProducer/Converters/run2tracksExtraConverter.cxx
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.

Check warning on line 1 in Common/TableProducer/Converters/run2tracksExtraConverter.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Provide mandatory file documentation.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
//
// 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.

/// \file tracksExtraConverter.cxx
/// \brief Converts TracksExtra table from version 000 to 001

/// This task allows for the conversion of the TracksExtra table from version 000 to 001.
/// The conversion is needed because the table has been extended with the ITSClusterSize column
/// and the ITSClusterMap column is evaluated dynamically from it.
/// In the converter a dummy ITSClusterSize column is filled with overflows if a hit in the layer is present

/// \author F.Mazzaschi <fmazzasc@cern.ch>

Check warning on line 20 in Common/TableProducer/Converters/run2tracksExtraConverter.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \file is missing, incorrect or misplaced.

#include "Framework/runDataProcessing.h"
#include "Framework/AnalysisTask.h"
#include "Framework/AnalysisDataModel.h"

using namespace o2;
using namespace o2::framework;

struct Run2TracksExtraConverter {
Produces<aod::Run2TrackExtras_001> Run2TrackExtras_001;
void process(aod::Run2TrackExtras_000 const& Run2TrackExtras_000)
{

for (const auto& track0 : Run2TrackExtras_000) {
Run2TrackExtras_001(track0.itsSignal(), 0);
}
}
};

WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
{
return WorkflowSpec{
adaptAnalysisTask<Run2TracksExtraConverter>(cfgc)};
}
Loading