Skip to content

Commit 26de36a

Browse files
authored
Merge branch 'AliceO2Group:master' into master
2 parents 4b94f6d + 92cd425 commit 26de36a

35 files changed

+848
-1371
lines changed

Common/Tasks/centralityStudy.cxx

Lines changed: 45 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,18 @@
1313
// Run 3 Pb-Pb centrality selections in 2023 data. It is compatible with
1414
// derived data.
1515

16-
#include "Framework/runDataProcessing.h"
17-
#include "Framework/AnalysisTask.h"
18-
#include "Framework/AnalysisDataModel.h"
19-
#include "Common/DataModel/McCollisionExtra.h"
20-
#include "Common/DataModel/Multiplicity.h"
2116
#include "Common/DataModel/Centrality.h"
2217
#include "Common/DataModel/EventSelection.h"
18+
#include "Common/DataModel/McCollisionExtra.h"
19+
#include "Common/DataModel/Multiplicity.h"
20+
21+
#include "CCDB/BasicCCDBManager.h"
22+
#include "DataFormatsParameters/GRPECSObject.h"
23+
#include "Framework/AnalysisDataModel.h"
24+
#include "Framework/AnalysisTask.h"
2325
#include "Framework/O2DatabasePDGPlugin.h"
26+
#include "Framework/runDataProcessing.h"
27+
2428
#include "TH1F.h"
2529
#include "TH2F.h"
2630

@@ -32,13 +36,15 @@ using BCsWithRun3Matchings = soa::Join<aod::BCs, aod::Timestamps, aod::Run3Match
3236
struct centralityStudy {
3337
// Raw multiplicities
3438
HistogramRegistry histos{"Histos", {}, OutputObjHandlingPolicy::AnalysisObject};
39+
Service<o2::ccdb::BasicCCDBManager> ccdb;
3540

3641
// Configurables
3742
Configurable<bool> do2DPlots{"do2DPlots", true, "0 - no, 1 - yes"};
3843
Configurable<bool> doOccupancyStudyVsCentrality2d{"doOccupancyStudyVsCentrality2d", true, "0 - no, 1 - yes"};
3944
Configurable<bool> doOccupancyStudyVsRawValues2d{"doOccupancyStudyVsRawValues2d", true, "0 - no, 1 - yes"};
4045
Configurable<bool> doOccupancyStudyVsCentrality3d{"doOccupancyStudyVsCentrality3d", false, "0 - no, 1 - yes"};
4146
Configurable<bool> doOccupancyStudyVsRawValues3d{"doOccupancyStudyVsRawValues3d", false, "0 - no, 1 - yes"};
47+
Configurable<bool> doTimeStudies{"doTimeStudies", true, "0 - no, 1 - yes"};
4248
Configurable<bool> doNGlobalTracksVsRawSignals{"doNGlobalTracksVsRawSignals", true, "0 - no, 1 - yes"};
4349
Configurable<bool> applySel8{"applySel8", true, "0 - no, 1 - yes"};
4450
Configurable<bool> applyVtxZ{"applyVtxZ", true, "0 - no, 1 - yes"};
@@ -113,10 +119,10 @@ struct centralityStudy {
113119
ConfigurableAxis axisCentrality{"axisCentrality", {100, 0, 100}, "FT0C percentile"};
114120
ConfigurableAxis axisPVChi2{"axisPVChi2", {300, 0, 30}, "FT0C percentile"};
115121
ConfigurableAxis axisDeltaTime{"axisDeltaTime", {300, 0, 300}, "#Delta time"};
122+
ConfigurableAxis axisDeltaTimestamp{"axisDeltaTimestamp", {1440, 0, 24}, "#Delta timestamp - sor (hours)"};
116123

117124
// For profile Z
118125
ConfigurableAxis axisPVz{"axisPVz", {400, -20.0f, +20.0f}, "PVz (cm)"};
119-
120126
ConfigurableAxis axisZN{"axisZN", {1100, -50.0f, +500.0f}, "ZN"};
121127

122128
void init(InitContext&)
@@ -227,6 +233,21 @@ struct centralityStudy {
227233
histos.add("hFT0COccupancyVsNGlobalTracksVsCentrality", "hFT0COccupancyVsNGlobalTracksVsCentrality", kTH3F, {axisFT0COccupancy, axisMultGlobalTracks, axisCentrality});
228234
}
229235
}
236+
237+
if (doTimeStudies) {
238+
ccdb->setURL("http://alice-ccdb.cern.ch");
239+
ccdb->setCaching(true);
240+
ccdb->setLocalObjectValidityChecking();
241+
ccdb->setFatalWhenNull(false);
242+
243+
histos.add("hFT0AvsTime", "hFT0AvsTime", kTH2F, {axisDeltaTimestamp, axisMultFT0A});
244+
histos.add("hFT0CvsTime", "hFT0CvsTime", kTH2F, {{axisDeltaTimestamp, axisMultFT0C}});
245+
histos.add("hFT0MvsTime", "hFT0MvsTime", kTH2F, {{axisDeltaTimestamp, axisMultFT0M}});
246+
histos.add("hFV0AvsTime", "hFV0AvsTime", kTH2F, {{axisDeltaTimestamp, axisMultFV0A}});
247+
histos.add("hMFTTracksvsTime", "hMFTTracksvsTime", kTH2F, {{axisDeltaTimestamp, axisMultMFTTracks}});
248+
histos.add("hNGlobalVsTime", "hNGlobalVsTime", kTH2F, {{axisDeltaTimestamp, axisMultGlobalTracks}});
249+
histos.add("hNTPVContributorsvsTime", "hNTPVContributorsvsTime", kTH2F, {{axisDeltaTimestamp, axisMultPVContributors}});
250+
}
230251
}
231252

232253
template <typename TCollision>
@@ -403,19 +424,34 @@ struct centralityStudy {
403424
histos.fill(HIST("hFT0COccupancyVsNGlobalTracksVsCentrality"), collision.ft0cOccupancyInTimeRange(), collision.multNTracksGlobal(), collision.centFT0C());
404425
}
405426
}
427+
428+
if (doTimeStudies && collision.has_multBC()) {
429+
auto multbc = collision.template multBC_as<aod::MultBCs>();
430+
uint64_t bcTimestamp = multbc.timestamp();
431+
o2::parameters::GRPECSObject* grpo = ccdb->getForTimeStamp<o2::parameters::GRPECSObject>("GLO/Config/GRPECS", bcTimestamp);
432+
uint64_t startOfRunTimestamp = grpo->getTimeStart();
433+
float hoursAfterStartOfRun = static_cast<float>(bcTimestamp - startOfRunTimestamp) / 3600000.0;
434+
histos.fill(HIST("hFT0AvsTime"), hoursAfterStartOfRun, collision.multFT0A());
435+
histos.fill(HIST("hFT0CvsTime"), hoursAfterStartOfRun, collision.multFT0C());
436+
histos.fill(HIST("hFT0MvsTime"), hoursAfterStartOfRun, collision.multFT0M());
437+
histos.fill(HIST("hFV0AvsTime"), hoursAfterStartOfRun, collision.multFV0A());
438+
histos.fill(HIST("hMFTTracksvsTime"), hoursAfterStartOfRun, collision.mftNtracks());
439+
histos.fill(HIST("hNGlobalVsTime"), hoursAfterStartOfRun, collision.multNTracksGlobal());
440+
histos.fill(HIST("hNTPVContributorsvsTime"), hoursAfterStartOfRun, collision.multPVTotalContributors());
441+
}
406442
}
407443

408-
void processCollisions(soa::Join<aod::Mults, aod::MFTMults, aod::MultsExtra, aod::MultsGlobal, aod::MultSelections>::iterator const& collision)
444+
void processCollisions(soa::Join<aod::Mults, aod::MFTMults, aod::MultsExtra, aod::MultsGlobal, aod::MultSelections, aod::Mults2BC>::iterator const& collision, aod::MultBCs const&)
409445
{
410446
genericProcessCollision(collision);
411447
}
412448

413-
void processCollisionsWithCentrality(soa::Join<aod::Mults, aod::MFTMults, aod::MultsExtra, aod::MultSelections, aod::CentFT0Cs, aod::MultsGlobal>::iterator const& collision)
449+
void processCollisionsWithCentrality(soa::Join<aod::Mults, aod::MFTMults, aod::MultsExtra, aod::MultSelections, aod::CentFT0Cs, aod::MultsGlobal, aod::Mults2BC>::iterator const& collision, aod::MultBCs const&)
414450
{
415451
genericProcessCollision(collision);
416452
}
417453

418-
void processCollisionsWithCentralityWithNeighbours(soa::Join<aod::Mults, aod::MFTMults, aod::MultsExtra, aod::MultSelections, aod::CentFT0Cs, aod::MultsGlobal, aod::MultNeighs>::iterator const& collision)
454+
void processCollisionsWithCentralityWithNeighbours(soa::Join<aod::Mults, aod::MFTMults, aod::MultsExtra, aod::MultSelections, aod::CentFT0Cs, aod::MultsGlobal, aod::MultNeighs, aod::Mults2BC>::iterator const& collision, aod::MultBCs const&)
419455
{
420456
genericProcessCollision(collision);
421457
}

PWGCF/FemtoUniverse/TableProducer/femtoUniverseProducerTask.cxx

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -17,45 +17,49 @@
1717
/// \author Pritam Chakraborty, WUT Warsaw, pritam.chakraborty@cern.ch
1818
/// \author Shirajum Monira, WUT Warsaw, shirajum.monira@cern.ch
1919

20-
#include <experimental/type_traits>
21-
#include <CCDB/BasicCCDBManager.h>
22-
#include <TPDGCode.h>
23-
#include <vector>
24-
#include <algorithm>
25-
#include <set>
20+
#include "PWGCF/FemtoUniverse/Core/FemtoUniverseCascadeSelection.h"
21+
#include "PWGCF/FemtoUniverse/Core/FemtoUniverseCollisionSelection.h"
22+
#include "PWGCF/FemtoUniverse/Core/FemtoUniversePhiSelection.h"
23+
#include "PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h"
24+
#include "PWGCF/FemtoUniverse/Core/FemtoUniverseV0Selection.h"
25+
#include "PWGCF/FemtoUniverse/Core/femtoUtils.h"
26+
#include "PWGCF/FemtoUniverse/DataModel/FemtoDerived.h"
27+
#include "PWGHF/Core/DecayChannels.h"
28+
#include "PWGHF/Core/HfHelper.h"
29+
#include "PWGHF/DataModel/CandidateReconstructionTables.h"
30+
#include "PWGHF/DataModel/CandidateSelectionTables.h"
31+
#include "PWGLF/DataModel/LFStrangenessTables.h"
2632

27-
#include "CommonConstants/PhysicsConstants.h"
2833
#include "Common/CCDB/ctpRateFetcher.h"
29-
#include "Common/Core/trackUtilities.h"
3034
#include "Common/Core/RecoDecay.h"
35+
#include "Common/Core/trackUtilities.h"
36+
#include "Common/DataModel/Centrality.h"
3137
#include "Common/DataModel/EventSelection.h"
3238
#include "Common/DataModel/Multiplicity.h"
33-
#include "Common/DataModel/Centrality.h"
3439
#include "Common/DataModel/PIDResponse.h"
3540
#include "Common/DataModel/TrackSelectionTables.h"
41+
42+
#include "CommonConstants/PhysicsConstants.h"
3643
#include "DataFormatsParameters/GRPMagField.h"
3744
#include "DataFormatsParameters/GRPObject.h"
38-
#include "PWGCF/FemtoUniverse/Core/FemtoUniverseCollisionSelection.h"
39-
#include "PWGCF/FemtoUniverse/Core/FemtoUniverseTrackSelection.h"
40-
#include "PWGCF/FemtoUniverse/Core/FemtoUniverseV0Selection.h"
41-
#include "PWGCF/FemtoUniverse/Core/FemtoUniverseCascadeSelection.h"
42-
#include "PWGCF/FemtoUniverse/Core/FemtoUniversePhiSelection.h"
43-
#include "PWGCF/FemtoUniverse/Core/femtoUtils.h"
44-
#include "PWGHF/DataModel/CandidateReconstructionTables.h"
45-
#include "PWGHF/DataModel/CandidateSelectionTables.h"
46-
#include "PWGHF/Core/HfHelper.h"
4745
#include "Framework/ASoAHelpers.h"
4846
#include "Framework/AnalysisDataModel.h"
4947
#include "Framework/AnalysisTask.h"
5048
#include "Framework/HistogramRegistry.h"
49+
#include "Framework/O2DatabasePDGPlugin.h"
5150
#include "Framework/runDataProcessing.h"
52-
#include "Math/Vector4D.h"
53-
#include "PWGCF/FemtoUniverse/DataModel/FemtoDerived.h"
54-
#include "PWGLF/DataModel/LFStrangenessTables.h"
5551
#include "ReconstructionDataFormats/Track.h"
56-
#include "TMath.h"
52+
#include <CCDB/BasicCCDBManager.h>
53+
54+
#include "Math/Vector4D.h"
5755
#include "TLorentzVector.h"
58-
#include "Framework/O2DatabasePDGPlugin.h"
56+
#include "TMath.h"
57+
#include <TPDGCode.h>
58+
59+
#include <algorithm>
60+
#include <experimental/type_traits>
61+
#include <set>
62+
#include <vector>
5963

6064
using namespace o2;
6165
using namespace o2::analysis::femto_universe;
@@ -786,7 +790,7 @@ struct FemtoUniverseProducerTask {
786790
template <typename ParticleType>
787791
void fillMCParticleD0(ParticleType const& hfCand)
788792
{
789-
if (std::abs(hfCand.flagMcMatchRec()) == 1 << aod::hf_cand_2prong::DecayType::D0ToPiK) {
793+
if (std::abs(hfCand.flagMcMatchRec()) == o2::hf_decay::hf_cand_2prong::DecayChannelMain::D0ToPiK) {
790794
// get corresponding MC particle and its info
791795
int pdgCode = 0;
792796
int hfCandOrigin = 99;
@@ -1807,7 +1811,7 @@ struct FemtoUniverseProducerTask {
18071811

18081812
auto mcD0origin = aod::femtouniverseparticle::ParticleType::kMCTruthTrack;
18091813
float ptGenB = -1;
1810-
if (std::abs(particle.flagMcMatchGen()) == 1 << aod::hf_cand_2prong::DecayType::D0ToPiK) {
1814+
if (std::abs(particle.flagMcMatchGen()) == o2::hf_decay::hf_cand_2prong::DecayChannelMain::D0ToPiK) {
18111815
if (ConfD0Selection.yD0D0barCandGenMax >= 0. && std::abs(RecoDecay::y(particle.pVector(), o2::constants::physics::MassD0)) > ConfD0Selection.yD0D0barCandGenMax) {
18121816
continue;
18131817
}

PWGCF/TableProducer/filter2Prong.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
/// \author Jasper Parkkila <jasper.parkkila@cern.ch>
1313

1414
#include "PWGCF/DataModel/CorrelationsDerived.h"
15+
#include "PWGHF/Core/DecayChannels.h"
1516
#include "PWGHF/Core/HfHelper.h"
1617
#include "PWGHF/DataModel/CandidateReconstructionTables.h"
1718
#include "PWGHF/DataModel/CandidateSelectionTables.h"
@@ -147,7 +148,7 @@ struct Filter2Prong {
147148
// The main filter outputs the primary MC particles. Here we just resolve the daughter indices that are needed for the efficiency matching.
148149
for (const auto& r : cfmcparticles) {
149150
const auto& mcParticle = r.mcParticle_as<HFMCTrack>();
150-
if ((mcParticle.flagMcMatchGen() & (1 << aod::hf_cand_2prong::DecayType::D0ToPiK)) == 0 || mcParticle.daughtersIds().size() != 2) {
151+
if ((std::abs(mcParticle.flagMcMatchGen()) != o2::hf_decay::hf_cand_2prong::DecayChannelMain::D0ToPiK) || mcParticle.daughtersIds().size() != 2) {
151152
output2ProngMcParts(-1, -1, aod::cf2prongtrack::Generic2Prong);
152153
continue;
153154
}

PWGEM/PhotonMeson/Tasks/emcalBcWiseGammaGamma.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ using SelectedMCClusters = soa::Filtered<soa::Join<aod::BCWiseClusters, aod::BCW
4242
struct EmcalBcWiseGammaGamma {
4343
HistogramRegistry mHistManager{"EmcalGammaGammaBcWiseHistograms"};
4444

45-
Configurable<bool> cfgRequirekTVXinEMC{"cfgRequirekTVXinEMC", true, "Reconstruct mesonss only in kTVXinEMC triggered BCs"};
45+
Configurable<bool> cfgRequirekTVXinEMC{"cfgRequirekTVXinEMC", true, "Reconstruct mesons only in kTVXinEMC triggered BCs"};
46+
Configurable<bool> cfgRequireEMCCell{"cfgRequireEMCCell", true, "Reconstruct mesons only in BCs containing at least one EMCal cell (workaround for kTVXinEMC trigger)"};
4647
Configurable<int> cfgSelectOnlyUniqueAmbiguous{"cfgSelectOnlyUniqueAmbiguous", 0, "0: all clusters, 1: only unique clusters, 2: only ambiguous clusters"};
4748

4849
Configurable<int> cfgClusterDefinition{"cfgClusterDefinition", 13, "Clusterizer to be selected, e.g. 13 for kV3MostSplitLowSeed"};
@@ -289,6 +290,8 @@ struct EmcalBcWiseGammaGamma {
289290
{
290291
if (cfgRequirekTVXinEMC && !bc.haskTVXinEMC())
291292
return false;
293+
if (cfgRequireEMCCell && !bc.hasEMCCell())
294+
return false;
292295
if (cfgSelectOnlyUniqueAmbiguous == 1 && collisions.size() != 1)
293296
return false;
294297
if (cfgSelectOnlyUniqueAmbiguous == 2 && collisions.size() == 1)

PWGHF/Core/DecayChannels.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@ enum DecayChannelMain : int8_t {
4040
D0ToPiPi = 3, // π+ π−
4141
D0ToPiPiPi0 = 4, // π+ π− π0
4242
D0ToKK = 5, // K+ K−
43+
// J/ψ
44+
JpsiToEE = 6, // e+ e−
45+
JpsiToMuMu = 7, // μ+ μ−
4346
//
44-
NChannelsMain = D0ToKK // last channel
47+
NChannelsMain = JpsiToMuMu // last channel
4548
};
4649
/// @brief 2-prong candidates: resonant channels
4750
enum DecayChannelResonant : int8_t {
@@ -119,7 +122,7 @@ enum DecayChannelResonant : int8_t {
119122
DstarToDplusToRho0Pi = 22, // ρ0 π+
120123
DstarToDplusToF2_1270Pi = 23, // f2(1270) π+
121124
// Λc+
122-
LcToPKstar0 = 24, // p K*0(892)
125+
LcToPKstar0 = 24, // p anti-K*0(892)
123126
LcToDeltaplusplusK = 25, // Δ++ K−
124127
LcToL1520Pi = 26, // Λ(1520) π+
125128
// Ξc+

PWGHF/Core/HfHelper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ class HfHelper
12061206
}
12071207

12081208
// Lc pt
1209-
if (ptLc < cuts->get(pTBin, "pT Lc")) {
1209+
if (ptLc < cuts->get(pTBin, "pT Lc+")) {
12101210
return false;
12111211
}
12121212

PWGHF/D2H/Tasks/taskCharmPolarisation.cxx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@
4848
#include <TPDGCode.h>
4949
#include <TRandom3.h>
5050

51-
#include <Rtypes.h>
52-
5351
#include <array>
5452
#include <cmath>
5553
#include <cstdint>
@@ -2082,8 +2080,8 @@ struct HfTaskCharmPolarisation {
20822080
int8_t charge = -99;
20832081
bool partRecoDstar{false};
20842082
if constexpr (channel == charm_polarisation::DecayChannel::DstarToDzeroPi) {
2085-
partRecoDstar = TESTBIT(std::abs(mcParticle.flagMcMatchGen()), hf_decay::hf_cand_dstar::DecayChannelMain::DstarToPiKPiPi0) && TESTBIT(std::abs(mcParticle.flagMcMatchGenD0()), hf_decay::hf_cand_2prong::DecayChannelMain::D0ToPiKPi0);
2086-
bool signalDstar = TESTBIT(std::abs(mcParticle.flagMcMatchGen()), hf_decay::hf_cand_dstar::DecayChannelMain::DstarToPiKPi) && TESTBIT(std::abs(mcParticle.flagMcMatchGenD0()), hf_decay::hf_cand_2prong::DecayChannelMain::D0ToPiK);
2083+
partRecoDstar = (std::abs(mcParticle.flagMcMatchGen()) == hf_decay::hf_cand_dstar::DecayChannelMain::DstarToPiKPiPi0) && (std::abs(mcParticle.flagMcMatchGenD0()) == hf_decay::hf_cand_2prong::DecayChannelMain::D0ToPiKPi0);
2084+
bool signalDstar = (std::abs(mcParticle.flagMcMatchGen()) == hf_decay::hf_cand_dstar::DecayChannelMain::DstarToPiKPi) && (std::abs(mcParticle.flagMcMatchGenD0()) == hf_decay::hf_cand_2prong::DecayChannelMain::D0ToPiK);
20872085

20882086
if (!signalDstar && (!activatePartRecoDstar || !partRecoDstar)) { // this particle is not signal and not partially reconstructed signal, skip
20892087
return;

PWGHF/D2H/Tasks/taskD0.cxx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
/// \author Vít Kučera <vit.kucera@cern.ch>, CERN
1717

1818
#include "PWGHF/Core/CentralityEstimation.h"
19+
#include "PWGHF/Core/DecayChannels.h"
1920
#include "PWGHF/Core/HfHelper.h"
2021
#include "PWGHF/Core/SelectorCuts.h"
2122
#include "PWGHF/DataModel/CandidateReconstructionTables.h"
@@ -569,7 +570,7 @@ struct HfTaskD0 {
569570
}
570571
auto trackPos = candidate.template prong0_as<TracksSelQuality>(); // positive daughter
571572
auto trackNeg = candidate.template prong1_as<TracksSelQuality>(); // negative daughter
572-
if (std::abs(candidate.flagMcMatchRec()) == 1 << aod::hf_cand_2prong::DecayType::D0ToPiK) {
573+
if (std::abs(candidate.flagMcMatchRec()) == o2::hf_decay::hf_cand_2prong::DecayChannelMain::D0ToPiK) {
573574
// Get the corresponding MC particle.
574575
auto indexMother = RecoDecay::getMother(mcParticles, trackPos.template mcParticle_as<soa::Join<aod::McParticles, aod::HfCand2ProngMcGen>>(), o2::constants::physics::Pdg::kD0, true);
575576
auto particleMother = mcParticles.rawIteratorAt(indexMother);
@@ -663,7 +664,7 @@ struct HfTaskD0 {
663664
int minTpcCrossedRowsOfProngs = std::min(trackPos.tpcNClsCrossedRows(), trackNeg.tpcNClsCrossedRows());
664665
if (candidate.isSelD0() >= selectionFlagD0) {
665666
registry.fill(HIST("hMassSigBkgD0"), massD0, ptCandidate, rapidityCandidate);
666-
if (candidate.flagMcMatchRec() == (1 << aod::hf_cand_2prong::DecayType::D0ToPiK)) {
667+
if (candidate.flagMcMatchRec() == o2::hf_decay::hf_cand_2prong::DecayChannelMain::D0ToPiK) {
667668
registry.fill(HIST("hPtProng0Sig"), ptProng0, rapidityCandidate);
668669
registry.fill(HIST("hPtProng1Sig"), ptProng1, rapidityCandidate);
669670
registry.fill(HIST("hDecLengthSig"), declengthCandidate, rapidityCandidate);
@@ -727,7 +728,7 @@ struct HfTaskD0 {
727728
registry.fill(HIST("hCPABkg"), cpaCandidate, rapidityCandidate);
728729
registry.fill(HIST("hCPAxyBkg"), cpaxyCandidate, rapidityCandidate);
729730
registry.fill(HIST("hMassBkgD0"), massD0, ptCandidate, rapidityCandidate);
730-
if (candidate.flagMcMatchRec() == -(1 << aod::hf_cand_2prong::DecayType::D0ToPiK)) {
731+
if (candidate.flagMcMatchRec() == -o2::hf_decay::hf_cand_2prong::DecayChannelMain::D0ToPiK) {
731732
registry.fill(HIST("hMassReflBkgD0"), massD0, ptCandidate, rapidityCandidate);
732733
if constexpr (applyMl) {
733734
if (storeCentrality && storeOccupancy) {
@@ -759,7 +760,7 @@ struct HfTaskD0 {
759760
}
760761
if (candidate.isSelD0bar() >= selectionFlagD0bar) {
761762
registry.fill(HIST("hMassSigBkgD0bar"), massD0bar, ptCandidate, rapidityCandidate);
762-
if (candidate.flagMcMatchRec() == -(1 << aod::hf_cand_2prong::DecayType::D0ToPiK)) {
763+
if (candidate.flagMcMatchRec() == -o2::hf_decay::hf_cand_2prong::DecayChannelMain::D0ToPiK) {
763764
registry.fill(HIST("hMassSigD0bar"), massD0bar, ptCandidate, rapidityCandidate);
764765
if constexpr (applyMl) {
765766
if (storeCentrality && storeOccupancy) {
@@ -788,7 +789,7 @@ struct HfTaskD0 {
788789
}
789790
} else {
790791
registry.fill(HIST("hMassBkgD0bar"), massD0bar, ptCandidate, rapidityCandidate);
791-
if (candidate.flagMcMatchRec() == (1 << aod::hf_cand_2prong::DecayType::D0ToPiK)) {
792+
if (candidate.flagMcMatchRec() == o2::hf_decay::hf_cand_2prong::DecayChannelMain::D0ToPiK) {
792793
registry.fill(HIST("hMassReflBkgD0bar"), massD0bar, ptCandidate, rapidityCandidate);
793794
if constexpr (applyMl) {
794795
if (storeCentrality && storeOccupancy) {
@@ -821,7 +822,7 @@ struct HfTaskD0 {
821822
}
822823
// MC gen.
823824
for (const auto& particle : mcParticles) {
824-
if (std::abs(particle.flagMcMatchGen()) == 1 << aod::hf_cand_2prong::DecayType::D0ToPiK) {
825+
if (std::abs(particle.flagMcMatchGen()) == o2::hf_decay::hf_cand_2prong::DecayChannelMain::D0ToPiK) {
825826
if (yCandGenMax >= 0. && std::abs(RecoDecay::y(particle.pVector(), o2::constants::physics::MassD0)) > yCandGenMax) {
826827
continue;
827828
}

PWGHF/D2H/Tasks/taskLcToK0sP.cxx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -266,17 +266,9 @@ struct HfTaskLcToK0sP {
266266
TracksWPid const&)
267267
{
268268
for (const auto& candidate : candidates) {
269-
/*
270-
// no such selection for LcK0sp for now - it is the only cascade
271-
if (!(candidate.hfflag() & 1 << D0ToPiK)) {
272-
continue;
273-
}
274-
*/
275-
276269
if (etaCandMax >= 0. && std::abs(candidate.eta()) > etaCandMax) {
277270
continue;
278271
}
279-
280272
if (yCandRecoMax >= 0. && std::abs(hfHelper.yLc(candidate)) > yCandRecoMax) {
281273
continue;
282274
}

0 commit comments

Comments
 (0)