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,22 +69,27 @@
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)
97 changes: 97 additions & 0 deletions Common/TableProducer/Converters/trackQA002Converter.cxx
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// 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.
#include <limits>

Check warning on line 11 in Common/TableProducer/Converters/trackQA002Converter.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \file is missing, incorrect or misplaced.

Check warning on line 11 in Common/TableProducer/Converters/trackQA002Converter.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \brief is missing, incorrect or misplaced.

Check warning on line 11 in Common/TableProducer/Converters/trackQA002Converter.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \author 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 TrackQAConverter002 {
Produces<aod::TracksQA_002> tracksQA_002;

void process000(aod::TracksQA_000 const& tracksQA_002)
{
for (const auto& trackQA : tracksQA_000) {
tracksQA_002(
Comment on lines +21 to +26
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, but this is clearly a bug which does not compile.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for checking. I got the modification from Felix, and I assume that I compiled it.
Looks like it was not synced to my build server properly

trackQA.trackId(),
trackQA.tpcTime0(),
trackQA.tpcdcaR(),
trackQA.tpcdcaZ(),
trackQA.tpcClusterByteMask(),
trackQA.tpcdEdxMax0R(),
trackQA.tpcdEdxMax1R(),
trackQA.tpcdEdxMax2R(),
trackQA.tpcdEdxMax3R(),
trackQA.tpcdEdxTot0R(),
trackQA.tpcdEdxTot1R(),
trackQA.tpcdEdxTot2R(),
trackQA.tpcdEdxTot3R(),
// dummy values, not available in _000
std::numeric_limits<int8_t>::min(), // deltaRefContParamY
std::numeric_limits<int8_t>::min(), // deltaRefContParamZ
std::numeric_limits<int8_t>::min(), // deltaRefContParamSnp
std::numeric_limits<int8_t>::min(), // deltaRefContParamTgl
std::numeric_limits<int8_t>::min(), // deltaRefContParamQ2Pt
std::numeric_limits<int8_t>::min(), // deltaRefGloParamY
std::numeric_limits<int8_t>::min(), // deltaRefGloParamZ
std::numeric_limits<int8_t>::min(), // deltaRefGloParamSnp
std::numeric_limits<int8_t>::min(), // deltaRefGloParamTgl
std::numeric_limits<int8_t>::min(), // deltaRefGloParamQ2Pt
std::numeric_limits<int8_t>::min(), // dTofdX
std::numeric_limits<int8_t>::min()); // dTofdY
}
}
PROCESS_SWITCH(TrackQAConverter002, process000, "process v000-to-v002 conversion", false);

void process001(aod::TracksQA_001 const& tracksQA_002)
{
for (const auto& trackQA : tracksQA_001) {
tracksQA_002(
Comment on lines +57 to +60
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

trackQA.trackId(),
trackQA.tpcTime0(),
trackQA.tpcdcaR(),
trackQA.tpcdcaZ(),
trackQA.tpcClusterByteMask(),
trackQA.tpcdEdxMax0R(),
trackQA.tpcdEdxMax1R(),
trackQA.tpcdEdxMax2R(),
trackQA.tpcdEdxMax3R(),
trackQA.tpcdEdxTot0R(),
trackQA.tpcdEdxTot1R(),
trackQA.tpcdEdxTot2R(),
trackQA.tpcdEdxTot3R(),
trackQA.deltaRefContParamY(),
trackQA.deltaRefITSParamZ(),
trackQA.deltaRefContParamSnp(),
trackQA.deltaRefContParamTgl(),
trackQA.deltaRefContParamQ2Pt(),
trackQA.deltaRefGloParamY(),
trackQA.deltaRefGloParamZ(),
trackQA.deltaRefGloParamSnp(),
trackQA.deltaRefGloParamTgl(),
trackQA.deltaRefGloParamQ2Pt(),
// dummy values, not available in _001
std::numeric_limits<int8_t>::min(), // dTofdX
std::numeric_limits<int8_t>::min()); // dTofdY
}
}
PROCESS_SWITCH(TrackQAConverter002, process001, "process v001-to-v002 conversion", false);
};

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