diff --git a/ALICE3/TableProducer/CMakeLists.txt b/ALICE3/TableProducer/CMakeLists.txt index 51a74195377..4d2c473fe3a 100644 --- a/ALICE3/TableProducer/CMakeLists.txt +++ b/ALICE3/TableProducer/CMakeLists.txt @@ -45,3 +45,8 @@ o2physics_add_dpl_workflow(alice3-correlatorddbar SOURCES alice3-correlatorDDbar.cxx PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DCAFitter COMPONENT_NAME Analysis) + +o2physics_add_dpl_workflow(alice3-tracking-translator + SOURCES alice3TrackingTranslator.cxx + PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DCAFitter + COMPONENT_NAME Analysis) diff --git a/ALICE3/TableProducer/alice3TrackingTranslator.cxx b/ALICE3/TableProducer/alice3TrackingTranslator.cxx new file mode 100644 index 00000000000..8468c99837a --- /dev/null +++ b/ALICE3/TableProducer/alice3TrackingTranslator.cxx @@ -0,0 +1,65 @@ +// 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. + +/// \file alice3TrackingTranslator.cxx +/// +/// \brief Translator task to convert tracking software to the AO2D format digestible with the O2Physics analysis framework +/// +/// \author Nicolò Jacazio, Universita del Piemonte Orientale (IT) +/// + +#include "ALICE3/DataModel/collisionAlice3.h" +#include "ALICE3/DataModel/tracksAlice3.h" +#include "Common/DataModel/TrackSelectionTables.h" + +#include +#include +#include +#include +#include +#include + +struct Alice3TrackingTranslator { + o2::framework::Produces tableCollisions; + o2::framework::Produces tableMcCollisionLabels; + o2::framework::Produces tableStoredTracks; + o2::framework::Produces tableTracksExtension; + o2::framework::Produces tableStoredTracksCov; + o2::framework::Produces tableTracksCovExtension; + o2::framework::Produces tableMcTrackLabels; + o2::framework::Produces tableTracksDCA; + o2::framework::Produces tableTracksDCACov; + o2::framework::Produces tableCollisionsAlice3; + o2::framework::Produces tableTracksAlice3; + o2::framework::Produces tableTracksExtraA3; + + o2::framework::Produces tableStoredTracksExtra; + o2::framework::Produces tableTrackSelection; + o2::framework::Produces tableTrackSelectionExtension; + + void init(o2::framework::InitContext&) + { + // Initialization if needed + LOG(info) << "Alice3TrackingTranslator init called"; + } + + void process(o2::aod::BCs const&) + { + LOG(info) << "Alice3TrackingTranslator process called"; + } +}; + +o2::framework::WorkflowSpec defineDataProcessing(o2::framework::ConfigContext const& cfgc) +{ + o2::framework::WorkflowSpec w; + w.push_back(adaptAnalysisTask(cfgc)); + return w; +}