Skip to content

Commit 16b6402

Browse files
authored
Merge branch 'master' into master
2 parents 05cbcfa + 8a65ceb commit 16b6402

File tree

57 files changed

+6788
-4208
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+6788
-4208
lines changed

.github/workflows/mega-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949

5050
# Upload MegaLinter artifacts
5151
- name: Archive production artifacts
52-
uses: actions/upload-artifact@v6
52+
uses: actions/upload-artifact@v7
5353
if: success() || failure()
5454
with:
5555
name: MegaLinter reports

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ repos:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
99
- repo: https://github.com/pre-commit/mirrors-clang-format
10-
rev: v21.1.8 # clang-format version
10+
rev: v20.1.3 # clang-format version (keep synced with https://github.com/alisw/ali-bot/blob/master/.github/workflows/c++-code-formatting.yml)
1111
hooks:
1212
- id: clang-format
1313
- repo: https://github.com/cpplint/cpplint

PWGCF/EbyEFluctuations/Tasks/radialFlowDecorr.cxx

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

PWGCF/Femto/Core/partitions.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@
1717
#define PWGCF_FEMTO_CORE_PARTITIONS_H_
1818

1919
// collsion selection
20-
#define MAKE_COLLISION_FILTER(selection) \
21-
(o2::aod::femtocollisions::posZ >= selection.vtxZMin && o2::aod::femtocollisions::posZ <= selection.vtxZMax) && \
22-
(o2::aod::femtocollisions::mult >= selection.multMin && o2::aod::femtocollisions::mult <= selection.multMax) && \
23-
(o2::aod::femtocollisions::cent >= selection.centMin && o2::aod::femtocollisions::cent <= selection.centMax) && \
24-
(o2::aod::femtocollisions::magField >= static_cast<int8_t>(selection.magFieldMin) && o2::aod::femtocollisions::magField <= static_cast<int8_t>(selection.magFieldMax)) && \
20+
#define MAKE_COLLISION_FILTER(selection) \
21+
(o2::aod::femtocollisions::posZ >= selection.vtxZMin && o2::aod::femtocollisions::posZ <= selection.vtxZMax) && \
22+
(o2::aod::femtocollisions::mult >= selection.multMin && o2::aod::femtocollisions::mult <= selection.multMax) && \
23+
(o2::aod::femtocollisions::cent >= selection.centMin && o2::aod::femtocollisions::cent <= selection.centMax) && \
24+
(o2::aod::femtocollisions::magField >= o2::framework::expressions::as<int8_t>(selection.magFieldMin) && \
25+
o2::aod::femtocollisions::magField <= o2::framework::expressions::as<int8_t>(selection.magFieldMax)) && \
2526
ncheckbit(o2::aod::femtocollisions::mask, selection.collisionMask)
2627

2728
// macro for track momentum, i.e. ||q|*pT/q| * cosh(eta)

PWGCF/FemtoUniverse/TableProducer/femtoUniverseProducerTask.cxx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -881,12 +881,14 @@ struct FemtoUniverseProducerTask {
881881
template <typename ParticleType>
882882
int32_t getMotherPDG(ParticleType particle)
883883
{
884-
auto motherparticlesMC = particle.template mothers_as<aod::McParticles>();
885-
if (!motherparticlesMC.empty()) {
884+
if (particle.isPhysicalPrimary()) {
885+
return 0;
886+
} else if (particle.has_mothers()) {
887+
auto motherparticlesMC = particle.template mothers_as<aod::McParticles>();
886888
auto motherparticleMC = motherparticlesMC.front();
887-
return particle.isPhysicalPrimary() ? 0 : motherparticleMC.pdgCode();
889+
return motherparticleMC.pdgCode();
888890
} else {
889-
return 9999;
891+
return 999;
890892
}
891893
}
892894

@@ -926,7 +928,7 @@ struct FemtoUniverseProducerTask {
926928
outputPartsMCLabels(outputPartsMC.lastIndex());
927929
} else {
928930
outputPartsMCLabels(-1);
929-
outputDebugPartsMC(9999);
931+
outputDebugPartsMC(-999);
930932
}
931933
}
932934

@@ -2169,7 +2171,7 @@ struct FemtoUniverseProducerTask {
21692171
// aligned, so that they can be joined in the task.
21702172
if constexpr (transientLabels) {
21712173
outputPartsMCLabels(-1);
2172-
outputDebugPartsMC(9999);
2174+
outputDebugPartsMC(-999);
21732175
}
21742176
}
21752177
if constexpr (resolveDaughs) {
@@ -2214,7 +2216,7 @@ struct FemtoUniverseProducerTask {
22142216
// aligned, so that they can be joined in the task.
22152217
if constexpr (transientLabels) {
22162218
outputPartsMCLabels(-1);
2217-
outputDebugPartsMC(9999);
2219+
outputDebugPartsMC(-999);
22182220
}
22192221
}
22202222
}

PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackV0Extended.cxx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ struct FemtoUniversePairTaskTrackV0Extended {
163163
Configurable<int> confEtaBins{"confEtaBins", 29, "Number of eta bins in deta dphi"};
164164
ConfigurableAxis confmTBins3D{"confmTBins3D", {VARIABLE_WIDTH, 1.02f, 1.14f, 1.20f, 1.26f, 1.38f, 1.56f, 1.86f, 4.50f}, "mT Binning for the 3Dimensional plot: k* vs multiplicity vs mT (set <<confUse3D>> to true in order to use)"};
165165
ConfigurableAxis confMultBins3D{"confMultBins3D", {VARIABLE_WIDTH, 0.0f, 20.0f, 30.0f, 40.0f, 99999.0f}, "multiplicity Binning for the 3Dimensional plot: k* vs multiplicity vs mT (set <<confUse3D>> to true in order to use)"};
166+
ConfigurableAxis confMotherPDGBins{"confMotherPDGBins", {8001, -4000, 4000}, "Binning for the mothers' PDG code in pair fractions histogram"};
166167

167168
struct : o2::framework::ConfigurableGroup {
168169
Configurable<bool> confIsCPR{"confIsCPR", true, "Close Pair Rejection"};
@@ -330,7 +331,7 @@ struct FemtoUniversePairTaskTrackV0Extended {
330331
registryMCtruth.add("minus/MCtruthPrPt", "MC truth protons;#it{p}_{T} (GeV/c)", {HistType::kTH1F, {{500, 0, 5}}});
331332

332333
if (doprocessPairFractionsMCTruthV0 || doprocessPairFractionsMCTruth) {
333-
registryMCtruth.add("mothersTruth/motherParticle", "pair fractions;part1 mother PDG;part2 mother PDG", {HistType::kTH2F, {{8001, -4000, 4000}, {8001, -4000, 4000}}});
334+
registryMCtruth.add("mothersTruth/motherParticle", "pair fractions;part1 mother PDG;part2 mother PDG", {HistType::kTH2F, {confMotherPDGBins, confMotherPDGBins}});
334335
}
335336

336337
// MC reco
@@ -356,8 +357,8 @@ struct FemtoUniversePairTaskTrackV0Extended {
356357
registryMCreco.add("minus/MCrecoPrPt", "MC reco protons;#it{p}_{T} (GeV/c)", {HistType::kTH1F, {{500, 0, 5}}});
357358

358359
if (doprocessPairFractions || doprocessPairFractionsV0) {
359-
registryMCreco.add("mothersReco/motherParticle", "pair fractions;part1 mother PDG;part2 mother PDG", {HistType::kTH2F, {{8001, -4000, 4000}, {8001, -4000, 4000}}});
360-
registryMCreco.add("mothersReco/motherParticlePDGCheck", "pair fractions;part1 mother PDG;part2 mother PDG", {HistType::kTH2F, {{8001, -4000, 4000}, {8001, -4000, 4000}}});
360+
registryMCreco.add("mothersReco/motherParticle", "pair fractions;part1 mother PDG;part2 mother PDG", {HistType::kTH2F, {confMotherPDGBins, confMotherPDGBins}});
361+
registryMCreco.add("mothersReco/motherParticlePDGCheck", "pair fractions;part1 mother PDG;part2 mother PDG", {HistType::kTH2F, {confMotherPDGBins, confMotherPDGBins}});
361362
}
362363
sameEventCont.init(&resultRegistry, confkstarBins, confMultBins, confkTBins, confmTBins, confMultBins3D, confmTBins3D, confEtaBins, confPhiBins, confIsMC, confUse3D);
363364
sameEventCont.setPDGCodes(ConfTrkSelection.confTrkPDGCodePartOne, ConfV0Selection.confV0PDGCodePartTwo);
@@ -1464,6 +1465,7 @@ struct FemtoUniversePairTaskTrackV0Extended {
14641465
continue;
14651466
if ((ConfV0Selection.confV0Type2 == 0 && mcParticle2.pdgMCTruth() != kLambda0) || (ConfV0Selection.confV0Type2 == 1 && mcParticle2.pdgMCTruth() != kLambda0Bar))
14661467
continue;
1468+
14671469
registryMCreco.fill(HIST("mothersReco/motherParticlePDGCheck"), p1.motherPDG(), p2.motherPDG());
14681470
}
14691471
};

PWGCF/FemtoWorld/Tasks/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,8 @@ o2physics_add_dpl_workflow(femto-world-efficiency-task-de
5353
SOURCES femtoWorldEfficiencyTaskDe.cxx
5454
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
5555
COMPONENT_NAME Analysis)
56+
57+
o2physics_add_dpl_workflow(femto-pair-lambda-antilambda
58+
SOURCES femtoPairLambdaAntilambda.cxx
59+
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
60+
COMPONENT_NAME Analysis)

0 commit comments

Comments
 (0)