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
59 changes: 59 additions & 0 deletions ALICE3/DataModel/A3DecayFinderTables.h
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 failure on line 1 in ALICE3/DataModel/A3DecayFinderTables.h

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.
//
Expand All @@ -13,15 +13,16 @@
/// \file A3DecayFinderTables.h
/// \since 04/07/2023
/// \brief Set of tables for ALICE 3 decay finder
///

Check failure on line 16 in ALICE3/DataModel/A3DecayFinderTables.h

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \author is missing, incorrect or misplaced.

#ifndef ALICE3_DATAMODEL_A3DECAYFINDERTABLES_H_
#define ALICE3_DATAMODEL_A3DECAYFINDERTABLES_H_

// O2 includes
#include "Framework/AnalysisDataModel.h"
#include "Common/Core/RecoDecay.h"

enum a3selectionBit : uint32_t { kDCAxy = 0,

Check failure on line 25 in ALICE3/DataModel/A3DecayFinderTables.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/enum]

Use UpperCamelCase for names of enumerators and their values.
kInnerTOFPion,
kInnerTOFKaon,
kInnerTOFProton,
Expand Down Expand Up @@ -50,7 +51,7 @@

namespace o2::aod
{
namespace a3DecayMap

Check failure on line 54 in ALICE3/DataModel/A3DecayFinderTables.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/namespace]

Use snake_case for names of namespaces. Double underscores are not allowed.
{
DECLARE_SOA_COLUMN(DecayMap, decayMap, uint32_t); //! simple map to process passing / not passing criteria
} // namespace a3DecayMap
Expand All @@ -59,6 +60,64 @@

using Alice3DecayMap = Alice3DecayMaps::iterator;

namespace a3D0meson

Check failure on line 63 in ALICE3/DataModel/A3DecayFinderTables.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/namespace]

Use snake_case for names of namespaces. Double underscores are not allowed.
{
DECLARE_SOA_INDEX_COLUMN(Collision, collision); //!
DECLARE_SOA_COLUMN(PxProng0, pxProng0, float); //! positive track
DECLARE_SOA_COLUMN(PyProng0, pyProng0, float); //!
DECLARE_SOA_COLUMN(PzProng0, pzProng0, float); //!
DECLARE_SOA_COLUMN(PxProng1, pxProng1, float); //! negative track
DECLARE_SOA_COLUMN(PyProng1, pyProng1, float); //!
DECLARE_SOA_COLUMN(PzProng1, pzProng1, float); //!
DECLARE_SOA_DYNAMIC_COLUMN(PtProng0, ptProng0, //!
[](float px, float py) -> float { return RecoDecay::pt(px, py); });
DECLARE_SOA_DYNAMIC_COLUMN(PtProng1, ptProng1, //!
[](float px, float py) -> float { return RecoDecay::pt(px, py); });
DECLARE_SOA_EXPRESSION_COLUMN(Px, px, //!
float, 1.f * aod::a3D0meson::pxProng0 + 1.f * aod::a3D0meson::pxProng1);
DECLARE_SOA_EXPRESSION_COLUMN(Py, py, //!
float, 1.f * aod::a3D0meson::pyProng0 + 1.f * aod::a3D0meson::pyProng1);
DECLARE_SOA_EXPRESSION_COLUMN(Pz, pz, //!
float, 1.f * aod::a3D0meson::pzProng0 + 1.f * aod::a3D0meson::pzProng1);
DECLARE_SOA_COLUMN(Pt, pt, float); //!
DECLARE_SOA_COLUMN(M, m, float); //!
DECLARE_SOA_DYNAMIC_COLUMN(E, e, //!
[](float px, float py, float pz, double m) -> float { return RecoDecay::e(px, py, pz, m); });
DECLARE_SOA_COLUMN(Eta, eta, float); //!
DECLARE_SOA_COLUMN(Phi, phi, float); //!
DECLARE_SOA_COLUMN(Y, y, float);
} // namespace a3D0meson
DECLARE_SOA_TABLE(Alice3D0Meson, "AOD", "ALICE3D0MESON", //!
o2::soa::Index<>,
a3D0meson::CollisionId,
a3D0meson::PxProng0, a3D0meson::PyProng0, a3D0meson::PzProng0, // positive track
a3D0meson::PxProng1, a3D0meson::PyProng1, a3D0meson::PzProng1, // negative track
a3D0meson::PtProng0<a3D0meson::PxProng0, a3D0meson::PyProng0>,
a3D0meson::PtProng1<a3D0meson::PxProng1, a3D0meson::PyProng1>,
a3D0meson::Px, a3D0meson::Py, a3D0meson::Pz,
a3D0meson::Pt,
a3D0meson::M,
a3D0meson::E<a3D0meson::Px, a3D0meson::Py, a3D0meson::Pz, a3D0meson::M>,
a3D0meson::Eta,
a3D0meson::Phi,
a3D0meson::Y);

namespace a3D0Selection

Check failure on line 105 in ALICE3/DataModel/A3DecayFinderTables.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/namespace]

Use snake_case for names of namespaces. Double underscores are not allowed.
{
DECLARE_SOA_COLUMN(IsSelD0, isSelD0, int); //!
DECLARE_SOA_COLUMN(IsSelD0bar, isSelD0bar, int); //!
} // namespace a3D0Selection
DECLARE_SOA_TABLE(Alice3D0Sel, "AOD", "ALICE3D0SEL", //!
a3D0Selection::IsSelD0,
a3D0Selection::IsSelD0bar);

namespace a3D0MCTruth

Check failure on line 114 in ALICE3/DataModel/A3DecayFinderTables.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/namespace]

Use snake_case for names of namespaces. Double underscores are not allowed.
{
DECLARE_SOA_COLUMN(McTruthInfo, mcTruthInfo, int); //! 0 for bkg, 1 for true D0, 2 for true D0bar
} // namespace a3D0MCTruth
DECLARE_SOA_TABLE(Alice3D0MCTruth, "AOD", "ALICE3D0MCTRUTH", //!
a3D0MCTruth::McTruthInfo); //!

} // namespace o2::aod

#endif // ALICE3_DATAMODEL_A3DECAYFINDERTABLES_H_
5 changes: 5 additions & 0 deletions ALICE3/TableProducer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@

add_subdirectory(OTF)

o2physics_add_dpl_workflow(alice3-trackselection

Check failure on line 14 in ALICE3/TableProducer/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-workflow]

Workflow name alice3-trackselection does not match its file name alice3-trackselection.cxx. (Matches alice3Trackselection.cxx.)
SOURCES alice3-trackselection.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(alice3-trackextension

Check failure on line 19 in ALICE3/TableProducer/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-workflow]

Workflow name alice3-trackextension does not match its file name alice3-trackextension.cxx. (Matches alice3Trackextension.cxx.)
SOURCES alice3-trackextension.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2::ReconstructionDataFormats
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(alice3-pid-tof

Check failure on line 24 in ALICE3/TableProducer/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-workflow]

Workflow name alice3-pid-tof does not match its file name alice3-pidTOF.cxx. (Matches alice3PidTof.cxx.)
SOURCES alice3-pidTOF.cxx
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::ALICE3Core
COMPONENT_NAME Analysis)
Expand All @@ -45,3 +45,8 @@
SOURCES alice3-multicharm.cxx
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DCAFitter
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(alice3-correlatorddbar
SOURCES alice3-correlatorDDbar.cxx
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DCAFitter
COMPONENT_NAME Analysis)
Loading
Loading