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
4 changes: 4 additions & 0 deletions PWGCF/Femto/FemtoNuclei/DataModel/PionNucleiTables.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,16 @@ DECLARE_SOA_TABLE(PionHyperTable, "AOD", "PIHYPERTABLE",
pion_nuclei_tables::DcaxyPi,
pion_nuclei_tables::DcazPi,
pion_nuclei_tables::SignalTPCPi,
pion_nuclei_tables::SignalTPCNu,
pion_nuclei_tables::InnerParamTPCPi,
pion_nuclei_tables::NSigmaTPCPi,
pion_nuclei_tables::NSigmaTPCNu,
pion_nuclei_tables::Chi2TPCPi,
pion_nuclei_tables::Chi2TPCNu,
pion_nuclei_tables::MassTOFPi,
pion_nuclei_tables::PidTrkPi,
pion_nuclei_tables::ItsClusterSizePi,
pion_nuclei_tables::ItsClusterSizeNu,
pion_nuclei_tables::SharedClustersPi,
pion_nuclei_tables::IsBkgUS,
pion_nuclei_tables::IsBkgEM)
Expand Down
12 changes: 10 additions & 2 deletions PWGCF/Femto/FemtoNuclei/TableProducer/PiNucleiFemto.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@

int numOfCentBins = 40;
int numOfVertexZBins = 30;
float Vz_low = -10.0f;

Check failure on line 279 in PWGCF/Femto/FemtoNuclei/TableProducer/PiNucleiFemto.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/function-variable]

Use lowerCamelCase for names of functions and variables.
float Vz_high = 10.0f;
float Vz_step = (Vz_high - Vz_low) / numOfVertexZBins;

Expand Down Expand Up @@ -562,15 +562,15 @@
bool selectionPIDHyper(const aod::DataHypCandsWColl::iterator& V0Hyper)
{
mQaRegistry.fill(HIST("hHe3P_preselected"), V0Hyper.tpcMomHe());
float averClusSizeHe = averageClusterSizeCosl(V0Hyper.itsClusterSizesHe(), V0Hyper.etaHe3());
/*float averClusSizeHe = averageClusterSizeCosl(V0Hyper.itsClusterSizesHe(), V0Hyper.etaHe3());
if (averClusSizeHe <= 4) {

Check failure on line 566 in PWGCF/Femto/FemtoNuclei/TableProducer/PiNucleiFemto.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
return false;
}
if (V0Hyper.tpcChi2He() <= 0.5) {

Check failure on line 569 in PWGCF/Femto/FemtoNuclei/TableProducer/PiNucleiFemto.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
return false;
}
mQaRegistry.fill(HIST("hHe3P"), V0Hyper.tpcMomHe());
mQaRegistry.fill(HIST("hHe3TPCnsigma"), V0Hyper.nSigmaHe());
mQaRegistry.fill(HIST("hHe3TPCnsigma"), V0Hyper.nSigmaHe());*/

return true;
}
Expand Down Expand Up @@ -735,11 +735,15 @@
piHypercand.dcaxyPi = trackPi.dcaXY();
piHypercand.dcazPi = trackPi.dcaZ();
piHypercand.tpcSignalPi = trackPi.tpcSignal();
piHypercand.tpcSignalNu = V0Hyper.tpcSignalHe();
piHypercand.momPiTPC = trackPi.tpcInnerParam();
piHypercand.nSigmaPi = trackPi.tpcNSigmaPi();
piHypercand.nSigmaNu = V0Hyper.nSigmaHe();
piHypercand.chi2TPCPi = trackPi.tpcChi2NCl();
piHypercand.chi2TPCNu = V0Hyper.tpcChi2He();
piHypercand.pidTrkPi = trackPi.pidForTracking();
piHypercand.itsClSizePi = trackPi.itsClusterSizes();
piHypercand.itsClSizeNu = V0Hyper.itsClusterSizesHe();
piHypercand.nClsItsPi = trackPi.itsNCls();
piHypercand.sharedClustersPi = trackPi.tpcNClsShared();

Expand Down Expand Up @@ -938,12 +942,16 @@
piNucand.dcaxyPi,
piNucand.dcazPi,
piNucand.tpcSignalPi,
piNucand.tpcSignalNu,
piNucand.momPiTPC,
piNucand.nSigmaPi,
piNucand.nSigmaNu,
piNucand.chi2TPCPi,
piNucand.chi2TPCNu,
piNucand.massTOFPi,
piNucand.pidTrkPi,
piNucand.itsClSizePi,
piNucand.itsClSizeNu,
piNucand.sharedClustersPi,
piNucand.isBkgUS,
piNucand.isBkgEM);
Expand All @@ -968,7 +976,7 @@
mQaRegistry.fill(HIST("hNuPitInvMass"), piNucand.invMass);
mQaRegistry.fill(HIST("hdcaxyNu"), piNucand.dcaxyNu);
mQaRegistry.fill(HIST("hdcazNu"), piNucand.dcazNu);
mQaRegistry.fill(HIST("hdcazNu_min"), (abs(piNucand.dcazNu) - settingCutDeDCAzMin));

Check failure on line 979 in PWGCF/Femto/FemtoNuclei/TableProducer/PiNucleiFemto.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"), piNucand.nClsItsNu);
mQaRegistry.fill(HIST("hNClsPiITS"), piNucand.nClsItsPi);
mQaRegistry.fill(HIST("hisBkgEM"), piNucand.isBkgEM);
Expand All @@ -979,7 +987,7 @@
double m_BBparamsProton[6] = {-54.42066571222577, 0.2857381250239097, 1.247140602468868, 0.6297483918147729, 2.985438833884555, 0.09};

float TPCinnerParam = InnerParamTPCHad;
float expTPCSignal = o2::tpc::BetheBlochAleph((TPCinnerParam / 0.9382721), m_BBparamsProton[0], m_BBparamsProton[1], m_BBparamsProton[2], m_BBparamsProton[3], m_BBparamsProton[4]);

Check failure on line 990 in PWGCF/Femto/FemtoNuclei/TableProducer/PiNucleiFemto.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-mass]

Avoid hard-coded particle masses. Use o2::constants::physics::Mass... instead.
double resoTPC{expTPCSignal * m_BBparamsProton[5]};
return ((SignalTPCHad - expTPCSignal) / resoTPC);
}
Expand All @@ -990,7 +998,7 @@
const float kp0 = 1.22204e-02;
const float kp1 = 7.48467e-01;

double fSigmaTOFMassHad = (kp0 * TMath::Exp(kp1 * TMath::Abs(ptHad))) * fExpTOFMassHad;

Check failure on line 1001 in PWGCF/Femto/FemtoNuclei/TableProducer/PiNucleiFemto.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
double fNSigmaTOFHad = (MassTOFHad - fExpTOFMassHad) / fSigmaTOFMassHad;
return fNSigmaTOFHad;
}
Expand Down Expand Up @@ -1024,12 +1032,12 @@
{
double PrTPCnsigma = computePrTPCnsig(piNucand.momPiTPC, piNucand.tpcSignalPi);
double PrTOFnsigma = tofNSigmaCalculation(piNucand.massTOFPi, piNucand.recoPtPi());
if (abs(PrTPCnsigma) < settingCutNsigTPCPrMin)

Check failure on line 1035 in PWGCF/Femto/FemtoNuclei/TableProducer/PiNucleiFemto.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
return;
if (abs(PrTOFnsigma) < settingCutNsigTOFPrMin)

Check failure on line 1037 in PWGCF/Femto/FemtoNuclei/TableProducer/PiNucleiFemto.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
return;
float DeDCAxyMin = 0.015 + 0.0305 / TMath::Power(piNucand.recoPtNu(), 1.1);

Check failure on line 1039 in PWGCF/Femto/FemtoNuclei/TableProducer/PiNucleiFemto.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 (abs(piNucand.dcaxyNu) > DeDCAxyMin || abs(piNucand.dcazNu) > settingCutDeDCAzMin || abs(piNucand.dcaxyPi) > settingCutPiDCAxyMin || abs(piNucand.dcazPi) > settingCutPiDCAzMin)

Check failure on line 1040 in PWGCF/Femto/FemtoNuclei/TableProducer/PiNucleiFemto.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
return;
fillHistograms(piNucand);

Expand Down
Loading