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
5 changes: 2 additions & 3 deletions PWGLF/Tasks/Resonances/k892analysispbpb.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
#include <TH1F.h>
#include <TDirectory.h>
#include <THn.h>
#include <TLorentzVector.h>

Check failure on line 19 in PWGLF/Tasks/Resonances/k892analysispbpb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/lorentz-vector]

Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.
#include <TMath.h>
#include <TObjArray.h>
#include <TFile.h>
#include <TH2F.h>
#include <TRandom3.h>
#include <TLorentzVector.h>

Check failure on line 25 in PWGLF/Tasks/Resonances/k892analysispbpb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/lorentz-vector]

Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.
#include <TPDGCode.h>
#include <Math/Vector4D.h>
#include <cmath>
Expand Down Expand Up @@ -484,7 +484,7 @@
multiplicity = collision.centRun2V0M();

auto oldindex = -999;
TLorentzVector lDecayDaughter1, lDecayDaughter2, lResonance, ldaughterRot, lResonanceRot;

Check failure on line 487 in PWGLF/Tasks/Resonances/k892analysispbpb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/lorentz-vector]

Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.
for (const auto& [trk1, trk2] : combinations(CombinationsFullIndexPolicy(dTracks1, dTracks2))) {
// Full index policy is needed to consider all possible combinations
if (trk1.index() == trk2.index())
Expand Down Expand Up @@ -662,7 +662,7 @@

// MC
if constexpr (IsMC && !IsRot) {

if (!trk1.has_mcParticle() || !trk2.has_mcParticle())
continue;

Expand All @@ -674,7 +674,7 @@
if (cfgIsPhysicalPrimary && (!mctrack1.isPhysicalPrimary() || !mctrack2.isPhysicalPrimary()))
continue;

if (track1PDG != 211 || track2PDG != 321) {

Check failure on line 677 in PWGLF/Tasks/Resonances/k892analysispbpb.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 (track1Sign < 0) {
if constexpr (IsMix)
Expand Down Expand Up @@ -716,14 +716,14 @@
if (mothertrack1.globalIndex() != mothertrack2.globalIndex())
continue;

if (std::abs(mothertrack1.pdgCode()) == 1000822080) // Pb PDG code

Check failure on line 719 in PWGLF/Tasks/Resonances/k892analysispbpb.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.
continue;

pdgCodeMother = mothertrack1.pdgCode();
ptMother = mothertrack1.pt();
isSameMother = true;

if (std::abs(mothertrack1.pdgCode()) != 313)

Check failure on line 726 in PWGLF/Tasks/Resonances/k892analysispbpb.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.
continue;

if (avoidsplitrackMC && oldindex == mothertrack1.globalIndex()) {
Expand Down Expand Up @@ -1077,7 +1077,7 @@

// Generated MC
for (const auto& mcPart : mcParticles) {
if (std::abs(mcPart.y()) >= 0.5 || std::abs(mcPart.pdgCode()) != 313)

Check failure on line 1080 in PWGLF/Tasks/Resonances/k892analysispbpb.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.
continue;

// signal loss estimation
Expand Down Expand Up @@ -1110,7 +1110,7 @@
}
for (const auto& RecCollision : recCollisions) {
histos.fill(HIST("QAevent/hMCrecCollSels"), 3);

if (!myEventSelections(RecCollision))
continue;

Expand All @@ -1120,13 +1120,12 @@

auto tracks = RecTracks.sliceBy(trackPerCollision, RecCollision.globalIndex());


// <IsMC, IsMix, IsRot, IsRun2>
fillHistograms<true, false, false, false>(RecCollision, tracks, tracks);

// Generated MC
for (const auto& mcPart : mcParticles) {
if (std::abs(mcPart.y()) >= 0.5 || std::abs(mcPart.pdgCode()) != 313)

Check failure on line 1128 in PWGLF/Tasks/Resonances/k892analysispbpb.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.
continue;

auto kDaughters = mcPart.daughters_as<aod::McParticles>();
Expand All @@ -1134,7 +1133,7 @@
continue;
}

TLorentzVector lDecayDaughter1, lDecayDaughter2, lResonance;

Check failure on line 1136 in PWGLF/Tasks/Resonances/k892analysispbpb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/lorentz-vector]

Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.

auto daughtp = false;
auto daughtk = false;
Expand Down Expand Up @@ -1209,7 +1208,7 @@
continue;
}

TLorentzVector lDecayDaughter1, lDecayDaughter2, lResonance;

Check failure on line 1211 in PWGLF/Tasks/Resonances/k892analysispbpb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/lorentz-vector]

Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.

auto daughtp = false;
auto daughtk = false;
Expand Down
Loading