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
44 changes: 22 additions & 22 deletions PWGHF/HFC/DataModel/DerivedDataCorrelationTables.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,37 +33,37 @@ DECLARE_SOA_TABLE(HfRedCollisions, "AOD", "COLLREDUCED", //! Table with collisio

using HfRedCollision = HfRedCollisions::iterator;

//DECLARE_SOA_TABLE(HfCandColCounts, "AOD", "HFCANDCOLCOUNT", //! Table with number of collisions which contain at least one candidate
// aod::hf_collisions_reduced::OriginalCollisionCount);
// 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(HfRedCollision, hfRedCollision); //! ReducedCollision index
DECLARE_SOA_COLUMN(Prong0Id, prong0Id, int); //! Original track index
DECLARE_SOA_COLUMN(Prong1Id, prong1Id, int); //! Original track index
DECLARE_SOA_COLUMN(Prong2Id, prong2Id, int); //! Original track 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(CosPa, cosPa, float); //! Cosine of the pointing angle
DECLARE_SOA_COLUMN(CosPaXY, cosPaXY, float); //! Cosine of the pointing angle XY
DECLARE_SOA_COLUMN(DecayLength, decayLength, float); //! Decay length
DECLARE_SOA_COLUMN(NormDecayLengthXY, normDecayLengthXY, float); //! Normalised decay length XY
DECLARE_SOA_COLUMN(ImpactParameterXY, impactParameterXY, float); //! Impact parameter XY
DECLARE_SOA_COLUMN(DeltaMassPhiDsToKKPi, deltaMassPhiDsToKKPi, float); //! Delta mass Phi for the Ds -> KKPi hypothesis
DECLARE_SOA_COLUMN(DeltaMassPhiDsToPiKK, deltaMassPhiDsToPiKK, float); //! Delta mass Phi for the Ds -> PiKK hypothesis
DECLARE_SOA_COLUMN(Cos3PiKDsToKKPi, cos3PiKDsToKKPi, float); //! Cos3 between the pion and the kaon for the Ds -> KKPi hypothesis
DECLARE_SOA_COLUMN(Cos3PiKDsToPiKK, cos3PiKDsToPiKK, float); //! Cos3 between the pion and the kaon for the Ds -> PiKK hypothesis
DECLARE_SOA_COLUMN(SelFlagDsToKKPi, selFlagDsToKKPi, int); //! Selection flag Ds -> KKPi
DECLARE_SOA_COLUMN(SelFlagDsToPiKK, selFlagDsToPiKK, int); //! Selection flag Ds -> PiKK
DECLARE_SOA_INDEX_COLUMN(HfRedCollision, hfRedCollision); //! ReducedCollision index
DECLARE_SOA_COLUMN(Prong0Id, prong0Id, int); //! Original track index
DECLARE_SOA_COLUMN(Prong1Id, prong1Id, int); //! Original track index
DECLARE_SOA_COLUMN(Prong2Id, prong2Id, int); //! Original track 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(CosPa, cosPa, float); //! Cosine of the pointing angle
DECLARE_SOA_COLUMN(CosPaXY, cosPaXY, float); //! Cosine of the pointing angle XY
DECLARE_SOA_COLUMN(DecayLength, decayLength, float); //! Decay length
DECLARE_SOA_COLUMN(NormDecayLengthXY, normDecayLengthXY, float); //! Normalised decay length XY
DECLARE_SOA_COLUMN(ImpactParameterXY, impactParameterXY, float); //! Impact parameter XY
DECLARE_SOA_COLUMN(DeltaMassPhiDsToKKPi, deltaMassPhiDsToKKPi, float); //! Delta mass Phi for the Ds -> KKPi hypothesis
DECLARE_SOA_COLUMN(DeltaMassPhiDsToPiKK, deltaMassPhiDsToPiKK, float); //! Delta mass Phi for the Ds -> PiKK hypothesis
DECLARE_SOA_COLUMN(Cos3PiKDsToKKPi, cos3PiKDsToKKPi, float); //! Cos3 between the pion and the kaon for the Ds -> KKPi hypothesis
DECLARE_SOA_COLUMN(Cos3PiKDsToPiKK, cos3PiKDsToPiKK, float); //! Cos3 between the pion and the kaon for the Ds -> PiKK hypothesis
DECLARE_SOA_COLUMN(SelFlagDsToKKPi, selFlagDsToKKPi, int); //! Selection flag Ds -> KKPi
DECLARE_SOA_COLUMN(SelFlagDsToPiKK, selFlagDsToPiKK, int); //! Selection flag Ds -> PiKK
DECLARE_SOA_COLUMN(BdtScoreClass0DsToKKPi, bdtScoreClass0DsToKKPi, float); //! Bdt score for the Ds -> KKPi hypothesis
DECLARE_SOA_COLUMN(BdtScoreClass1DsToKKPi, bdtScoreClass1DsToKKPi, float); //! Bdt score for the Ds -> KKPi hypothesis
DECLARE_SOA_COLUMN(BdtScoreClass2DsToKKPi, bdtScoreClass2DsToKKPi, float); //! Bdt score for the Ds -> KKPi hypothesis
DECLARE_SOA_COLUMN(BdtScoreClass0DsToPiKK, bdtScoreClass0DsToPiKK, float); //! Bdt score for the Ds -> PiKK hypothesis
DECLARE_SOA_COLUMN(BdtScoreClass1DsToPiKK, bdtScoreClass1DsToPiKK, float); //! Bdt score for the Ds -> PiKK hypothesis
DECLARE_SOA_COLUMN(BdtScoreClass2DsToPiKK, bdtScoreClass2DsToPiKK, float); //! Bdt score for the Ds -> PiKK hypothesis
DECLARE_SOA_COLUMN(InvMassDsToKKPi, invMassDsToKKPi, float); //! Invariant mass of candidate for the Ds -> KKPi hypothesis
DECLARE_SOA_COLUMN(InvMassDsToPiKK, invMassDsToPiKK, float); //! Invariant mass of candidate for the Ds -> PiKK hypothesis
DECLARE_SOA_COLUMN(InvMassDsToKKPi, invMassDsToKKPi, float); //! Invariant mass of candidate for the Ds -> KKPi hypothesis
DECLARE_SOA_COLUMN(InvMassDsToPiKK, invMassDsToPiKK, float); //! Invariant mass of candidate for the Ds -> PiKK hypothesis
} // namespace hf_candidate_reduced
DECLARE_SOA_TABLE(DsCandReduced, "AOD", "DSCANDREDUCED", //! Table with Ds candidate info (rectangular selection)
soa::Index<>,
Expand Down
8 changes: 4 additions & 4 deletions PWGHF/HFC/TableProducer/correlatorDsHadrons.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -683,19 +683,19 @@ struct HfCorrelatorDsHadrons {
} // end loop generated collision
}
PROCESS_SWITCH(HfCorrelatorDsHadrons, processMcGen, "Process MC Gen mode", false);

void processDerivedDataDs(SelCollisionsWithDs::iterator const& collision,
CandDsData const& candidates,
MyTracksData const& tracks)
{
collReduced(collision.multFV0M(), collision.posZ());

// Ds fill histograms and Ds candidates information stored
for (const auto& candidate : candidates) {
for (const auto& candidate : candidates) {
// candidate selected
candReduced(collReduced.lastIndex(), candidate.phi(), candidate.eta(), candidate.pt());
}

// tracks information
for (const auto& track : tracks) {
if (!track.isGlobalTrackWoDCA()) {
Expand Down