Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions PWGLF/Tasks/Strangeness/lambdaJetpolarization.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2309,13 +2309,13 @@
continue;
}
if (v0mcparticle.isPhysicalPrimary()) {
if (v0mcparticle.pdgCode() == 3122) {

Check failure on line 2312 in PWGLF/Tasks/Strangeness/lambdaJetpolarization.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
registryData.fill(HIST("MC/Reconstructed_MCRecoColl_INEL_Lambda"), v0mcparticle.pt(), mcCollision.centFT0M()); // Lambda
if (evFlag == 1) {
registryData.fill(HIST("MC/Reconstructed_MCRecoColl_INELgt0_Lambda"), v0mcparticle.pt(), mcCollision.centFT0M()); // Lambda
}
}
if (v0mcparticle.pdgCode() == -3122) {

Check failure on line 2318 in PWGLF/Tasks/Strangeness/lambdaJetpolarization.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
registryData.fill(HIST("MC/Reconstructed_MCRecoColl_INEL_AntiLambda"), v0mcparticle.pt(), mcCollision.centFT0M()); // AntiLambda
if (evFlag == 1) {
registryData.fill(HIST("MC/Reconstructed_MCRecoColl_INELgt0_AntiLambda"), v0mcparticle.pt(), mcCollision.centFT0M()); // AntiLambda
Expand All @@ -2325,16 +2325,16 @@
int lPDG = 0;
bool isDauLambda = false, isDauAntiLambda = false;
bool isprimary = false;
if (std::abs(v0mcparticle.pdgCode()) == 310 || std::abs(v0mcparticle.pdgCode()) == 3122) { // K0S or Lambda

Check failure on line 2328 in PWGLF/Tasks/Strangeness/lambdaJetpolarization.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
lPDG = v0mcparticle.pdgCode();
isprimary = v0mcparticle.isPhysicalPrimary();
}
for (auto& mcparticleDaughter0 : v0mcparticle.daughters_as<aod::McParticles>()) {
for (auto& mcparticleDaughter1 : v0mcparticle.daughters_as<aod::McParticles>()) {
if (mcparticleDaughter0.pdgCode() == -211 && mcparticleDaughter1.pdgCode() == 2212) { // proton + pion^{-}

Check failure on line 2334 in PWGLF/Tasks/Strangeness/lambdaJetpolarization.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
isDauLambda = true;
}
if (mcparticleDaughter0.pdgCode() == 211 && mcparticleDaughter1.pdgCode() == -2212) { // antiproton + pion^{+}

Check failure on line 2337 in PWGLF/Tasks/Strangeness/lambdaJetpolarization.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
isDauAntiLambda = true;
}
}
Expand All @@ -2342,9 +2342,9 @@
float ptMotherMC = 0.;
float pdgMother = 0.;

if (std::abs(v0mcparticle.pdgCode()) == 3122 && v0mcparticle.has_mothers()) {

Check failure on line 2345 in PWGLF/Tasks/Strangeness/lambdaJetpolarization.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
for (auto& mcparticleMother0 : v0mcparticle.mothers_as<aod::McParticles>()) {
if (std::abs(mcparticleMother0.pdgCode()) == 3312 || std::abs(mcparticleMother0.pdgCode()) == 3322) {

Check failure on line 2347 in PWGLF/Tasks/Strangeness/lambdaJetpolarization.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
ptMotherMC = mcparticleMother0.pt();
pdgMother = mcparticleMother0.pdgCode();
}
Expand All @@ -2352,14 +2352,14 @@
}

if (registryMCAcceptV0Lambda(v0, v0.posTrack_as<DauTracksMC>(), v0.negTrack_as<DauTracksMC>(), collision)) {
if (isMC && lPDG == 3122) {
if (isMC && lPDG == 3122) {

Check failure on line 2355 in PWGLF/Tasks/Strangeness/lambdaJetpolarization.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
if (isprimary == 1 && isDauLambda) {
V0Numbers = V0Numbers + 1;
registryData.fill(HIST("MC/hMassLambda_MC"), v0.mLambda());
registryData.fill(HIST("MC/hMassVsPtLambdaVsCentFT0M_MC"), v0.pt(), mcCollision.centFT0M(), v0.mLambda());
}

} else if (isMC && lPDG == -3122) {

Check failure on line 2362 in PWGLF/Tasks/Strangeness/lambdaJetpolarization.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
if (isprimary == 1 && isDauAntiLambda) {
AntiV0Numbers = AntiV0Numbers + 1;
registryData.fill(HIST("MC/hMassAntiLambda_MC"), v0.mAntiLambda());
Expand Down Expand Up @@ -2430,7 +2430,7 @@
}

if (registryMCAcceptV0Lambda(v0, v0.posTrack_as<DauTracksMC>(), v0.negTrack_as<DauTracksMC>(), collision)) {
if (isMC && lPDG == 3122) {
if (isMC && lPDG == 3122) {
if (isprimary == 1 && isDauLambda) {
const auto& pos = v0.posTrack_as<DauTracksMC>();
// const auto& neg = v0.negTrack_as<DauTracksMC>();
Expand Down Expand Up @@ -2479,7 +2479,7 @@
registryData.fill(HIST("MC/TH2FprotonCosThetaPhiInJetV0"), protonCosThetaInJetV0frame, TMath::ATan2(lambdaInJet(2, 0), lambdaInJet(1, 0)));
registryData.fill(HIST("MC/TH3DLambdaMassDeltaPhiDeltaCosTheta"), v0.mLambda(), TMath::ATan2(lambdaInJet(2, 0), lambdaInJet(1, 0)), protonCosThetaInJetV0frame);
}
} else if (isMC && lPDG == -3122) {
} else if (isMC && lPDG == -3122) {
if (isprimary == 1 && isDauAntiLambda) {
}

Expand Down Expand Up @@ -2545,11 +2545,11 @@
const auto evtReconstructedAndSelected = std::find(SelectedEvents.begin(), SelectedEvents.end(), mcCollision.globalIndex()) != SelectedEvents.end();

registry.fill(HIST("hEventSelection"), 0.5);
if (!evtReconstructedAndSelected) {
if (!evtReconstructedAndSelected) {
return;
}
registry.fill(HIST("hEventSelection"), 1.5);
if (eventPosZselection && abs(mcCollision.posZ()) > 10.f) {
registry.fill(HIST("hEventSelection"), 1.5);
if (eventPosZselection && abs(mcCollision.posZ()) > 10.f) {

Check failure on line 2552 in PWGLF/Tasks/Strangeness/lambdaJetpolarization.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
return;
}
registry.fill(HIST("hEventSelection"), 2.5);
Expand Down
Loading