Skip to content
Merged
Show file tree
Hide file tree
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
9 changes: 8 additions & 1 deletion PWGLF/TableProducer/Resonances/f1protonreducedtable.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <TDatabasePDG.h> // FIXME
#include <TPDGCode.h> // FIXME

#include <iostream>

Check failure on line 25 in PWGLF/TableProducer/Resonances/f1protonreducedtable.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[include-iostream]

Do not include iostream. Use O2 logging instead.
#include <iterator>
#include <string>
#include <vector>
Expand Down Expand Up @@ -338,7 +338,7 @@
template <typename Collision, typename V0>
bool SelectionV0(Collision const& collision, V0 const& candidate)
{
if (fabs(candidate.dcav0topv()) > cMaxV0DCA) {

Check failure on line 341 in PWGLF/TableProducer/Resonances/f1protonreducedtable.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
return false;
}

Expand Down Expand Up @@ -372,7 +372,7 @@
return false;
}
}
if (fabs(CtauK0s) > cMaxV0LifeTime || candidate.mK0Short() < lowmasscutks0 || candidate.mK0Short() > highmasscutks0) {

Check failure on line 375 in PWGLF/TableProducer/Resonances/f1protonreducedtable.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
return false;
}
return true;
Expand Down Expand Up @@ -452,25 +452,25 @@
for (int i = 0; i < 360 / 0.1; ++i) {
float sum = 0., pt = 0.;
float phiparm = (TMath::Pi() * i * 0.1) / 180.;
float nx = TMath::Cos(phiparm);

Check failure on line 455 in PWGLF/TableProducer/Resonances/f1protonreducedtable.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
float ny = TMath::Sin(phiparm);

Check failure on line 456 in PWGLF/TableProducer/Resonances/f1protonreducedtable.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
for (auto const& trk : tracks) {
pt = trk.pt();
if (spdef == 0) {
pt = 1.;
}
float phi = trk.phi();
float px = pt * TMath::Cos(phi);

Check failure on line 463 in PWGLF/TableProducer/Resonances/f1protonreducedtable.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
float py = pt * TMath::Sin(phi);

Check failure on line 464 in PWGLF/TableProducer/Resonances/f1protonreducedtable.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
// sum += pt * abs(sin(phiparm - phi));
sum += TMath::Abs(px * ny - py * nx);

Check failure on line 466 in PWGLF/TableProducer/Resonances/f1protonreducedtable.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
}
float sph = TMath::Power((sum / ptSum), 2);

Check failure on line 468 in PWGLF/TableProducer/Resonances/f1protonreducedtable.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
if (sph < tempSph)
tempSph = sph;
}

return TMath::Power(TMath::Pi() / 2., 2) * tempSph;

Check failure on line 473 in PWGLF/TableProducer/Resonances/f1protonreducedtable.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
}

std::vector<double> BBProton, BBAntiproton, BBPion, BBAntipion, BBKaon, BBAntikaon;
Expand Down Expand Up @@ -751,10 +751,17 @@
continue;

// check if the pair is unlike or wrongsign
auto pairsign = 1;
auto pairsign = 100;
if (PionCharge.at(i1) * KaonCharge.at(i2) > 0) {
qaRegistry.fill(HIST("hInvMassf1Like"), F1Vector.M(), F1Vector.Pt());
pairsign = -1;
} else if (PionCharge.at(i1) * KaonCharge.at(i2) < 0) {
if (KaonCharge.at(i2) > 0) {
pairsign = 1;
}
if (KaonCharge.at(i2) < 0) {
pairsign = 2;
}
}
ROOT::Math::PtEtaPhiMVector temp(F1Vector.Pt(), F1Vector.Eta(), F1Vector.Phi(), F1Vector.M());
f1resonance.push_back(temp);
Expand Down
Loading
Loading