Skip to content
Merged
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
6 changes: 3 additions & 3 deletions PWGUD/Tasks/upcQuarkoniaCentralBarrel.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@

// dca XY to PV
if (trackSelections.applyDCAptdepsel) { // apply pt dep. selection on DCAxy
float dcaXYPtCut = 0.0105f + 0.0350f / pow(track.pt(), 1.1f);

Check warning on line 274 in PWGUD/Tasks/upcQuarkoniaCentralBarrel.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
if (std::fabs(track.dcaXY()) > dcaXYPtCut)
return false;
} else {
Expand Down Expand Up @@ -329,7 +329,7 @@
bool checkMCAssociation(TTrack track, TTrackMC trackMC)
// MC association (if asked)
{
if (track.sign() * trackMC.pdgCode() != 2212)

Check warning on line 332 in PWGUD/Tasks/upcQuarkoniaCentralBarrel.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid using hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
return false;
if (!trackMC.isPhysicalPrimary())
return false;
Expand Down Expand Up @@ -414,9 +414,9 @@
// __________________________________________
// main analysis
if (doMCAssociation) {
if constexpr (requires { proton.template udMcParticle(); }) { // check if MC information is available
auto protonMC = fullTrackMCs.iteratorAt(proton.template udMcParticle().globalIndex());
auto antiProtonMC = fullTrackMCs.iteratorAt(antiProton.template udMcParticle().globalIndex());
if constexpr (requires { proton.udMcParticle(); }) { // check if MC information is available
auto protonMC = fullTrackMCs.iteratorAt(proton.udMcParticle().globalIndex());
auto antiProtonMC = fullTrackMCs.iteratorAt(antiProton.udMcParticle().globalIndex());

if (!protonMC.has_mothers())
return;
Expand All @@ -438,28 +438,28 @@
if (std::fabs(rapiditymc) > rapidityCut)
continue;

if (protonMother.pdgCode() == 441 && protonMother.pdgCode() == antiProtonMother.pdgCode()) { // EtaC(1S)

Check warning on line 441 in PWGUD/Tasks/upcQuarkoniaCentralBarrel.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid using hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
histos.fill(HIST("PPbar/h2dInvMassTrueEtaC1S"), ptmc, invmass);
}
if (protonMother.pdgCode() == 443 && protonMother.pdgCode() == antiProtonMother.pdgCode()) { // J/psi

Check warning on line 444 in PWGUD/Tasks/upcQuarkoniaCentralBarrel.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid using hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
histos.fill(HIST("PPbar/h2dInvMassTrueJPsi"), ptmc, invmass);
}
if (protonMother.pdgCode() == 10441 && protonMother.pdgCode() == antiProtonMother.pdgCode()) { // ChiC0

Check warning on line 447 in PWGUD/Tasks/upcQuarkoniaCentralBarrel.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid using hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
histos.fill(HIST("PPbar/h2dInvMassTrueChiC0"), ptmc, invmass);
}
if (protonMother.pdgCode() == 20443 && protonMother.pdgCode() == antiProtonMother.pdgCode()) { // ChiC1

Check warning on line 450 in PWGUD/Tasks/upcQuarkoniaCentralBarrel.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid using hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
histos.fill(HIST("PPbar/h2dInvMassTrueChiC1"), ptmc, invmass);
}
if (protonMother.pdgCode() == 10443 && protonMother.pdgCode() == antiProtonMother.pdgCode()) { // hC

Check warning on line 453 in PWGUD/Tasks/upcQuarkoniaCentralBarrel.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid using hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
histos.fill(HIST("PPbar/h2dInvMassTrueHC"), ptmc, invmass);
}
if (protonMother.pdgCode() == 445 && protonMother.pdgCode() == antiProtonMother.pdgCode()) { // ChiC2

Check warning on line 456 in PWGUD/Tasks/upcQuarkoniaCentralBarrel.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid using hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
histos.fill(HIST("PPbar/h2dInvMassTrueChiC2"), ptmc, invmass);
}
if (protonMother.pdgCode() == 100441 && protonMother.pdgCode() == antiProtonMother.pdgCode()) { // EtaC(2S)

Check warning on line 459 in PWGUD/Tasks/upcQuarkoniaCentralBarrel.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid using hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
histos.fill(HIST("PPbar/h2dInvMassTrueEtaC2S"), ptmc, invmass);
}
if (protonMother.pdgCode() == 100443 && protonMother.pdgCode() == antiProtonMother.pdgCode()) { // Psi(2S)

Check warning on line 462 in PWGUD/Tasks/upcQuarkoniaCentralBarrel.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid using hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
histos.fill(HIST("PPbar/h2dInvMassTruePsi2S"), ptmc, invmass);
}
}
Expand Down
Loading