Skip to content

Commit

Permalink
Merge branch 'master' into strangenessPbPb-update
Browse files Browse the repository at this point in the history
  • Loading branch information
nepeivodaRS authored Oct 3, 2024
2 parents f892568 + 529a0f4 commit b253b80
Show file tree
Hide file tree
Showing 26 changed files with 1,763 additions and 256 deletions.
4 changes: 2 additions & 2 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
/PWGEM/Dilepton @alibuild @mikesas @rbailhac @dsekihat @ivorobye @feisenhu
/PWGEM/PhotonMeson @alibuild @mikesas @rbailhac @m-c-danisch @novitzky @mhemmer-cern @dsekihat
/PWGHF @alibuild @vkucera @fcolamar @fgrosa @fcatalan92 @mfaggin @mmazzilli @deepathoms @NicoleBastid @hahassan7 @jpxrk @apalasciano
/PWGLF @alibuild @ercolessi @fmazzasc @chiarapinto @BongHwi @smaff92 @mbombara @ChiaraDeMartin95 @njacazio @skundu692
/PWGMM @alibuild @aalkin
/PWGLF @alibuild @ercolessi @fmazzasc @chiarapinto @maciacco @BongHwi @smaff92 @ChiaraDeMartin95 @njacazio @skundu692
/PWGMM @alibuild @aalkin @njacazio @skundu692
/PWGMM/Lumi @alibuild @aalkin
/PWGMM/Mult @alibuild @aalkin @aortizve @ddobrigk
/PWGMM/UE @alibuild @aalkin @aortizve
Expand Down
1 change: 1 addition & 0 deletions DPG/Tasks/AOTTrack/PID/TPC/qaPIDTPCMC.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ struct pidTpcQaMc {
histos.add(hnsigmaMCmat[mcID * Np + massID].data(), Form("True Secondary %s from material", pT[mcID]), HistType::kTH2F, {ptAxis, nSigmaAxis});

if constexpr (mcID == massID) {
histos.add(hsignalMC[mcID].data(), Form("%s", pT[mcID]), HistType::kTH2F, {pAxis, signalAxis});
histos.add(hsignalMCprm[mcID].data(), Form("Primary %s", pT[mcID]), HistType::kTH2F, {pAxis, signalAxis});
histos.add(hsignalMCstr[mcID].data(), Form("Secondary %s from decay", pT[mcID]), HistType::kTH2F, {pAxis, signalAxis});
histos.add(hsignalMCmat[mcID].data(), Form("Secondary %s from material", pT[mcID]), HistType::kTH2F, {pAxis, signalAxis});
Expand Down
84 changes: 50 additions & 34 deletions PWGCF/Flow/Tasks/FlowGFWPbPb.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ using namespace o2::aod::evsel;

#define O2_DEFINE_CONFIGURABLE(NAME, TYPE, DEFAULT, HELP) Configurable<TYPE> NAME{#NAME, DEFAULT, HELP};

static constexpr TrackSelectionFlags::flagtype trackSelectionITS =
TrackSelectionFlags::kITSNCls | TrackSelectionFlags::kITSChi2NDF |
TrackSelectionFlags::kITSHits;
static constexpr TrackSelectionFlags::flagtype trackSelectionTPC =
TrackSelectionFlags::kTPCNCls |
TrackSelectionFlags::kTPCCrossedRowsOverNCls |
TrackSelectionFlags::kTPCChi2NDF;
static constexpr TrackSelectionFlags::flagtype trackSelectionDCA =
TrackSelectionFlags::kDCAz | TrackSelectionFlags::kDCAxy;
static constexpr TrackSelectionFlags::flagtype trackSelectionDCAXYonly =
TrackSelectionFlags::kDCAxy;

struct FlowGFWPbPb {

O2_DEFINE_CONFIGURABLE(cfgCutVertex, float, 10.0f, "Accepted z-vertex range")
Expand All @@ -60,6 +72,8 @@ struct FlowGFWPbPb {
O2_DEFINE_CONFIGURABLE(cfgEfficiency, std::string, "", "CCDB path to efficiency object")
O2_DEFINE_CONFIGURABLE(cfgAcceptance, std::string, "", "CCDB path to acceptance object")
O2_DEFINE_CONFIGURABLE(cfgMagnetField, std::string, "GLO/Config/GRPMagField", "CCDB path to Magnet field object")
O2_DEFINE_CONFIGURABLE(cfgCutOccupancyHigh, int, 500, "High cut on TPC occupancy")
O2_DEFINE_CONFIGURABLE(cfgCutOccupancyLow, int, 0, "Low cut on TPC occupancy")
O2_DEFINE_CONFIGURABLE(dcaZ, float, 0.2f, "Custom DCA Z cut (ignored if negative)")
O2_DEFINE_CONFIGURABLE(GlobalplusITS, bool, false, "Global and ITS tracks")
O2_DEFINE_CONFIGURABLE(Globalonly, bool, false, "Global only tracks")
Expand All @@ -77,18 +91,8 @@ struct FlowGFWPbPb {
ConfigurableAxis axisT0C{"axisT0C", {70, 0, 70000}, "N_{ch} (T0C)"};
ConfigurableAxis axisT0A{"axisT0A", {200, 0, 200000}, "N_{ch} (T0A)"};
ConfigurableAxis axisNchPV{"axisNchPV", {4000, 0, 4000}, "N_{ch} (PV)"};

static constexpr TrackSelectionFlags::flagtype trackSelectionITS =
TrackSelectionFlags::kITSNCls | TrackSelectionFlags::kITSChi2NDF |
TrackSelectionFlags::kITSHits;
static constexpr TrackSelectionFlags::flagtype trackSelectionTPC =
TrackSelectionFlags::kTPCNCls |
TrackSelectionFlags::kTPCCrossedRowsOverNCls |
TrackSelectionFlags::kTPCChi2NDF;
static constexpr TrackSelectionFlags::flagtype trackSelectionDCA =
TrackSelectionFlags::kDCAz | TrackSelectionFlags::kDCAxy;
static constexpr TrackSelectionFlags::flagtype trackSelectionDCAXYonly =
TrackSelectionFlags::kDCAxy;
ConfigurableAxis axisDCAz{"axisDCAz", {200, -2, 2}, "DCA_{z} (cm)"};
ConfigurableAxis axisDCAxy{"axisDCAxy", {200, -1, 1}, "DCA_{xy} (cm)"};

// Corrections
TH1D* mEfficiency = nullptr;
Expand Down Expand Up @@ -148,7 +152,8 @@ struct FlowGFWPbPb {
registry.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(2, "After sel8");
registry.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(3, "After additional event cut");
registry.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(4, "After correction loads");
registry.add("hPhi", "", {HistType::kTH1D, {axisPhi}});
registry.add("hPhi", "#phi distribution", {HistType::kTH1D, {axisPhi}});
registry.add("hPhiWeighted", "corrected #phi distribution", {HistType::kTH1D, {axisPhi}});
registry.add("hEta", "", {HistType::kTH1D, {axisEta}});
registry.add("hVtxZ", "Vexter Z distribution", {HistType::kTH1D, {axisVertex}});
registry.add("hMult", "Multiplicity distribution", {HistType::kTH1D, {{3000, 0.5, 3000.5}}});
Expand All @@ -174,9 +179,10 @@ struct FlowGFWPbPb {
registry.add("multT0C_centT0C_Aft", "after cut;Centrality T0C;mulplicity T0C", {HistType::kTH2D, {axisCentForQA, axisT0C}});

// Track types
registry.add("GlobalplusITS", "Global plus ITS;Centrality FT0C;Nch", kTH1F, {axisCentrality});
registry.add("Globalonly", "Global only;Centrality FT0C;Nch", kTH1F, {axisCentrality});
registry.add("ITSonly", "ITS only;Centrality FT0C;Nch", kTH1F, {axisCentrality});
registry.add("GlobalplusITS", "Global plus ITS;Centrality FT0C;No. of Events", kTH1F, {axisCentrality});
registry.add("Globalonly", "Global only;Centrality FT0C;No. of Events", kTH1F, {axisCentrality});
registry.add("ITSonly", "ITS only;Centrality FT0C;No. of Events", kTH1F, {axisCentrality});
registry.add("Events_per_Centrality_Bin", "Events_per_Centrality_Bin;Centrality FT0C;No. of Events", kTH1F, {axisCentrality});
registry.add("GlobalplusITS_Nch_vs_Cent", "Global plus ITS;Centrality (%); M (|#eta| < 0.8);", {HistType::kTH2D, {axisCentrality, axisNch}});
registry.add("Globalonly_Nch_vs_Cent", "Global only;Centrality (%); M (|#eta| < 0.8);", {HistType::kTH2D, {axisCentrality, axisNch}});
registry.add("ITSonly_Nch_vs_Cent", "ITS only;Centrality (%); M (|#eta| < 0.8);", {HistType::kTH2D, {axisCentrality, axisNch}});
Expand All @@ -189,6 +195,8 @@ struct FlowGFWPbPb {
registry.add("hChi2prTPCcls", "#chi^{2}/cluster for the TPC track segment", {HistType::kTH1D, {{100, 0., 5.}}});
registry.add("hnTPCClu", "Number of found TPC clusters", {HistType::kTH1D, {{100, 40, 180}}});
registry.add("hnTPCCrossedRow", "Number of crossed TPC Rows", {HistType::kTH1D, {{100, 40, 180}}});
registry.add("hDCAz", "DCAz after cuts", {HistType::kTH1D, {{100, -3, 3}}});
registry.add("hDCAxy", "DCAxy after cuts; DCAxy (cm); Pt", {HistType::kTH2D, {{50, -1, 1}, {50, 0, 10}}});

// additional Output histograms
registry.add("c22", ";Centrality (%) ; C_{2}{2} ", {HistType::kTProfile, {axisCentrality}});
Expand Down Expand Up @@ -392,25 +400,28 @@ struct FlowGFWPbPb {
}

auto multNTracksPV = collision.multNTracksPV();
auto occupancy = collision.trackOccupancyInTimeRange();

if (centrality >= 70. || centrality < 0)
return false;
return 0;
if (abs(vtxz) > cfgCutVertex)
return false;
return 0;
if (multNTracksPV < fMultPVCutLow->Eval(centrality))
return false;
return 0;
if (multNTracksPV > fMultPVCutHigh->Eval(centrality))
return false;
return 0;
if (multTrk < fMultCutLow->Eval(centrality))
return false;
return 0;
if (multTrk > fMultCutHigh->Eval(centrality))
return false;
return 0;
if (occupancy < cfgCutOccupancyLow || occupancy > cfgCutOccupancyHigh)
return 0;

// V0A T0A 5 sigma cut
if (abs(collision.multFV0A() - fT0AV0AMean->Eval(collision.multFT0A())) > 5 * fT0AV0ASigma->Eval(collision.multFT0A()))
return false;
return 0;

return true;
return 1;
}

int getMagneticField(uint64_t timestamp)
Expand Down Expand Up @@ -449,14 +460,10 @@ struct FlowGFWPbPb {

// Apply process filters
Filter collisionFilter = nabs(aod::collision::posZ) < cfgCutVertex;
Filter trackSelectionProperMixed = ncheckbit(aod::track::v001::detectorMap, (uint8_t)o2::aod::track::ITS) &&
ncheckbit(aod::track::trackCutFlag, trackSelectionITS) &&
ifnode(ncheckbit(aod::track::v001::detectorMap, (uint8_t)o2::aod::track::TPC),
ncheckbit(aod::track::trackCutFlag, trackSelectionTPC), true) &&
ifnode(dcaZ.node() > 0.f, nabs(aod::track::dcaZ) <= dcaZ && ncheckbit(aod::track::trackCutFlag, trackSelectionDCAXYonly),
ncheckbit(aod::track::trackCutFlag, trackSelectionDCA)) &&
(nabs(aod::track::eta) < cfgCutEta) && (aod::track::pt > cfgCutPtMin) &&
(aod::track::pt < cfgCutPtMax) && (aod::track::tpcChi2NCl < cfgCutChi2prTPCcls);
Filter trackFilter = ncheckbit(aod::track::v001::detectorMap, (uint8_t)o2::aod::track::ITS) &&
ncheckbit(aod::track::trackCutFlag, trackSelectionITS) &&
ifnode(ncheckbit(aod::track::v001::detectorMap, (uint8_t)o2::aod::track::TPC), ncheckbit(aod::track::trackCutFlag, trackSelectionTPC), true) &&
ifnode(dcaZ.node() > 0.f, nabs(aod::track::dcaZ) <= dcaZ && ncheckbit(aod::track::trackCutFlag, trackSelectionDCAXYonly), ncheckbit(aod::track::trackCutFlag, trackSelectionDCA));

using Colls = soa::Filtered<soa::Join<aod::Collisions, aod::EvSels, aod::Mults, aod::MultsExtra, aod::CentFT0Cs>>; // collisions filter
using aodTracks = soa::Filtered<soa::Join<aod::Tracks, aod::TrackSelection, aod::TracksDCA, aod::TracksExtra>>; // tracks filter
Expand Down Expand Up @@ -526,8 +533,13 @@ struct FlowGFWPbPb {

for (auto& track : tracks) {

// if (track.tpcNClsFound() < cfgCutTPCclu)
// continue;
if (std::abs(track.eta()) >= cfgCutEta) {
continue;
}
if (cfgCutPtMin > track.pt() && track.pt() > cfgCutPtMax) {
continue;
}

if (cfgUseAdditionalTrackCut && !trackSelected(track, Magnetfield))
continue;
if (cfgOutputNUAWeights)
Expand All @@ -540,11 +552,14 @@ struct FlowGFWPbPb {

if (WithinPtRef) {
registry.fill(HIST("hPhi"), track.phi());
registry.fill(HIST("hPhiWeighted"), track.phi(), wacc);
registry.fill(HIST("hEta"), track.eta());
registry.fill(HIST("hPtRef"), track.pt());
registry.fill(HIST("hChi2prTPCcls"), track.tpcChi2NCl());
registry.fill(HIST("hnTPCClu"), track.tpcNClsFound());
registry.fill(HIST("hnTPCCrossedRow"), track.tpcNClsCrossedRows());
registry.fill(HIST("hDCAz"), track.dcaZ());
registry.fill(HIST("hDCAxy"), track.dcaXY(), track.pt());
}

globalplusits_nch++;
Expand Down Expand Up @@ -572,6 +587,7 @@ struct FlowGFWPbPb {

} // End of track loop

registry.fill(HIST("Events_per_Centrality_Bin"), cent);
registry.fill(HIST("GlobalplusITS_Nch_vs_Cent"), cent, globalplusits_nch);
registry.fill(HIST("Globalonly_Nch_vs_Cent"), cent, gloabalonly_nch);
registry.fill(HIST("ITSonly_Nch_vs_Cent"), cent, itsonly_nch);
Expand Down
17 changes: 17 additions & 0 deletions PWGDQ/Core/CutsLibrary.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,18 @@ AnalysisCompositeCut* o2::aod::dqcuts::GetCompositeCut(const char* cutName)
return cut;
}

if (!nameStr.compare("posTrackKaonRej")) {
cut->AddCut(GetAnalysisCut("posTrack"));
cut->AddCut(GetAnalysisCut("kaonRejNsigma"));
return cut;
}

if (!nameStr.compare("negTrackKaonRej")) {
cut->AddCut(GetAnalysisCut("negTrack"));
cut->AddCut(GetAnalysisCut("kaonRejNsigma"));
return cut;
}

if (!nameStr.compare("pTLow04")) {
cut->AddCut(GetAnalysisCut("pTLow04"));
return cut;
Expand Down Expand Up @@ -4787,6 +4799,11 @@ AnalysisCut* o2::aod::dqcuts::GetAnalysisCut(const char* cutName)
return cut;
}

if (!nameStr.compare("kaonRejNsigma")) {
cut->AddCut(VarManager::kTPCnSigmaKa, -3.0, 3.0, true);
return cut;
}

if (!nameStr.compare("kaonPIDnsigma2")) {
cut->AddCut(VarManager::kTPCnSigmaKa, -2.0, 2.0);
return cut;
Expand Down
17 changes: 17 additions & 0 deletions PWGDQ/Core/VarManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <iostream>
#include <utility>
#include <complex>
#include <algorithm>

#include <TObject.h>
#include <TString.h>
Expand Down Expand Up @@ -145,6 +146,7 @@ class VarManager : public TObject
kDecayToKPi, // e.g. D0 -> K+ pi- or cc.
kTripleCandidateToKPiPi, // e.g. D+ -> K- pi+ pi+
kTripleCandidateToPKPi, // e.g. Lambda_c -> p K- pi+
kTripleCandidateToKKPi, // e.g. D_s -> K+ K- pi+
kNMaxCandidateTypes
};

Expand Down Expand Up @@ -2728,6 +2730,21 @@ void VarManager::FillTriple(T1 const& t1, T2 const& t2, T3 const& t3, float* val
values[kPhi] = v123.Phi();
values[kRap] = -v123.Rapidity();
}

if (pairType == kTripleCandidateToKKPi) {
float m1 = o2::constants::physics::MassKaonCharged;
float m2 = o2::constants::physics::MassPionCharged;

ROOT::Math::PtEtaPhiMVector v1(t1.pt(), t1.eta(), t1.phi(), m1);
ROOT::Math::PtEtaPhiMVector v2(t2.pt(), t2.eta(), t2.phi(), m1);
ROOT::Math::PtEtaPhiMVector v3(t3.pt(), t3.eta(), t3.phi(), m2);
ROOT::Math::PtEtaPhiMVector v123 = v1 + v2 + v3;
values[kMass] = v123.M();
values[kPt] = v123.Pt();
values[kEta] = v123.Eta();
values[kPhi] = v123.Phi();
values[kRap] = -v123.Rapidity();
}
}

template <int pairType, typename T1, typename T2>
Expand Down
10 changes: 9 additions & 1 deletion PWGDQ/Tasks/tableReader_withAssoc.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2204,7 +2204,7 @@ struct AnalysisAsymmetricPairing {

std::set<std::tuple<int64_t, int64_t, int64_t>> globIdxTriplets;
// Based on triplet type, make suitable combinations of the partitions
if (tripletType == VarManager::kTripleCandidateToPKPi) {
if (tripletType == VarManager::kTripleCandidateToPKPi || tripletType == VarManager::kTripleCandidateToKKPi) {
for (auto& [a1, a2, a3] : combinations(soa::CombinationsFullIndexPolicy(groupedLegAAssocs, groupedLegBAssocs, groupedLegCAssocs))) {
readTriplet<TThreeProngFitter, TEventFillMap, TTrackFillMap>(a1, a2, a3, tracks, event, tripletType, histNames);
}
Expand Down Expand Up @@ -2324,6 +2324,13 @@ struct AnalysisAsymmetricPairing {
runThreeProng<true, gkEventFillMapWithCovZdc, gkTrackFillMapWithCov>(events, trackAssocsPerCollision, barrelAssocs, barrelTracks, VarManager::kTripleCandidateToKPiPi);
}

void processKaonKaonPionSkimmed(MyEventsVtxCovZdcSelected const& events,
soa::Join<aod::ReducedTracksAssoc, aod::BarrelTrackCuts> const& barrelAssocs,
MyBarrelTracksWithCovWithAmbiguities const& barrelTracks)
{
runThreeProng<true, gkEventFillMapWithCovZdc, gkTrackFillMapWithCov>(events, trackAssocsPerCollision, barrelAssocs, barrelTracks, VarManager::kTripleCandidateToKKPi);
}

void processProtonKaonPionSkimmed(MyEventsVtxCovZdcSelected const& events,
soa::Join<aod::ReducedTracksAssoc, aod::BarrelTrackCuts> const& barrelAssocs,
MyBarrelTracksWithCovWithAmbiguities const& barrelTracks)
Expand All @@ -2338,6 +2345,7 @@ struct AnalysisAsymmetricPairing {

PROCESS_SWITCH(AnalysisAsymmetricPairing, processKaonPionSkimmed, "Run kaon pion pairing, with skimmed tracks", false);
PROCESS_SWITCH(AnalysisAsymmetricPairing, processKaonPionPionSkimmed, "Run kaon pion pion triplets, with skimmed tracks", false);
PROCESS_SWITCH(AnalysisAsymmetricPairing, processKaonKaonPionSkimmed, "Run kaon kaon pion triplets, with skimmed tracks", false);
PROCESS_SWITCH(AnalysisAsymmetricPairing, processProtonKaonPionSkimmed, "Run proton kaon pion triplets, with skimmed tracks", false);
PROCESS_SWITCH(AnalysisAsymmetricPairing, processDummy, "Dummy function, enabled only if none of the others are enabled", true);
};
Expand Down
4 changes: 4 additions & 0 deletions PWGHF/D2H/DataModel/ReducedDataModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ DECLARE_SOA_TABLE(HfMcRecRedDpPis, "AOD", "HFMCRECREDDPPI", //! Table with recon
hf_cand_b0_reduced::Prong0Id,
hf_cand_b0_reduced::Prong1Id,
hf_cand_b0::FlagMcMatchRec,
hf_cand_b0::FlagWrongCollision,
hf_cand_b0::DebugMcRec,
hf_b0_mc::PtMother);

Expand All @@ -312,6 +313,7 @@ DECLARE_SOA_TABLE(HfMcCheckDpPis, "AOD", "HFMCCHECKDPPI", //! Table with reconst
// Table with same size as HFCANDB0
DECLARE_SOA_TABLE(HfMcRecRedB0s, "AOD", "HFMCRECREDB0", //! Reconstruction-level MC information on B0 candidates for reduced workflow
hf_cand_b0::FlagMcMatchRec,
hf_cand_b0::FlagWrongCollision,
hf_cand_b0::DebugMcRec,
hf_b0_mc::PtMother);

Expand Down Expand Up @@ -374,6 +376,7 @@ DECLARE_SOA_TABLE(HfMcRecRedD0Pis, "AOD", "HFMCRECREDD0PI", //! Table with recon
hf_cand_bplus_reduced::Prong0Id,
hf_cand_bplus_reduced::Prong1Id,
hf_cand_bplus::FlagMcMatchRec,
hf_cand_bplus::FlagWrongCollision,
hf_cand_bplus::DebugMcRec,
hf_bplus_mc::PtMother);

Expand All @@ -388,6 +391,7 @@ DECLARE_SOA_TABLE(HfMcCheckD0Pis, "AOD", "HFMCCHECKD0PI", //! Table with reconst
// Table with same size as HFCANDBPLUS
DECLARE_SOA_TABLE(HfMcRecRedBps, "AOD", "HFMCRECREDBP", //! Reconstruction-level MC information on B+ candidates for reduced workflow
hf_cand_bplus::FlagMcMatchRec,
hf_cand_bplus::FlagWrongCollision,
hf_cand_bplus::DebugMcRec,
hf_bplus_mc::PtMother);

Expand Down
4 changes: 2 additions & 2 deletions PWGHF/D2H/TableProducer/candidateCreatorB0Reduced.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ struct HfCandidateCreatorB0ReducedExpressions {
if ((rowDPiMcRec.prong0Id() != candB0.prong0Id()) || (rowDPiMcRec.prong1Id() != candB0.prong1Id())) {
continue;
}
rowB0McRec(rowDPiMcRec.flagMcMatchRec(), rowDPiMcRec.debugMcRec(), rowDPiMcRec.ptMother());
rowB0McRec(rowDPiMcRec.flagMcMatchRec(), rowDPiMcRec.flagWrongCollision(), rowDPiMcRec.debugMcRec(), rowDPiMcRec.ptMother());
filledMcInfo = true;
if constexpr (checkDecayTypeMc) {
rowB0McCheck(rowDPiMcRec.pdgCodeBeautyMother(),
Expand All @@ -306,7 +306,7 @@ struct HfCandidateCreatorB0ReducedExpressions {
break;
}
if (!filledMcInfo) { // protection to get same size tables in case something went wrong: we created a candidate that was not preselected in the D-Pi creator
rowB0McRec(0, -1, -1.f);
rowB0McRec(0, -1, -1, -1.f);
if constexpr (checkDecayTypeMc) {
rowB0McCheck(-1, -1, -1, -1, -1, -1);
}
Expand Down
4 changes: 2 additions & 2 deletions PWGHF/D2H/TableProducer/candidateCreatorBplusReduced.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ struct HfCandidateCreatorBplusReducedExpressions {
if ((rowD0PiMcRec.prong0Id() != candBplus.prong0Id()) || (rowD0PiMcRec.prong1Id() != candBplus.prong1Id())) {
continue;
}
rowBplusMcRec(rowD0PiMcRec.flagMcMatchRec(), rowD0PiMcRec.debugMcRec(), rowD0PiMcRec.ptMother());
rowBplusMcRec(rowD0PiMcRec.flagMcMatchRec(), rowD0PiMcRec.flagWrongCollision(), rowD0PiMcRec.debugMcRec(), rowD0PiMcRec.ptMother());
filledMcInfo = true;
if constexpr (checkDecayTypeMc) {
rowBplusMcCheck(rowD0PiMcRec.pdgCodeBeautyMother(),
Expand All @@ -302,7 +302,7 @@ struct HfCandidateCreatorBplusReducedExpressions {
break;
}
if (!filledMcInfo) { // protection to get same size tables in case something went wrong: we created a candidate that was not preselected in the D0-Pi creator
rowBplusMcRec(0, -1, -1.f);
rowBplusMcRec(0, -1, -1, -1.f);
if constexpr (checkDecayTypeMc) {
rowBplusMcCheck(-1, -1, -1, -1);
}
Expand Down
Loading

0 comments on commit b253b80

Please sign in to comment.