Skip to content

Commit 71d4e58

Browse files
committed
Merge branch 'jan6_2025' of github.com:oussama3030/O2Physics into jan6_2025
2 parents c3f4bac + 8b5413a commit 71d4e58

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

PWGLF/DataModel/LFSigmaTables.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -589,10 +589,10 @@ DECLARE_SOA_COLUMN(LambdaPDGCode, lambdaPDGCode, int);
589589
DECLARE_SOA_COLUMN(LambdaPDGCodeMother, lambdaPDGCodeMother, int);
590590
DECLARE_SOA_COLUMN(LambdaIsCorrectlyAssoc, lambdaIsCorrectlyAssoc, bool);
591591

592-
DECLARE_SOA_DYNAMIC_COLUMN(IsSigma0, isSigma0, //! IsSigma0
593-
[](int pdgCode) -> bool { return pdgCode == PDG_t::kSigma0; }); //3212
592+
DECLARE_SOA_DYNAMIC_COLUMN(IsSigma0, isSigma0, //! IsSigma0
593+
[](int pdgCode) -> bool { return pdgCode == PDG_t::kSigma0; }); // 3212
594594

595-
DECLARE_SOA_DYNAMIC_COLUMN(IsAntiSigma0, isAntiSigma0, //! IsASigma0
595+
DECLARE_SOA_DYNAMIC_COLUMN(IsAntiSigma0, isAntiSigma0, //! IsASigma0
596596
[](int pdgCode) -> bool { return pdgCode == PDG_t::kSigma0Bar; }); //-3212
597597

598598
DECLARE_SOA_DYNAMIC_COLUMN(MCPx, mcpx, //! Sigma0 px
@@ -758,8 +758,8 @@ DECLARE_SOA_COLUMN(KShortPDGCode, kshortPDGCode, int);
758758
DECLARE_SOA_COLUMN(KShortPDGCodeMother, kshortPDGCodeMother, int);
759759
DECLARE_SOA_COLUMN(KShortIsCorrectlyAssoc, kshortIsCorrectlyAssoc, bool);
760760

761-
DECLARE_SOA_DYNAMIC_COLUMN(IsKStar, isKStar, //! IsSigma0
762-
[](int pdgCode) -> bool { return pdgCode == o2::constants::physics::Pdg::kK0Star892; }); //313
761+
DECLARE_SOA_DYNAMIC_COLUMN(IsKStar, isKStar, //! IsSigma0
762+
[](int pdgCode) -> bool { return pdgCode == o2::constants::physics::Pdg::kK0Star892; }); // 313
763763

764764
DECLARE_SOA_DYNAMIC_COLUMN(MCPx, mcpx, //! Sigma0 px
765765
[](float photonMCPx, float kshortMCPx) -> float { return photonMCPx + kshortMCPx; });
@@ -1153,10 +1153,10 @@ DECLARE_SOA_COLUMN(Photon2PDGCode, photon2PDGCode, int);
11531153
DECLARE_SOA_COLUMN(Photon2PDGCodeMother, photon2PDGCodeMother, int);
11541154
DECLARE_SOA_COLUMN(Photon2IsCorrectlyAssoc, photon2IsCorrectlyAssoc, bool);
11551155

1156-
DECLARE_SOA_DYNAMIC_COLUMN(IsPi0, isPi0, //! IsPi0
1157-
[](int pdgCode) -> bool { return pdgCode == PDG_t::kPi0; }); //111
1156+
DECLARE_SOA_DYNAMIC_COLUMN(IsPi0, isPi0, //! IsPi0
1157+
[](int pdgCode) -> bool { return pdgCode == PDG_t::kPi0; }); // 111
11581158

1159-
DECLARE_SOA_DYNAMIC_COLUMN(IsFromXi0, isFromXi0, //! Pi0 from Xi0
1159+
DECLARE_SOA_DYNAMIC_COLUMN(IsFromXi0, isFromXi0, //! Pi0 from Xi0
11601160
[](int pdgCodeMother) -> bool { return pdgCodeMother == o2::constants::physics::Pdg::kXi0; }); // 3322
11611161

11621162
DECLARE_SOA_DYNAMIC_COLUMN(MCPx, mcpx, //! Pi0 MC px

PWGLF/TableProducer/Strangeness/sigma0builder.cxx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ struct sigma0builder {
809809

810810
// MC QA histograms
811811
// Parenthood check for sigma0-like candidate
812-
if (MCParticle_v01.pdgCode() == PDG_t::kGamma&& TMath::Abs(MCParticle_v02.pdgCode()) == PDG_t::kLambda0) {
812+
if (MCParticle_v01.pdgCode() == PDG_t::kGamma && TMath::Abs(MCParticle_v02.pdgCode()) == PDG_t::kLambda0) {
813813
for (const auto& mother1 : MCMothersList_v01) { // Photon mothers
814814
histos.fill(HIST("MCQA/h2dPhotonNMothersVsPDG"), MCMothersList_v01.size(), mother1.pdgCode());
815815
histos.fill(HIST("MCQA/h2dPhotonNMothersVsMCProcess"), MCMothersList_v01.size(), mother1.getProcess());
@@ -1189,13 +1189,13 @@ struct sigma0builder {
11891189

11901190
// Fill with properties
11911191
GenInfo.IsPrimary = mcParticle.isPhysicalPrimary();
1192-
GenInfo.IsV0Lambda = mcParticle.pdgCode() == PDG_t::kLambda0; //3122
1193-
GenInfo.IsV0AntiLambda = mcParticle.pdgCode() == PDG_t::kLambda0Bar; //-3122
1194-
GenInfo.IsV0KShort = mcParticle.pdgCode() == PDG_t::kK0Short; //310
1195-
GenInfo.IsPi0 = mcParticle.pdgCode() == PDG_t::kPi0; //111;
1196-
GenInfo.IsSigma0 = mcParticle.pdgCode() == PDG_t::kSigma0; // PDG_t::kSigma0
1197-
GenInfo.IsAntiSigma0 = mcParticle.pdgCode() == PDG_t::kSigma0Bar; //-3212
1198-
GenInfo.IsKStar = mcParticle.pdgCode() == o2::constants::physics::Pdg::kK0Star892; //313;
1192+
GenInfo.IsV0Lambda = mcParticle.pdgCode() == PDG_t::kLambda0; // 3122
1193+
GenInfo.IsV0AntiLambda = mcParticle.pdgCode() == PDG_t::kLambda0Bar; //-3122
1194+
GenInfo.IsV0KShort = mcParticle.pdgCode() == PDG_t::kK0Short; // 310
1195+
GenInfo.IsPi0 = mcParticle.pdgCode() == PDG_t::kPi0; // 111;
1196+
GenInfo.IsSigma0 = mcParticle.pdgCode() == PDG_t::kSigma0; // PDG_t::kSigma0
1197+
GenInfo.IsAntiSigma0 = mcParticle.pdgCode() == PDG_t::kSigma0Bar; //-3212
1198+
GenInfo.IsKStar = mcParticle.pdgCode() == o2::constants::physics::Pdg::kK0Star892; // 313;
11991199
GenInfo.IsProducedByGenerator = mcParticle.producedByGenerator();
12001200
GenInfo.MCProcess = mcParticle.getProcess();
12011201
GenInfo.MCPt = mcParticle.pt();
@@ -2199,7 +2199,7 @@ struct sigma0builder {
21992199
auto v0MC = v0.template v0MCCore_as<soa::Join<aod::V0MCCores, aod::V0MCCollRefs>>();
22002200

22012201
// True Photon
2202-
if (v0MC.pdgCode() == PDG_t::kGamma&& fPassPhotonSel) {
2202+
if (v0MC.pdgCode() == PDG_t::kGamma && fPassPhotonSel) {
22032203
histos.fill(HIST("PhotonLambdaQA/h3dTruePhotonMass"), centrality, v0MC.ptMC(), v0.mGamma());
22042204
if (TMath::Abs(v0MC.pdgCodeMother()) == PDG_t::kSigma0) { // If from sigma0 or ASigma0
22052205
histos.fill(HIST("PhotonLambdaQA/h2dTrueSigma0PhotonMass"), v0MC.ptMC(), v0.mGamma());

0 commit comments

Comments
 (0)