Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
ce10844
Modify data creator structure
Marcellocosti Sep 15, 2025
9295187
Move to iterators in process functions
Marcellocosti Sep 15, 2025
63964bc
Please consider the following formatting changes
alibuild Sep 15, 2025
db98d19
Merge pull request #38 from alibuild/alibot-cleanup-12989
Marcellocosti Sep 15, 2025
6a918f9
Restore correct data types
Marcellocosti Sep 15, 2025
bd9b294
Update correlator script and table structure
Marcellocosti Sep 16, 2025
ab71ca1
Fix missing preslice for event mixing
Marcellocosti Sep 16, 2025
52ac256
Please consider the following formatting changes
alibuild Sep 16, 2025
7c902df
Merge pull request #40 from alibuild/alibot-cleanup-12989
Marcellocosti Sep 16, 2025
326cd71
Reshape datamodel
Marcellocosti Sep 17, 2025
21fb70a
Please consider the following formatting changes
alibuild Sep 17, 2025
2fa804c
Merge pull request #41 from alibuild/alibot-cleanup-12989
Marcellocosti Sep 17, 2025
550c7ee
Delete comments
Marcellocosti Sep 17, 2025
5539e6e
Avoid pair repetition in Had-Had case and renamings
Marcellocosti Sep 18, 2025
6ead8e9
Please consider the following formatting changes
alibuild Sep 18, 2025
532862f
Merge pull request #42 from alibuild/alibot-cleanup-12989
Marcellocosti Sep 18, 2025
b15caff
Add table for collision properties
Marcellocosti Sep 18, 2025
474634f
Please consider the following formatting changes
alibuild Sep 18, 2025
f44e640
Merge pull request #43 from alibuild/alibot-cleanup-12989
Marcellocosti Sep 18, 2025
5592587
Pt differential DCA cut and Stefano comments
Marcellocosti Sep 24, 2025
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
212 changes: 146 additions & 66 deletions PWGHF/HFC/DataModel/DerivedDataCorrelationTables.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ DECLARE_SOA_TABLE(HfcRedCollisions, "AOD", "HFCREDCOLLISION", //! Table with col
aod::hf_collisions_reduced::NumPvContrib,
aod::hf_collisions_reduced::PosZ);

DECLARE_SOA_TABLE(HfcRedFlowColls, "AOD", "HFCREDFLOWCOLL", //! Table with collision info
DECLARE_SOA_TABLE(HfcRedCorrColls, "AOD", "HFCREDCORRCOLL", //! Table with collision info
soa::Index<>,
aod::hf_collisions_reduced::Multiplicity,
aod::hf_collisions_reduced::NumPvContrib,
Expand All @@ -44,25 +44,18 @@ DECLARE_SOA_TABLE(HfcRedFlowColls, "AOD", "HFCREDFLOWCOLL", //! Table with colli

using HfcRedCollision = HfcRedCollisions::iterator;

// DECLARE_SOA_TABLE(HfCandColCounts, "AOD", "HFCANDCOLCOUNT", //! Table with number of collisions which contain at least one candidate
// aod::hf_collisions_reduced::OriginalCollisionCount);

namespace hf_candidate_reduced
{
DECLARE_SOA_INDEX_COLUMN(HfcRedCollision, hfcRedCollision); //! ReducedCollision index
DECLARE_SOA_INDEX_COLUMN(HfcRedFlowColl, hfcRedFlowColl); //! ReducedCollision index
DECLARE_SOA_COLUMN(Prong0Id, prong0Id, int); //! Prong 0 index
DECLARE_SOA_COLUMN(Prong1Id, prong1Id, int); //! Prong 1 index
DECLARE_SOA_COLUMN(Prong2Id, prong2Id, int); //! Prong2 index
DECLARE_SOA_COLUMN(PhiCand, phiCand, float); //! Phi of the candidate
DECLARE_SOA_COLUMN(EtaCand, etaCand, float); //! Eta of the candidate
DECLARE_SOA_COLUMN(PtCand, ptCand, float); //! Pt of the candidate
DECLARE_SOA_COLUMN(InvMassDs, invMassDs, float); //! Invariant mass of Ds candidate
DECLARE_SOA_COLUMN(InvMassCand, invMassCand, float); //! Invariant mass of Charm candidate
DECLARE_SOA_COLUMN(BdtScorePrompt, bdtScorePrompt, float); //! BDT output score for prompt hypothesis
DECLARE_SOA_COLUMN(BdtScoreBkg, bdtScoreBkg, float); //! BDT output score for background hypothesis
DECLARE_SOA_COLUMN(BdtScore0, bdtScore0, float); //! First BDT output score
DECLARE_SOA_COLUMN(BdtScore1, bdtScore1, float); //! Second BDT output score
} // namespace hf_candidate_reduced
DECLARE_SOA_TABLE(DsCandReduceds, "AOD", "DSCANDREDUCED", //! Table with Ds candidate info
soa::Index<>,
Expand All @@ -81,23 +74,6 @@ DECLARE_SOA_TABLE(DsCandSelInfos, "AOD", "DSCANDSELINFO", //! Table with Ds cand
aod::hf_candidate_reduced::BdtScorePrompt,
aod::hf_candidate_reduced::BdtScoreBkg);

DECLARE_SOA_TABLE(HfcRedCharmTrigs, "AOD", "HFCREDCHARMTRIG", //! Table with charm hadron candidate info
soa::Index<>,
aod::hf_candidate_reduced::HfcRedFlowCollId,
aod::hf_candidate_reduced::PhiCand,
aod::hf_candidate_reduced::EtaCand,
aod::hf_candidate_reduced::PtCand,
aod::hf_candidate_reduced::InvMassCand,
aod::hf_candidate_reduced::Prong0Id,
aod::hf_candidate_reduced::Prong1Id,
aod::hf_candidate_reduced::Prong2Id);

DECLARE_SOA_TABLE(HfcRedCharmMls, "AOD", "HFCREDCHARMML", //! Table with charm hadron candidate selection info
soa::Index<>,
aod::hf_candidate_reduced::HfcRedFlowCollId,
aod::hf_candidate_reduced::BdtScore0,
aod::hf_candidate_reduced::BdtScore1);

namespace hf_assoc_track_reduced
{
DECLARE_SOA_COLUMN(OriginTrackId, originTrackId, int); //! Original track index
Expand Down Expand Up @@ -125,50 +101,154 @@ DECLARE_SOA_TABLE(AssocTrackSels, "AOD", "ASSOCTRACKSEL", //! Table with associa
aod::hf_assoc_track_reduced::ItsClusterMap,
aod::hf_assoc_track_reduced::ItsNCls,
aod::hf_assoc_track_reduced::DcaXY,
aod::hf_assoc_track_reduced::DcaZ)

DECLARE_SOA_TABLE(HfcRedTrkAssocs, "AOD", "HFCREDTRKASSOC", //! Table with associated track info
soa::Index<>,
aod::hf_candidate_reduced::HfcRedFlowCollId,
aod::hf_assoc_track_reduced::OriginTrackId,
aod::hf_assoc_track_reduced::PhiAssocTrack,
aod::hf_assoc_track_reduced::EtaAssocTrack,
aod::hf_assoc_track_reduced::PtAssocTrack);

DECLARE_SOA_TABLE(HfcRedTrkSels, "AOD", "HFCREDTRKSEL", //! Table with associated track info
soa::Index<>,
aod::hf_candidate_reduced::HfcRedFlowCollId,
aod::hf_assoc_track_reduced::NTpcCrossedRows,
aod::hf_assoc_track_reduced::ItsClusterMap,
aod::hf_assoc_track_reduced::ItsNCls,
aod::hf_assoc_track_reduced::DcaXY,
aod::hf_assoc_track_reduced::DcaZ)
aod::hf_assoc_track_reduced::DcaZ);

// definition of columns and tables for Charm-Hadron and Hadron-Hadron correlation pairs
namespace hf_correlation_charm_hadron_reduced
namespace hf_correl_charm_had_reduced
{
DECLARE_SOA_INDEX_COLUMN_FULL(CharmTrig, charmTrig, int, HfcRedCharmTrigs, "_0"); //! Reduced charm trigger candidate index
DECLARE_SOA_INDEX_COLUMN_FULL(HadTrig, hadTrig, int, HfcRedTrkAssocs, "_1"); //! Reduced hadron trigger candidate index
DECLARE_SOA_INDEX_COLUMN_FULL(TrkAssoc, trkAssoc, int, HfcRedTrkAssocs, "_2"); //! Reduced associated track index
DECLARE_SOA_COLUMN(DeltaPhi, deltaPhi, float); //! DeltaPhi between charm hadron and Hadrons
DECLARE_SOA_COLUMN(DeltaEta, deltaEta, float); //! DeltaEta between charm hadron and Hadrons
DECLARE_SOA_COLUMN(PoolBin, poolBin, int); //! Pool Bin for the MixedEvent
} // namespace hf_correlation_charm_hadron_reduced

DECLARE_SOA_TABLE(HfcRedChHads, "AOD", "HFCREDCHHAD", //! Charm-Hadron pairs information
aod::hf_correlation_charm_hadron_reduced::CharmTrigId,
aod::hf_correlation_charm_hadron_reduced::TrkAssocId,
aod::hf_correlation_charm_hadron_reduced::DeltaEta,
aod::hf_correlation_charm_hadron_reduced::DeltaPhi,
aod::hf_correlation_charm_hadron_reduced::PoolBin);

DECLARE_SOA_TABLE(HfcRedHadHads, "AOD", "HFCREDHADHAD", //! Hadron-Hadron pairs information
aod::hf_correlation_charm_hadron_reduced::HadTrigId,
aod::hf_correlation_charm_hadron_reduced::TrkAssocId,
aod::hf_correlation_charm_hadron_reduced::DeltaEta,
aod::hf_correlation_charm_hadron_reduced::DeltaPhi,
aod::hf_correlation_charm_hadron_reduced::PoolBin);

// Correlation columns
DECLARE_SOA_INDEX_COLUMN(HfcRedCorrColl, hfcRedCorrColl); //! ReducedCollision index
DECLARE_SOA_COLUMN(DeltaPhi, deltaPhi, float); //! DeltaPhi between charm hadron and Hadrons
DECLARE_SOA_COLUMN(DeltaEta, deltaEta, float); //! DeltaEta between charm hadron and Hadrons
DECLARE_SOA_COLUMN(PoolBin, poolBin, int); //! Pool Bin for the MixedEvent
// General trigger particle columns
DECLARE_SOA_COLUMN(PhiTrig, phiTrig, float); //! Phi of the trigger candidate
DECLARE_SOA_COLUMN(EtaTrig, etaTrig, float); //! Eta of the trigger candidate
DECLARE_SOA_COLUMN(PtTrig, ptTrig, float); //! Pt of the trigger candidate
// Charm trigger particle selection columns
DECLARE_SOA_COLUMN(InvMassTrig, invMassTrig, float); //! Invariant mass of Charm trigger candidate
DECLARE_SOA_COLUMN(BdtScore0Trig, bdtScore0Trig, float); //! First BDT output score
DECLARE_SOA_COLUMN(BdtScore1Trig, bdtScore1Trig, float); //! Second BDT output score
// Hadron trigger particle selection columns
DECLARE_SOA_COLUMN(NTpcCrossedRowsTrig, nTpcCrossedRowsTrig, int); //! Number of crossed TPC Rows
DECLARE_SOA_COLUMN(ItsClsMapTrig, itsClsMapTrig, int); //! ITS cluster map, one bit per a layer, starting from the innermost
DECLARE_SOA_COLUMN(ItsNClsTrig, itsNClsTrig, int); //! Number of ITS clusters
DECLARE_SOA_COLUMN(DcaXYTrig, dcaXYTrig, float); //! Impact parameter in XY of the track to the primary vertex
DECLARE_SOA_COLUMN(DcaZTrig, dcaZTrig, float); //! Impact parameter in Z of the track to the primary vertex
// General associated particle columns
DECLARE_SOA_COLUMN(EtaAssoc, etaAssoc, float); //! Eta of the associated candidate
DECLARE_SOA_COLUMN(PhiAssoc, phiAssoc, float); //! Phi of the associated candidate
DECLARE_SOA_COLUMN(PtAssoc, ptAssoc, float); //! Pt of the associated candidate
// Hadron associated particle selection columns
DECLARE_SOA_COLUMN(NTpcCrossedRowsAssoc, nTpcCrossedRowsAssoc, int); //! Number of crossed TPC Rows
DECLARE_SOA_COLUMN(ItsClsMapAssoc, itsClsMapAssoc, int); //! ITS cluster map, one bit per a layer, starting from the innermost
DECLARE_SOA_COLUMN(ItsNClsAssoc, itsNClsAssoc, int); //! Number of ITS clusters
DECLARE_SOA_COLUMN(DcaXYAssoc, dcaXYAssoc, float); //! Impact parameter in XY of the track to the primary vertex
DECLARE_SOA_COLUMN(DcaZAssoc, dcaZAssoc, float); //! Impact parameter in Z of the track to the primary vertex
} // namespace hf_correl_charm_had_reduced

DECLARE_SOA_TABLE(HfcRedTrigBases, "AOD", "HFCREDTRIGBASE", //! Table with trigger candidate base info
soa::Index<>,
aod::hf_correl_charm_had_reduced::HfcRedCorrCollId,
aod::hf_correl_charm_had_reduced::PhiTrig,
aod::hf_correl_charm_had_reduced::EtaTrig,
aod::hf_correl_charm_had_reduced::PtTrig);

DECLARE_SOA_TABLE(HfcRedTrigCharms, "AOD", "HFCREDTRIGCHARM", //! Table with Same Event Charm-Hadron pairs information
aod::hf_correl_charm_had_reduced::InvMassTrig,
aod::hf_correl_charm_had_reduced::BdtScore0Trig,
aod::hf_correl_charm_had_reduced::BdtScore1Trig);

DECLARE_SOA_TABLE(HfcRedTrigTracks, "AOD", "HFCREDTRIGTRACK", //! Table with Same Event Charm-Hadron pairs information
aod::hf_correl_charm_had_reduced::NTpcCrossedRowsTrig,
aod::hf_correl_charm_had_reduced::ItsClsMapTrig,
aod::hf_correl_charm_had_reduced::ItsNClsTrig,
aod::hf_correl_charm_had_reduced::DcaXYTrig,
aod::hf_correl_charm_had_reduced::DcaZTrig);

DECLARE_SOA_TABLE(HfcRedAssBases, "AOD", "HFCREDASSBASE", //! Table with associated candidate base info
soa::Index<>,
aod::hf_correl_charm_had_reduced::HfcRedCorrCollId,
aod::hf_correl_charm_had_reduced::PhiAssoc,
aod::hf_correl_charm_had_reduced::EtaAssoc,
aod::hf_correl_charm_had_reduced::PtAssoc);

DECLARE_SOA_TABLE(HfcRedAssTracks, "AOD", "HFCREDASSTRACK", //! Table with Same Event Track Selections information
aod::hf_correl_charm_had_reduced::NTpcCrossedRowsAssoc,
aod::hf_correl_charm_had_reduced::ItsClsMapAssoc,
aod::hf_correl_charm_had_reduced::ItsNClsAssoc,
aod::hf_correl_charm_had_reduced::DcaXYAssoc,
aod::hf_correl_charm_had_reduced::DcaZAssoc);

DECLARE_SOA_TABLE(HfcRedSEBases, "AOD", "HFCREDSEBASE", //! Table with Same Event Trig-Assoc pairs
aod::hf_correl_charm_had_reduced::HfcRedCorrCollId,
aod::hf_correl_charm_had_reduced::PtTrig,
aod::hf_correl_charm_had_reduced::PtAssoc,
aod::hf_correl_charm_had_reduced::DeltaEta,
aod::hf_correl_charm_had_reduced::DeltaPhi);

DECLARE_SOA_TABLE(HfcRedSEChHads, "AOD", "HFCREDSECHHAD", //! Correlation pairs information Same Event
aod::hf_correl_charm_had_reduced::PoolBin,
aod::hf_correl_charm_had_reduced::PtTrig,
aod::hf_correl_charm_had_reduced::PtAssoc,
aod::hf_correl_charm_had_reduced::DeltaEta,
aod::hf_correl_charm_had_reduced::DeltaPhi,
aod::hf_correl_charm_had_reduced::InvMassTrig,
aod::hf_correl_charm_had_reduced::BdtScore0Trig,
aod::hf_correl_charm_had_reduced::BdtScore1Trig,
aod::hf_correl_charm_had_reduced::NTpcCrossedRowsAssoc,
aod::hf_correl_charm_had_reduced::ItsClsMapAssoc,
aod::hf_correl_charm_had_reduced::ItsNClsAssoc,
aod::hf_correl_charm_had_reduced::DcaXYAssoc,
aod::hf_correl_charm_had_reduced::DcaZAssoc,
soa::Marker<1>);

DECLARE_SOA_TABLE(HfcRedMEChHads, "AOD", "HFCREDMECHHAD", //! Correlation pairs information Same Event
aod::hf_correl_charm_had_reduced::PoolBin,
aod::hf_correl_charm_had_reduced::PtTrig,
aod::hf_correl_charm_had_reduced::PtAssoc,
aod::hf_correl_charm_had_reduced::DeltaEta,
aod::hf_correl_charm_had_reduced::DeltaPhi,
aod::hf_correl_charm_had_reduced::InvMassTrig,
aod::hf_correl_charm_had_reduced::BdtScore0Trig,
aod::hf_correl_charm_had_reduced::BdtScore1Trig,
aod::hf_correl_charm_had_reduced::NTpcCrossedRowsAssoc,
aod::hf_correl_charm_had_reduced::ItsClsMapAssoc,
aod::hf_correl_charm_had_reduced::ItsNClsAssoc,
aod::hf_correl_charm_had_reduced::DcaXYAssoc,
aod::hf_correl_charm_had_reduced::DcaZAssoc,
soa::Marker<2>);

DECLARE_SOA_TABLE(HfcRedSEHadHads, "AOD", "HFCREDSEHADHAD", //! Correlation pairs information Same Event
aod::hf_correl_charm_had_reduced::PoolBin,
aod::hf_correl_charm_had_reduced::PtTrig,
aod::hf_correl_charm_had_reduced::PtAssoc,
aod::hf_correl_charm_had_reduced::DeltaEta,
aod::hf_correl_charm_had_reduced::DeltaPhi,
aod::hf_correl_charm_had_reduced::NTpcCrossedRowsTrig,
aod::hf_correl_charm_had_reduced::ItsClsMapTrig,
aod::hf_correl_charm_had_reduced::ItsNClsTrig,
aod::hf_correl_charm_had_reduced::DcaXYTrig,
aod::hf_correl_charm_had_reduced::DcaZTrig,
aod::hf_correl_charm_had_reduced::NTpcCrossedRowsAssoc,
aod::hf_correl_charm_had_reduced::ItsClsMapAssoc,
aod::hf_correl_charm_had_reduced::ItsNClsAssoc,
aod::hf_correl_charm_had_reduced::DcaXYAssoc,
aod::hf_correl_charm_had_reduced::DcaZAssoc,
soa::Marker<1>);

DECLARE_SOA_TABLE(HfcRedMEHadHads, "AOD", "HFCREDMEHADHAD", //! Correlation pairs information Same Event
aod::hf_correl_charm_had_reduced::PoolBin,
aod::hf_correl_charm_had_reduced::PtTrig,
aod::hf_correl_charm_had_reduced::PtAssoc,
aod::hf_correl_charm_had_reduced::DeltaEta,
aod::hf_correl_charm_had_reduced::DeltaPhi,
aod::hf_correl_charm_had_reduced::NTpcCrossedRowsTrig,
aod::hf_correl_charm_had_reduced::ItsClsMapTrig,
aod::hf_correl_charm_had_reduced::ItsNClsTrig,
aod::hf_correl_charm_had_reduced::DcaXYTrig,
aod::hf_correl_charm_had_reduced::DcaZTrig,
aod::hf_correl_charm_had_reduced::NTpcCrossedRowsAssoc,
aod::hf_correl_charm_had_reduced::ItsClsMapAssoc,
aod::hf_correl_charm_had_reduced::ItsNClsAssoc,
aod::hf_correl_charm_had_reduced::DcaXYAssoc,
aod::hf_correl_charm_had_reduced::DcaZAssoc,
soa::Marker<2>);

DECLARE_SOA_TABLE(HfcRedCollInfos, "AOD", "HFCREDCOLLINFO", //! Table with collision info
aod::hf_collisions_reduced::Multiplicity,
aod::hf_collisions_reduced::NumPvContrib,
aod::hf_collisions_reduced::Centrality);
} // namespace o2::aod

#endif // PWGHF_HFC_DATAMODEL_DERIVEDDATACORRELATIONTABLES_H_
Loading
Loading