Skip to content

Commit fa9c271

Browse files
authored
Merge branch 'AliceO2Group:master' into master
2 parents 9c4783d + 6c9e716 commit fa9c271

7 files changed

Lines changed: 371 additions & 296 deletions

File tree

CODEOWNERS

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@
5252
/PWGLF/TableProducer/Strangeness @alibuild @sustripathy @skundu692 @ercolessi @romainschotter
5353
/PWGLF/Utils @alibuild @sustripathy @skundu692 @gbencedi @abmodak @fmazzasc @maciacco @dmallick2 @smaff92 @ercolessi @romainschotter
5454

55-
# PWG-MM
55+
# PWG-MM (fused with LF, LF conveners included. Directories to be merged in the future)
5656
/PWGMM @alibuild @sustripathy @skundu692 @aalkin @jgcn
5757
/PWGMM/Mult @alibuild @sustripathy @skundu692 @aalkin @aortizve @ddobrigk @gbencedi @jgcn
58-
/PWGMM/Lumi @alibuild @aalkin @jgcn
59-
/PWGMM/UE @alibuild @aalkin @aortizve @jgcn
58+
/PWGMM/Lumi @alibuild @sustripathy @skundu692 @aalkin @jgcn @gbencedi @abmodak
59+
/PWGMM/UE @alibuild @sustripathy @skundu692 @aalkin @aortizve @jgcn
6060

6161
/PWGUD @alibuild @pbuehler @nystrand @rolavick
6262
/PWGJE @alibuild @lhavener @maoyx @nzardosh @fjonasALICE @mfasDa @mhemmer-cern

PWGCF/Tasks/correlations.cxx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ struct CorrelationTask {
182182
if (doprocessSame2Prong2Prong || doprocessSame2Prong2ProngML) {
183183
registry.add("invMassTwoPart", "2D 2-prong invariant mass (GeV/c^2)", {HistType::kTHnSparseF, {axisSpecMass, axisSpecMass, axisPtTrigger, axisPtAssoc, axisMultiplicity}});
184184
registry.add("invMassTwoPartDPhi", "2D 2-prong invariant mass (GeV/c^2)", {HistType::kTHnSparseF, {axisSpecMass, axisSpecMass, axisPtTrigger, axisPtAssoc, axisDeltaPhi}});
185+
registry.add("invMassTwoPartDEta", "2D 2-prong invariant mass (GeV/c^2)", {HistType::kTHnSparseF, {axisSpecMass, axisSpecMass, axisPtTrigger, axisPtAssoc, axisDeltaEta}});
185186
}
186187
}
187188
if (doprocessSameDerivedMultSet) {
@@ -394,6 +395,9 @@ struct CorrelationTask {
394395
continue;
395396
registry.fill(HIST("invMassTwoPart"), track1.invMass(), track2.invMass(), track1.pt(), track2.pt(), multiplicity);
396397
registry.fill(HIST("invMassTwoPartDPhi"), track1.invMass(), track2.invMass(), track1.pt(), track2.pt(), TVector2::Phi_0_2pi(track1.phi() - track2.phi() + TMath::Pi() / 2.0) - TMath::Pi() / 2.0);
398+
if (std::abs(track1.phi() - track2.phi()) < constants::math::PI * 0.5) {
399+
registry.fill(HIST("invMassTwoPartDEta"), track1.invMass(), track2.invMass(), track1.pt(), track2.pt(), track1.eta() - track2.eta());
400+
}
397401
}
398402
}
399403
}
@@ -637,7 +641,7 @@ struct CorrelationTask {
637641
continue; // skip particles that do not match the decay mask
638642
}
639643
if (cfgV0RapidityMax > 0) {
640-
auto [t, y] = getV0Rapidity(track1);
644+
auto [t, y] = getV0Rapidity(track2);
641645
if (t && std::abs(y) > cfgV0RapidityMax)
642646
continue; // V0s are not allowed to be outside the rapidity range
643647
}

PWGHF/D2H/TableProducer/candidateCreatorCharmResoReduced.cxx

Lines changed: 240 additions & 220 deletions
Large diffs are not rendered by default.

PWGHF/D2H/Tasks/taskOmegac0ToOmegapi.cxx

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ struct HfTaskOmegac0ToOmegapi {
9999
Preslice<Omegac0CandsMlKF> candOmegacKFMlPerCollision = aod::hf_cand_xic0_omegac0::collisionId;
100100
PresliceUnsorted<CollisionsWithMcLabels> colPerMcCollision = aod::mccollisionlabel::mcCollisionId;
101101

102-
ConfigurableAxis thnConfigAxisPromptScore{"thnConfigAxisPromptScore", {100, 0, 1}, "Prompt score"};
103102
ConfigurableAxis thnConfigAxisMass{"thnConfigAxisMass", {700, 2.4, 3.1}, "Cand. inv. mass"};
104103
ConfigurableAxis thnConfigAxisPt{"thnConfigAxisPt", {500, 0, 50}, "Cand. pT"};
105104
ConfigurableAxis thnConfigAxisPtB{"thnConfigAxisPtB", {500, 0, 50}, "Cand. beauty mother pT"};
106105
ConfigurableAxis thnConfigAxisY{"thnConfigAxisY", {20, -1, 1}, "Cand. rapidity"};
107-
ConfigurableAxis thnConfigAxisCent{"thnConfigAxisCent", {100, 0, 100}, "Centrality"};
108106
ConfigurableAxis thnConfigAxisOrigin{"thnConfigAxisOrigin", {3, -0.5, 2.5}, "Cand. origin"};
109107
ConfigurableAxis thnConfigAxisMatchFlag{"thnConfigAxisMatchFlag", {15, -7.5, 7.5}, "Cand. MC match flag"};
110-
ConfigurableAxis thnConfigAxisNumPvContr{"thnConfigAxisNumPvContr", {200, -0.5, 199.5}, "PV contributors"};
108+
ConfigurableAxis thnConfigAxisNumPvContr{"thnConfigAxisNumPvContr", {200, -0.5, 199.5}, "Coll. num. PV contributors"};
109+
ConfigurableAxis thnConfigAxisCent{"thnConfigAxisCent", {100, 0, 100}, "Coll. centrality precentile"};
110+
ConfigurableAxis thnConfigAxisPromptScore{"thnConfigAxisPromptScore", {100, 0, 1}, "Prompt score"};
111111
HistogramRegistry registry{"registry", {}};
112112

113113
void init(InitContext&)
@@ -119,23 +119,29 @@ struct HfTaskOmegac0ToOmegapi {
119119
LOGP(fatal, "One and only one process function should be enabled at a time.");
120120
}
121121

122-
const AxisSpec thnAxisMass{thnConfigAxisMass, "inv. mass (#Omega#pi) (GeV/#it{c}^{2})"};
122+
const AxisSpec thnAxisMass{thnConfigAxisMass, "Inv. mass (#Omega#pi) (GeV/#it{c}^{2})"};
123123
const AxisSpec thnAxisPt{thnConfigAxisPt, "#it{p}_{T} (GeV/#it{c})"};
124124
const AxisSpec thnAxisPtB{thnConfigAxisPtB, "#it{p}_{T}^{B} (GeV/#it{c})"};
125125
const AxisSpec thnAxisY{thnConfigAxisY, "y"};
126126
const AxisSpec thnAxisOrigin{thnConfigAxisOrigin, "Origin"};
127127
const AxisSpec thnAxisMatchFlag{thnConfigAxisMatchFlag, "MC match flag"};
128-
const AxisSpec thnAxisNumPvContr{thnConfigAxisNumPvContr, "PV contributors"};
128+
const AxisSpec thnAxisNumPvContr{thnConfigAxisNumPvContr, "Number of primary vtx. contributors"};
129+
const AxisSpec thnAxisCent{thnConfigAxisCent, "Centrality percentile"};
130+
const AxisSpec thnAxisCentMc{thnConfigAxisCent, "Centrality percentile (from gen. MC info)"};
129131
const AxisSpec thnAxisPromptScore{thnConfigAxisPromptScore, "BDT score prompt"};
130-
const AxisSpec thnAxisCent{thnConfigAxisCent, "Centrality"};
131132

132133
std::vector<AxisSpec> axes = {thnAxisMass, thnAxisPt, thnAxisY};
133134
std::vector<AxisSpec> axesMcGen = {thnAxisPt, thnAxisPtB, thnAxisY, thnAxisOrigin};
134135

135-
if (doprocessDataKFParticleFT0C || doprocessDataKFParticleMlFT0C || doprocessDataKFParticleFT0M || doprocessDataKFParticleMlFT0M || doprocessMcKFParticleFT0M || doprocessMcKFParticleMlFT0M) {
136+
if (doprocessDataKFParticleFT0C || doprocessDataKFParticleMlFT0C || doprocessDataKFParticleFT0M || doprocessDataKFParticleMlFT0M) {
136137
axes.push_back(thnAxisCent);
137138
axes.push_back(thnConfigAxisNumPvContr);
138-
axesMcGen.push_back(thnAxisCent);
139+
}
140+
141+
if (doprocessMcKFParticleFT0M || doprocessMcKFParticleMlFT0M) {
142+
axes.push_back(thnAxisCentMc);
143+
axes.push_back(thnConfigAxisNumPvContr);
144+
axesMcGen.push_back(thnAxisCentMc);
139145
axesMcGen.push_back(thnConfigAxisNumPvContr);
140146
}
141147

@@ -145,7 +151,7 @@ struct HfTaskOmegac0ToOmegapi {
145151

146152
if (doprocessMcKFParticleFT0M || doprocessMcKFParticleMlFT0M) {
147153
registry.add("hMcGenWithRecoColl", "Gen. #Omega_{c}^{0} from charm and beauty (associated to a reco collision)", HistType::kTHnSparseD, axesMcGen);
148-
registry.add("hNumRecoCollPerMcColl", "Number of reco collisions associated to a mc collision;Num. reco. coll. per Mc coll.;", {HistType::kTH1D, {{10, -1.5, 8.5}}});
154+
registry.add("hNumRecoCollPerMcColl", "Number of reco collisions associated to a mc collision;Num. reco. coll. per Mc coll.;", {HistType::kTH1D, {{10, -0.5, 9.5}}});
149155
registry.get<THnSparse>(HIST("hMcGenWithRecoColl"))->Sumw2();
150156
}
151157

PWGLF/TableProducer/Strangeness/v0selector.cxx

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ using namespace o2::framework::expressions;
3636
struct V0SelectorTask {
3737
Produces<aod::V0SignalFlags> v0FlagTable;
3838

39+
Configurable<bool> selectK0S{"selectK0S", true, "Check V0s for K0S cuts"};
40+
Configurable<bool> selectLambda{"selectLambda", true, "Check V0s for Lambda cuts"};
41+
Configurable<bool> selectAntiLambda{"selectAntiLambda", true, "Check V0s for AntiLambda cuts"};
42+
3943
Configurable<std::vector<float>> K0SPtBins{"K0SPtBins", {0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 10.0, 15.0, 20.0, 25.0, 30.0}, "K0S pt Vals"};
4044
Configurable<std::vector<float>> K0SRminVals{"K0SRminVals", {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}, "K0S min R values"};
4145
Configurable<std::vector<float>> K0SRmaxVals{"K0SRmaxVals", {40.0, 40.0, 40.0, 40.0, 40.0, 40.0, 40.0, 40.0, 40.0, 40.0}, "K0S max R values"};
@@ -85,7 +89,7 @@ struct V0SelectorTask {
8589
Configurable<std::vector<float>> AntiLambdaMassLowVals{"AntiLambdaMassLowVals", {1.08, 1.08, 1.08, 1.08, 1.08, 1.08, 1.08, 1.08}, "AntiLambda mass cut lower values (MeV)"};
8690
Configurable<std::vector<float>> AntiLambdaMassHighVals{"AntiLambdaMassHighVals", {1.125, 1.125, 1.125, 1.125, 1.125, 1.125, 1.125, 1.125}, "AntiLambda mass cut upper values (MeV)"};
8791

88-
Configurable<bool> randomSelection{"randomSelection", true, "Randomly select V0s"};
92+
Configurable<bool> randomSelection{"randomSelection", false, "Randomly select V0s"};
8993
Configurable<std::vector<float>> K0SFraction{"K0SFraction", {2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0}, "Fraction of K0S to randomly select"};
9094
Configurable<std::vector<float>> LambdaFraction{"LambdaFraction", {2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0}, "Fraction of Lambda to randomly select"};
9195
Configurable<std::vector<float>> AntiLambdaFraction{"AntiLambdaFraction", {2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0}, "Fraction of AntiLambda to randomly select"};
@@ -277,13 +281,16 @@ struct V0SelectorTask {
277281
{
278282
for (const auto& v0 : v0s) {
279283
uint8_t flag = 0;
280-
flag += K0SCuts(collision, v0) * aod::v0flags::FK0S;
281-
flag += LambdaCuts(collision, v0) * aod::v0flags::FLAMBDA;
282-
flag += AntiLambdaCuts(collision, v0) * aod::v0flags::FANTILAMBDA;
284+
if (selectK0S)
285+
flag += K0SCuts(collision, v0) * aod::v0flags::FK0S;
286+
if (selectLambda)
287+
flag += LambdaCuts(collision, v0) * aod::v0flags::FLAMBDA;
288+
if (selectAntiLambda)
289+
flag += AntiLambdaCuts(collision, v0) * aod::v0flags::FANTILAMBDA;
283290

284291
if (flag == 0)
285292
flag += aod::v0flags::FREJECTED;
286-
else
293+
else if (randomSelection)
287294
flag += RandomlyReject(v0, flag) * aod::v0flags::FREJECTED;
288295

289296
v0FlagTable(flag);

0 commit comments

Comments
 (0)