Skip to content

Commit ba1c2e1

Browse files
author
sandeep dudi
committed
DCAz cut is added for Kink kaon
1 parent dcf3962 commit ba1c2e1

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

PWGLF/Tasks/Nuspex/spectraKinkPiKa.cxx

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -240,14 +240,11 @@ struct KinkBuilder {
240240

241241
for (const auto& svCand : kinkPool) {
242242
KinkCandidate kinkCand;
243-
244243
auto trackMoth = tracks.rawIteratorAt(svCand.tr0Idx);
245244
auto trackDaug = tracks.rawIteratorAt(svCand.tr1Idx);
246-
247245
auto const& collision = trackMoth.template collision_as<Tcolls>();
248246
auto const& bc = collision.template bc_as<aod::BCsWithTimestamps>();
249247
initCCDB(bc);
250-
251248
o2::dataformats::VertexBase primaryVertex;
252249
primaryVertex.setPos({collision.posX(), collision.posY(), collision.posZ()});
253250
primaryVertex.setCov(collision.covXX(), collision.covXY(), collision.covYY(), collision.covXZ(), collision.covYZ(), collision.covZZ());
@@ -258,33 +255,21 @@ struct KinkBuilder {
258255
std::array<float, 2> dcaInfoMoth;
259256
bool okMoth = o2::base::Propagator::Instance()->propagateToDCABxByBz({primaryVertex.getX(), primaryVertex.getY(), primaryVertex.getZ()}, trackParCovMothPV, 2.f, static_cast<o2::base::Propagator::MatCorrType>(cfgMaterialCorrection.value), &dcaInfoMoth);
260257
if (!okMoth) {
261-
// LOG(DEBUG) << "Skipping candidate: propagateToDCABxByBz failed for moth idx " << svCand.tr0Idx;
262258
continue;
263259
}
264260
o2::track::TrackParCov trackParCovDaug = getTrackParCov(trackDaug);
265261
// propagate to PV
266262
std::array<float, 2> dcaInfoDaug;
267263
bool okDaug = o2::base::Propagator::Instance()->propagateToDCABxByBz({primaryVertex.getX(), primaryVertex.getY(), primaryVertex.getZ()}, trackParCovDaug, 2.f, static_cast<o2::base::Propagator::MatCorrType>(cfgMaterialCorrection.value), &dcaInfoDaug);
268-
269264
if (!okDaug) {
270-
// LOG(DEBUG) << "Skipping candidate: propagateToDCABxByBz failed for daug idx " << svCand.tr1Idx;
271265
continue;
272266
}
273-
274267
if (std::abs(dcaInfoMoth[1]) > maxDCAMothToPV) {
275268
continue;
276269
}
277270
if (std::abs(dcaInfoDaug[1]) < minDCADaugToPV) {
278271
continue;
279272
}
280-
/* // check if the kink daughter is close to the mother
281-
if (std::abs(trackParCovMoth.getZ() - trackParCovDaug.getZ()) > maxZDiff) {
282-
continue;
283-
}
284-
if ((std::abs(trackParCovMoth.getPhi() - trackParCovDaug.getPhi()) * radToDeg) > maxPhiDiff) {
285-
continue;
286-
}
287-
*/
288273
int nCand = 0;
289274
try {
290275
nCand = fitter.process(trackParCovMoth, trackParCovDaug);

0 commit comments

Comments
 (0)