Skip to content

Commit

Permalink
adding back the mcCollision centrality table
Browse files Browse the repository at this point in the history
  • Loading branch information
nzardosh committed Dec 2, 2024
1 parent 649bbfa commit 7291bba
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions PWGHF/DataModel/DerivedTables.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ DECLARE_SOA_INDEX_COLUMN(McCollision, mcCollision); //! original global index of
mccollision::PosX, \
mccollision::PosY, \
mccollision::PosZ, \
cent::CentFT0M, \
o2::soa::Marker<Marker##_hf_type_>); \
\
using Hf##_hf_type_##McCollBase = Hf##_hf_type_##McCollBases::iterator; \
Expand Down
7 changes: 5 additions & 2 deletions PWGHF/TableProducer/derivedDataCreatorBplusToD0Pi.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include "Common/DataModel/Centrality.h"
#include "Common/DataModel/Multiplicity.h"

#include "PWGLF/DataModel/mcCentrality.h"

#include "PWGHF/Core/HfHelper.h"
#include "PWGHF/DataModel/CandidateReconstructionTables.h"
#include "PWGHF/DataModel/CandidateSelectionTables.h"
Expand Down Expand Up @@ -95,7 +97,7 @@ struct HfDerivedDataCreatorBplusToD0Pi {
using SelectedCandidatesMl = soa::Filtered<soa::Join<aod::HfCandBplus, aod::HfSelBplusToD0Pi, aod::HfMlBplusToD0Pi>>;
using SelectedCandidatesMcMl = soa::Filtered<soa::Join<aod::HfCandBplus, aod::HfCandBplusMcRec, aod::HfSelBplusToD0Pi, aod::HfMlBplusToD0Pi>>;
using MatchedGenCandidatesMc = soa::Filtered<soa::Join<aod::McParticles, aod::HfCandBplusMcGen>>;
using TypeMcCollisions = aod::McCollisions;
using TypeMcCollisions = soa::Join<aod::McCollisions, aod::McCentFT0Ms>;
using THfCandDaughters = aod::HfCand2ProngWPid;
using THfCandDaughtersMl = soa::Join<THfCandDaughters, aod::HfMlD0>;

Expand Down Expand Up @@ -165,7 +167,8 @@ struct HfDerivedDataCreatorBplusToD0Pi {
rowMcCollBase(
mcCollision.posX(),
mcCollision.posY(),
mcCollision.posZ());
mcCollision.posZ(),
mcCollision.centFT0M());
}
if (fillMcCollId) {
rowMcCollId(
Expand Down
7 changes: 5 additions & 2 deletions PWGHF/TableProducer/derivedDataCreatorD0ToKPi.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include "Common/DataModel/Centrality.h"
#include "Common/DataModel/Multiplicity.h"

#include "PWGLF/DataModel/mcCentrality.h"

#include "PWGHF/Core/HfHelper.h"
#include "PWGHF/DataModel/CandidateReconstructionTables.h"
#include "PWGHF/DataModel/CandidateSelectionTables.h"
Expand Down Expand Up @@ -97,7 +99,7 @@ struct HfDerivedDataCreatorD0ToKPi {
using SelectedCandidatesMcMl = soa::Filtered<soa::Join<aod::HfCand2ProngWPid, aod::HfCand2ProngMcRec, aod::HfSelD0, aod::HfMlD0>>;
using SelectedCandidatesMcKfMl = soa::Filtered<soa::Join<aod::HfCand2ProngWPid, aod::HfCand2ProngKF, aod::HfCand2ProngMcRec, aod::HfSelD0, aod::HfMlD0>>;
using MatchedGenCandidatesMc = soa::Filtered<soa::Join<aod::McParticles, aod::HfCand2ProngMcGen>>;
using TypeMcCollisions = aod::McCollisions;
using TypeMcCollisions = soa::Join<aod::McCollisions, aod::McCentFT0Ms>;

Filter filterSelectCandidates = aod::hf_sel_candidate_d0::isSelD0 >= 1 || aod::hf_sel_candidate_d0::isSelD0bar >= 1;
Filter filterMcGenMatching = nabs(aod::hf_cand_2prong::flagMcMatchGen) == static_cast<int8_t>(BIT(aod::hf_cand_2prong::DecayType::D0ToPiK));
Expand Down Expand Up @@ -178,7 +180,8 @@ struct HfDerivedDataCreatorD0ToKPi {
rowMcCollBase(
mcCollision.posX(),
mcCollision.posY(),
mcCollision.posZ());
mcCollision.posZ(),
mcCollision.centFT0M());
}
if (fillMcCollId) {
rowMcCollId(
Expand Down

0 comments on commit 7291bba

Please sign in to comment.