Skip to content

Commit e9f1aee

Browse files
authored
[ALICE3] Add proto translator (#13907)
1 parent 7a5c61c commit e9f1aee

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed

ALICE3/TableProducer/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,8 @@ o2physics_add_dpl_workflow(alice3-correlatorddbar
4545
SOURCES alice3-correlatorDDbar.cxx
4646
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DCAFitter
4747
COMPONENT_NAME Analysis)
48+
49+
o2physics_add_dpl_workflow(alice3-tracking-translator
50+
SOURCES alice3TrackingTranslator.cxx
51+
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DCAFitter
52+
COMPONENT_NAME Analysis)
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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+
/// \file alice3TrackingTranslator.cxx
13+
///
14+
/// \brief Translator task to convert tracking software to the AO2D format digestible with the O2Physics analysis framework
15+
///
16+
/// \author Nicolò Jacazio, Universita del Piemonte Orientale (IT)
17+
///
18+
19+
#include "ALICE3/DataModel/collisionAlice3.h"
20+
#include "ALICE3/DataModel/tracksAlice3.h"
21+
#include "Common/DataModel/TrackSelectionTables.h"
22+
23+
#include <Framework/AnalysisDataModel.h>
24+
#include <Framework/AnalysisHelpers.h>
25+
#include <Framework/AnalysisTask.h>
26+
#include <Framework/HistogramRegistry.h>
27+
#include <Framework/O2DatabasePDGPlugin.h>
28+
#include <Framework/runDataProcessing.h>
29+
30+
struct Alice3TrackingTranslator {
31+
o2::framework::Produces<o2::aod::Collisions> tableCollisions;
32+
o2::framework::Produces<o2::aod::McCollisionLabels> tableMcCollisionLabels;
33+
o2::framework::Produces<o2::aod::StoredTracks> tableStoredTracks;
34+
o2::framework::Produces<o2::aod::TracksExtension> tableTracksExtension;
35+
o2::framework::Produces<o2::aod::StoredTracksCov> tableStoredTracksCov;
36+
o2::framework::Produces<o2::aod::TracksCovExtension> tableTracksCovExtension;
37+
o2::framework::Produces<o2::aod::McTrackLabels> tableMcTrackLabels;
38+
o2::framework::Produces<o2::aod::TracksDCA> tableTracksDCA;
39+
o2::framework::Produces<o2::aod::TracksDCACov> tableTracksDCACov;
40+
o2::framework::Produces<o2::aod::CollisionsAlice3> tableCollisionsAlice3;
41+
o2::framework::Produces<o2::aod::TracksAlice3> tableTracksAlice3;
42+
o2::framework::Produces<o2::aod::TracksExtraA3> tableTracksExtraA3;
43+
44+
o2::framework::Produces<o2::aod::StoredTracksExtra_002> tableStoredTracksExtra;
45+
o2::framework::Produces<o2::aod::TrackSelection> tableTrackSelection;
46+
o2::framework::Produces<o2::aod::TrackSelectionExtension> tableTrackSelectionExtension;
47+
48+
void init(o2::framework::InitContext&)
49+
{
50+
// Initialization if needed
51+
LOG(info) << "Alice3TrackingTranslator init called";
52+
}
53+
54+
void process(o2::aod::BCs const&)
55+
{
56+
LOG(info) << "Alice3TrackingTranslator process called";
57+
}
58+
};
59+
60+
o2::framework::WorkflowSpec defineDataProcessing(o2::framework::ConfigContext const& cfgc)
61+
{
62+
o2::framework::WorkflowSpec w;
63+
w.push_back(adaptAnalysisTask<Alice3TrackingTranslator>(cfgc));
64+
return w;
65+
}

0 commit comments

Comments
 (0)