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 PWGLF/Tasks/Strangeness/derivedupcanalysis.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
template <int partID>
void addTopoHistograms(HistogramRegistry& histos)
{
const bool isCascade = (partID > 2.5) ? true : false;

Check warning on line 301 in PWGLF/Tasks/Strangeness/derivedupcanalysis.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.
if (isCascade) {
histos.add(Form("%s/hCascCosPA", kParticlenames[partID].data()), "hCascCosPA", kTH2F, {axisPtCoarse, {100, 0.9f, 1.0f}});
histos.add(Form("%s/hDCACascDaughters", kParticlenames[partID].data()), "hDCACascDaughters", kTH2F, {axisPtCoarse, {44, 0.0f, 2.2f}});
Expand Down Expand Up @@ -330,7 +330,7 @@
template <int partID>
void addTPCQAHistograms(HistogramRegistry& histos)
{
const bool isCascade = (partID > 2.5) ? true : false;

Check warning on line 333 in PWGLF/Tasks/Strangeness/derivedupcanalysis.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.
histos.add(Form("%s/h3dPosNsigmaTPC", kParticlenames[partID].data()), "h3dPosNsigmaTPC", kTH3F, {axisDetectors.axisFT0ampl, axisPtCoarse, axisNsigmaTPC});
histos.add(Form("%s/h3dNegNsigmaTPC", kParticlenames[partID].data()), "h3dNegNsigmaTPC", kTH3F, {axisDetectors.axisFT0ampl, axisPtCoarse, axisNsigmaTPC});
histos.add(Form("%s/h3dPosTPCsignal", kParticlenames[partID].data()), "h3dPosTPCsignal", kTH3F, {axisDetectors.axisFT0ampl, axisPtCoarse, axisTPCsignal});
Expand Down Expand Up @@ -361,7 +361,7 @@
template <int partID>
void addTOFQAHistograms(HistogramRegistry& histos)
{
const bool isCascade = (partID > 2.5) ? true : false;

Check warning on line 364 in PWGLF/Tasks/Strangeness/derivedupcanalysis.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.
histos.add(Form("%s/h3dPosTOFdeltaT", kParticlenames[partID].data()), "h3dPosTOFdeltaT", kTH3F, {axisDetectors.axisFT0ampl, axisPtCoarse, axisTOFdeltaT});
histos.add(Form("%s/h3dNegTOFdeltaT", kParticlenames[partID].data()), "h3dNegTOFdeltaT", kTH3F, {axisDetectors.axisFT0ampl, axisPtCoarse, axisTOFdeltaT});
histos.add(Form("%s/h3dPosTOFdeltaTvsTrackPtot", kParticlenames[partID].data()), "h3dPosTOFdeltaTvsTrackPtot", kTH3F, {axisDetectors.axisFT0ampl, axisPtCoarse, axisTOFdeltaT});
Expand All @@ -378,7 +378,7 @@
template <int partID>
void addKinematicQAHistograms(HistogramRegistry& histos)
{
const bool isCascade = (partID > 2.5) ? true : false;

Check warning on line 381 in PWGLF/Tasks/Strangeness/derivedupcanalysis.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.
histos.add(Form("%s/h3dPosEtaPt", kParticlenames[partID].data()), "h3dPosEtaPt", kTH3F, {axisPtCoarse, axisEta, axisSelGap});
histos.add(Form("%s/h3dNegEtaPt", kParticlenames[partID].data()), "h3dNegEtaPt", kTH3F, {axisPtCoarse, axisEta, axisSelGap});
histos.add(Form("%s/h3dRapPt", kParticlenames[partID].data()), "h3dRapPt", kTH3F, {axisPtCoarse, axisRap, axisSelGap});
Expand All @@ -390,7 +390,7 @@
template <int partID>
void addDetectorPropHistograms(HistogramRegistry& histos)
{
const bool isCascade = (partID > 2.5) ? true : false;

Check warning on line 393 in PWGLF/Tasks/Strangeness/derivedupcanalysis.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.
if (doDetectPropQA == 1) {
if (isCascade) {
histos.add(Form("%s/h8dDetectPropVsCentrality", kParticlenames[partID].data()), "h8dDetectPropVsCentrality", kTHnSparseF, {axisDetectors.axisFT0ampl, axisDetMapCoarse, axisITScluMapCoarse, axisDetMapCoarse, axisITScluMapCoarse, axisDetMapCoarse, axisITScluMapCoarse, axisPtCoarse});
Expand All @@ -401,7 +401,7 @@
histos.add(Form("%s/h4dNegDetectPropVsCentrality", kParticlenames[partID].data()), "h4dNegDetectPropVsCentrality", kTHnSparseF, {axisDetectors.axisFT0ampl, axisDetMap, axisITScluMap, axisPtCoarse});
histos.add(Form("%s/h4dBachDetectPropVsCentrality", kParticlenames[partID].data()), "h4dBachDetectPropVsCentrality", kTHnSparseF, {axisDetectors.axisFT0ampl, axisDetMap, axisITScluMap, axisPtCoarse});
}
if (doDetectPropQA == 2) {

Check warning on line 404 in PWGLF/Tasks/Strangeness/derivedupcanalysis.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.
if (isCascade) {
histos.add(Form("%s/h9dDetectPropVsCentrality", kParticlenames[partID].data()), "h9dDetectPropVsCentrality", kTHnSparseF, {axisDetectors.axisFT0ampl, axisDetMapCoarse, axisITScluMapCoarse, axisDetMapCoarse, axisITScluMapCoarse, axisDetMapCoarse, axisITScluMapCoarse, axisPtCoarse, axisInvMass.at(partID)});
} else {
Expand Down Expand Up @@ -485,7 +485,7 @@
tpcNsigmaPos = posTrackExtra.tpcNSigmaPr();
tpcNsigmaNeg = negTrackExtra.tpcNSigmaPi();
}
} else if (partID == 2) {

Check warning on line 488 in PWGLF/Tasks/Strangeness/derivedupcanalysis.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.
invMass = cand.mAntiLambda();
rapidity = cand.yLambda();
if (PIDConfigurations.doTOFQA) {
Expand Down Expand Up @@ -521,7 +521,7 @@
histos.fill(HIST(kParticlenames[partID]) + HIST("/h4dPosDetectPropVsCentrality"), centrality, posTrackExtra.detectorMap(), posTrackExtra.itsClusterMap(), pT);
histos.fill(HIST(kParticlenames[partID]) + HIST("/h4dNegDetectPropVsCentrality"), centrality, negTrackExtra.detectorMap(), negTrackExtra.itsClusterMap(), pT);
}
if (doDetectPropQA == 2) {

Check warning on line 524 in PWGLF/Tasks/Strangeness/derivedupcanalysis.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.
histos.fill(HIST(kParticlenames[partID]) + HIST("/h7dPosDetectPropVsCentrality"), centrality, posDetMap, posITSclusMap, negDetMap, negITSclusMap, pT, invMass);
histos.fill(HIST(kParticlenames[partID]) + HIST("/h5dPosDetectPropVsCentrality"), centrality, posTrackExtra.detectorMap(), posTrackExtra.itsClusterMap(), pT, invMass);
histos.fill(HIST(kParticlenames[partID]) + HIST("/h5dNegDetectPropVsCentrality"), centrality, negTrackExtra.detectorMap(), negTrackExtra.itsClusterMap(), pT, invMass);
Expand Down Expand Up @@ -592,7 +592,7 @@
float tofDeltaTNeg = 0;
float tofDeltaTBach = 0;

if (partID == 3) {

Check warning on line 595 in PWGLF/Tasks/Strangeness/derivedupcanalysis.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.
invMass = cand.mXi();
ctau = totalMom != 0 ? o2::constants::physics::MassXiMinus * decayPos / (totalMom * ctauxiPDG) : 1e6;
rapidity = cand.yXi();
Expand All @@ -607,7 +607,7 @@
tofDeltaTNeg = cand.negTOFDeltaTXiPi();
tofDeltaTBach = cand.bachTOFDeltaTXiPi();
}
} else if (partID == 4) {

Check warning on line 610 in PWGLF/Tasks/Strangeness/derivedupcanalysis.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.
invMass = cand.mXi();
ctau = totalMom != 0 ? o2::constants::physics::MassXiPlusBar * decayPos / (totalMom * ctauxiPDG) : 1e6;
rapidity = cand.yXi();
Expand Down Expand Up @@ -1938,7 +1938,7 @@
histos.fill(HIST("eventQA/mc/hFakeEvents"), 0); // no assoc. MC collisions
return;
}

const auto& mcCollision = collision.straMCCollision_as<StraMCCollisionsFull>(); // take gen. collision associated to the rec. collision

if (std::find(generatorIds->begin(), generatorIds->end(), mcCollision.generatorsID()) == generatorIds->end()) {
Expand Down Expand Up @@ -2055,7 +2055,7 @@
histos.fill(HIST("eventQA/mc/hFakeEvents"), 0); // no assoc. MC collisions
return;
}

const auto& mcCollision = collision.straMCCollision_as<StraMCCollisionsFull>(); // take gen. collision associated to the rec. collision

if (std::find(generatorIds->begin(), generatorIds->end(), mcCollision.generatorsID()) == generatorIds->end()) {
Expand Down Expand Up @@ -2097,7 +2097,7 @@
selGapSide = 0;
break;
}
}
}
}

if (evSels.studyUPConly && (selGapSide < -0.5))
Expand Down
Loading