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
117 changes: 117 additions & 0 deletions PWGCF/TwoParticleCorrelations/DataModel/longrangeDerived.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
// 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 longrangeDerived.h
///
/// \brief task derived table definition for long range correlation
/// \author Abhi Modak (abhi.modak@cern.ch)
/// \since October 28, 2025

#ifndef PWGCF_TWOPARTICLECORRELATIONS_DATAMODEL_LONGRANGEDERIVED_H_
#define PWGCF_TWOPARTICLECORRELATIONS_DATAMODEL_LONGRANGEDERIVED_H_

#include "Framework/ASoA.h"
#include "Framework/AnalysisDataModel.h"

namespace o2::aod
{
namespace LRCorrCollTable
{
DECLARE_SOA_COLUMN(Zvtx, zvtx, float);
DECLARE_SOA_COLUMN(Multiplicity, multiplicity, float);
DECLARE_SOA_COLUMN(Centrality, centrality, float);
} // namespace LRCorrCollTable

DECLARE_SOA_TABLE(CollLRTables, "AOD", "COLLLRTABLE",
o2::soa::Index<>,
bc::RunNumber,
LRCorrCollTable::Zvtx,
LRCorrCollTable::Multiplicity,
LRCorrCollTable::Centrality,
timestamp::Timestamp);
using CollLRTable = CollLRTables::iterator;

namespace LRCorrTrkTable
{
DECLARE_SOA_INDEX_COLUMN(CollLRTable, collLRTable);
DECLARE_SOA_COLUMN(Pt, pt, float);
DECLARE_SOA_COLUMN(Eta, eta, float);
DECLARE_SOA_COLUMN(Phi, phi, float);
DECLARE_SOA_COLUMN(ChannelID, channelID, int);
DECLARE_SOA_COLUMN(Amplitude, amplitude, float);
DECLARE_SOA_COLUMN(InvMass, invMass, float);
DECLARE_SOA_COLUMN(IdPos, idPos, int64_t);
DECLARE_SOA_COLUMN(IdNeg, idNeg, int64_t);
DECLARE_SOA_COLUMN(TrackType, trackType, uint8_t);
DECLARE_SOA_COLUMN(V0Type, v0Type, uint8_t);
enum TrackPid {
kSpCharge,
kSpPion,
kSpKaon,
kSpProton
};
enum V0TrackPid {
kSpK0short,
kSpLambda,
kSpALambda
};
} // namespace LRCorrTrkTable

DECLARE_SOA_TABLE(TrkLRTables, "AOD", "TRKLRTABLE",
o2::soa::Index<>,
LRCorrTrkTable::CollLRTableId,
LRCorrTrkTable::Pt,
LRCorrTrkTable::Eta,
LRCorrTrkTable::Phi,
LRCorrTrkTable::TrackType);
using TrkLRTable = TrkLRTables::iterator;

DECLARE_SOA_TABLE(Ft0aLRTables, "AOD", "FT0ALRTABLE",
o2::soa::Index<>,
LRCorrTrkTable::CollLRTableId,
LRCorrTrkTable::ChannelID,
LRCorrTrkTable::Amplitude,
LRCorrTrkTable::Eta,
LRCorrTrkTable::Phi);
using Ft0aLRTable = Ft0aLRTables::iterator;

DECLARE_SOA_TABLE(Ft0cLRTables, "AOD", "FT0CLRTABLE",
o2::soa::Index<>,
LRCorrTrkTable::CollLRTableId,
LRCorrTrkTable::ChannelID,
LRCorrTrkTable::Amplitude,
LRCorrTrkTable::Eta,
LRCorrTrkTable::Phi);
using Ft0cLRTable = Ft0cLRTables::iterator;

DECLARE_SOA_TABLE(V0TrkLRTables, "AOD", "V0TRKLRTABLE",
o2::soa::Index<>,
LRCorrTrkTable::CollLRTableId,
LRCorrTrkTable::IdPos,
LRCorrTrkTable::IdNeg,
LRCorrTrkTable::Pt,
LRCorrTrkTable::Eta,
LRCorrTrkTable::Phi,
LRCorrTrkTable::InvMass,
LRCorrTrkTable::V0Type);
using V0TrkLRTable = V0TrkLRTables::iterator;

DECLARE_SOA_TABLE(MftTrkLRTables, "AOD", "MFTTRKLRTABLE",
o2::soa::Index<>,
LRCorrTrkTable::CollLRTableId,
LRCorrTrkTable::Pt,
LRCorrTrkTable::Eta,
LRCorrTrkTable::Phi);
using MftTrkLRTable = MftTrkLRTables::iterator;

} // namespace o2::aod

#endif // PWGCF_TWOPARTICLECORRELATIONS_DATAMODEL_LONGRANGEDERIVED_H_
5 changes: 5 additions & 0 deletions PWGCF/TwoParticleCorrelations/TableProducer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ o2physics_add_dpl_workflow(two-particle-correlations-filtering
SOURCES twoParticleCorrelationsFiltering.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::TwoPartCorrCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(longrange-maker
SOURCES longrangeMaker.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::TwoPartCorrCore
COMPONENT_NAME Analysis)
Loading
Loading