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 PWGHF/D2H/TableProducer/dataCreatorCharmResoReduced.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@
const AxisSpec axisDeDx{500, 0.f, 1000.f, ""};
const AxisSpec axisMassD0{200, 1.7f, 2.1f, "inv. mass (GeV/#it{c}^{2})"};
const AxisSpec axisMassDplus{200, 1.7f, 2.1f, "inv. mass (GeV/#it{c}^{2})"};
const AxisSpec axisMassDstar{200, 0.139f, 0.179f, "inv. mass (GeV/#it{c}^{2})"};

Check failure on line 300 in PWGHF/D2H/TableProducer/dataCreatorCharmResoReduced.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.
const AxisSpec axisMassLambda{100, 1.05f, 1.35f, "inv. mass (GeV/#it{c}^{2})"};
const AxisSpec axisMassKzero{100, 0.35f, 0.65f, "inv. mass (GeV/#it{c}^{2})"};
const AxisSpec axisDeltaMassToK{500, 0.49, 1.49, "inv. mass (GeV/#it{c}^{2})"};
Expand Down Expand Up @@ -405,7 +405,7 @@
if (track.itsNCls() < cfgV0Cuts.trackNclusItsCut ||
track.tpcNClsFound() < cfgV0Cuts.trackNCrossedRowsTpc ||
track.tpcNClsCrossedRows() < cfgV0Cuts.trackNCrossedRowsTpc ||
track.tpcNClsCrossedRows() < 0.8 * track.tpcNClsFindable() ||

Check failure on line 408 in PWGHF/D2H/TableProducer/dataCreatorCharmResoReduced.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.
track.tpcNClsShared() > cfgV0Cuts.trackNsharedClusTpc) {
return false;
}
Expand Down Expand Up @@ -472,7 +472,7 @@
auto& trackNegProp = fitter.getTrack(1);
trackPosProp.getPxPyPzGlo(candidateV0.momPos);
trackNegProp.getPxPyPzGlo(candidateV0.momNeg);
for (int i = 0; i < 3; ++i) {

Check failure on line 475 in PWGHF/D2H/TableProducer/dataCreatorCharmResoReduced.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.
candidateV0.mom[i] = candidateV0.momPos[i] + candidateV0.momNeg[i];
}
candidateV0.pT = std::hypot(candidateV0.mom[0], candidateV0.mom[1]);
Expand All @@ -493,7 +493,7 @@
if (candidateV0.radius < cfgV0Cuts.radiusMin) {
return false;
}
for (int i = 0; i < 3; i++) {

Check failure on line 496 in PWGHF/D2H/TableProducer/dataCreatorCharmResoReduced.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.
candidateV0.pos[i] = vtx[i];
}
// v0 DCA to primary vertex
Expand Down Expand Up @@ -987,10 +987,10 @@
varUtils.invMassReso = RecoDecay::m(std::array{varUtils.pVectorProng1, varUtils.pVectorProng0, varUtils.pVectorProng2, candidateV0.mom}, std::array{MassPiPlus, MassKPlus, MassPiPlus, MassK0});
}
if (!applyCutsForQaHistograms ||
(varUtils.invMassD - varUtils.invMassD0 > 0.143f &&

Check failure on line 990 in PWGHF/D2H/TableProducer/dataCreatorCharmResoReduced.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.
varUtils.invMassD - varUtils.invMassD0 < 0.148f &&

Check failure on line 991 in PWGHF/D2H/TableProducer/dataCreatorCharmResoReduced.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.
candidateV0.mK0Short > 0.485f &&

Check failure on line 992 in PWGHF/D2H/TableProducer/dataCreatorCharmResoReduced.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.
candidateV0.mK0Short < 0.509f)) {

Check failure on line 993 in PWGHF/D2H/TableProducer/dataCreatorCharmResoReduced.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.
registry.fill(HIST("hMassDstarK0s"), varUtils.ptReso, varUtils.invMassReso - varUtils.invMassD);
}
break;
Expand All @@ -998,8 +998,8 @@
varUtils.invMassReso = RecoDecay::m(std::array{varUtils.pVectorProng0, varUtils.pVectorProng1, varUtils.pVectorProng2, candidateV0.mom}, std::array{MassPiPlus, MassKPlus, MassPiPlus, MassK0});
varUtils.ptReso = RecoDecay::pt(RecoDecay::sumOfVec(varUtils.pVectorProng0, varUtils.pVectorProng1, varUtils.pVectorProng2, candidateV0.mom));
if (!applyCutsForQaHistograms ||
(varUtils.invMassD > 1.83f &&

Check failure on line 1001 in PWGHF/D2H/TableProducer/dataCreatorCharmResoReduced.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.
varUtils.invMassD < 1.92f &&

Check failure on line 1002 in PWGHF/D2H/TableProducer/dataCreatorCharmResoReduced.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.
candidateV0.mK0Short > 0.485f &&
candidateV0.mK0Short < 0.509f)) {
registry.fill(HIST("hMassDplusK0s"), varUtils.ptReso, varUtils.invMassReso - varUtils.invMassD);
Expand Down Expand Up @@ -1650,9 +1650,9 @@
auto candsDThisColl = candsD0.sliceBy(candsD0PerCollision, thisCollId);
auto trackIdsThisColl = trackIndices.sliceBy(trackIndicesPerCollision, thisCollId);
runDataCreation<false, false, DType::D0, PairingType::TrackOnly>(collision, candsDThisColl, trackIdsThisColl, trackIdsThisColl, tracks, tracks, tracks, bcs);
}
// handle normalization by the right number of collisions
hfCollisionCounter(collisions.tableSize(), zvtxColl, sel8Coll, zvtxAndSel8Coll, zvtxAndSel8CollAndSoftTrig, allSelColl);
}
// handle normalization by the right number of collisions
hfCollisionCounter(collisions.tableSize(), zvtxColl, sel8Coll, zvtxAndSel8Coll, zvtxAndSel8CollAndSoftTrig, allSelColl);
}
PROCESS_SWITCH(HfDataCreatorCharmResoReduced, processD0Track, "Process D0 candidates paired with Tracks", false);

Expand Down
Loading