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
32 changes: 16 additions & 16 deletions PWGCF/Femto/FemtoNuclei/TableProducer/HadNucleiFemto.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
kAll
};

float MassHad = 0;
float MassHad = 0;

} // namespace

Expand Down Expand Up @@ -494,7 +494,7 @@
template <typename Ttrack>
bool selectionPIDKaon(const Ttrack& candidate)
{
if (abs(candidate.dcaXY()) > settingCutHadDCAxyMin || abs(candidate.dcaZ()) > settingCutHadDCAzMin)

Check failure on line 497 in PWGCF/Femto/FemtoNuclei/TableProducer/HadNucleiFemto.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

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

auto tpcNSigmaKa = candidate.tpcNSigmaKa();
Expand Down Expand Up @@ -530,7 +530,7 @@
{
if (candidate.tpcChi2NCl() > settingCutChi2tpcHighPion || candidate.tpcChi2NCl() < settingCutChi2tpcLowPion || candidate.itsChi2NCl() > settingCutChi2NClITSPion)
return false;
if (abs(candidate.dcaXY()) > settingCutHadDCAxyMin || abs(candidate.dcaZ()) > settingCutHadDCAzMin)

Check failure on line 533 in PWGCF/Femto/FemtoNuclei/TableProducer/HadNucleiFemto.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

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

auto tpcNSigmaPi = candidate.tpcNSigmaPi();
Expand All @@ -550,9 +550,9 @@
auto combNsigma = std::sqrt(tofNSigmaPi * tofNSigmaPi + tpcNSigmaPi * tpcNSigmaPi);

mQaRegistry.fill(HIST("h2NsigmaHadTOF_preselection"), candidate.pt(), tofNSigmaPi);
//if (combNsigma > settingCutNsigmaTOFTPCHad) {
// return false;
//}
// if (combNsigma > settingCutNsigmaTOFTPCHad) {
// return false;
// }
if (std::abs(tofNSigmaPi) > settingCutNsigmaTOFHad) {
return false;
}
Expand All @@ -577,16 +577,16 @@
bool selectionPIDHadron(const Ttrack& candidate)
{
bool PID;
if (settingHadPDGCode == PDG_t::kPiPlus) {
PID = selectionPIDPion(candidate);
MassHad = o2::constants::physics::MassPiPlus;
} else if (settingHadPDGCode == PDG_t::kKPlus) {
PID = selectionPIDKaon(candidate);
MassHad = o2::constants::physics::MassKPlus;
} else {
LOG(info) << "invalid PDG code";
}
return PID;
if (settingHadPDGCode == PDG_t::kPiPlus) {
PID = selectionPIDPion(candidate);
MassHad = o2::constants::physics::MassPiPlus;
} else if (settingHadPDGCode == PDG_t::kKPlus) {
PID = selectionPIDKaon(candidate);
MassHad = o2::constants::physics::MassKPlus;
} else {
LOG(info) << "invalid PDG code";
}
return PID;
}

template <typename Ttrack>
Expand All @@ -604,7 +604,7 @@
mQaRegistry.fill(HIST("h2dEdx"), candidate.sign() * tpcInnerParam, candidate.tpcSignal());

float DeDCAxyMin = 0.015 + 0.0305 / TMath::Power(candidate.pt(), 1.1);
if (abs(candidate.dcaXY()) > DeDCAxyMin || abs(candidate.dcaXY()) > settingCutDeDCAzMin)

Check failure on line 607 in PWGCF/Femto/FemtoNuclei/TableProducer/HadNucleiFemto.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

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

if (std::abs(tpcInnerParam) < settingCutPinMinDe) {
Expand Down Expand Up @@ -738,7 +738,7 @@
hadNucand.momNu = std::array{trackDe.px(), trackDe.py(), trackDe.pz()};
hadNucand.momHad = std::array{trackHad.px(), trackHad.py(), trackHad.pz()};
float invMass = 0;
invMass = RecoDecay::m(std::array<std::array<float, 3>, 2>{hadNucand.momNu,hadNucand.momHad}, std::array<float, 2>{static_cast<float>(o2::constants::physics::MassDeuteron),MassHad});
invMass = RecoDecay::m(std::array<std::array<float, 3>, 2>{hadNucand.momNu, hadNucand.momHad}, std::array<float, 2>{static_cast<float>(o2::constants::physics::MassDeuteron), MassHad});
if (settingCutInvMass > 0 && invMass > settingCutInvMass) {
mQaRegistry.fill(HIST("hSkipReasons"), 3);
return false;
Expand Down Expand Up @@ -835,7 +835,7 @@
hadHypercand.momHad = std::array{trackHad.px(), trackHad.py(), trackHad.pz()};

float invMass = 0;
invMass = RecoDecay::m(std::array<std::array<float, 3>, 2>{hadHypercand.momNu,hadHypercand.momHad}, std::array<float, 2>{static_cast<float>(o2::constants::physics::MassHelium3),MassHad});
invMass = RecoDecay::m(std::array<std::array<float, 3>, 2>{hadHypercand.momNu, hadHypercand.momHad}, std::array<float, 2>{static_cast<float>(o2::constants::physics::MassHelium3), MassHad});
if (settingCutInvMass > 0 && invMass > settingCutInvMass) {
return false;
}
Expand Down Expand Up @@ -1076,7 +1076,7 @@
mQaRegistry.fill(HIST("hNuHadtInvMass"), hadNucand.invMass);
mQaRegistry.fill(HIST("hdcaxyNu"), hadNucand.dcaxyNu);
mQaRegistry.fill(HIST("hdcazNu"), hadNucand.dcazNu);
mQaRegistry.fill(HIST("hdcazNu_min"), (abs(hadNucand.dcazNu) - settingCutDeDCAzMin));

Check failure on line 1079 in PWGCF/Femto/FemtoNuclei/TableProducer/HadNucleiFemto.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
mQaRegistry.fill(HIST("hNClsNuITS"), hadNucand.nClsItsNu);
mQaRegistry.fill(HIST("hNClsHadITS"), hadNucand.nClsItsHad);
mQaRegistry.fill(HIST("hisBkgEM"), hadNucand.isBkgEM);
Expand Down
Loading