@@ -308,21 +308,32 @@ struct HfTaskPidStudies {
308308 int isMatched (const T1& cand)
309309 {
310310 if constexpr (std::is_same<T1, V0sMcRec::iterator>::value) {
311+ LOG (info) << " case std::is_same<T1, V0sMcRec::iterator>::value" ;
311312 if (!cand.has_v0MCCore ()) {
312313 return Particle::NotMatched;
313314 }
314315 auto v0MC = cand.template v0MCCore_as <aod::V0MCCores>();
316+ LOG (info) << " v0MC obtained" ;
317+ if (!(&v0MC)) return Particle::NotMatched;
318+ int pdgCode = v0MC.pdgCode (); LOG (info) << " pdgCode obtained" ;
319+ int pdgCodeNegative = v0MC.pdgCodeNegative (); LOG (info) << " pdgCodeNegative obtained" ;
320+ int pdgCodePositive = v0MC.pdgCodePositive (); LOG (info) << " pdgCodePositive obtained" ;
315321 if (v0MC.pdgCode () == kK0Short && v0MC.pdgCodeNegative () == -kPiPlus && v0MC.pdgCodePositive () == kPiPlus ) {
322+ LOG (info) << " IT'S A K0S" ;
316323 return Particle::K0s;
317324 }
318325 if (v0MC.pdgCode () == kLambda0 && v0MC.pdgCodeNegative () == -kPiPlus && v0MC.pdgCodePositive () == kProton ) {
326+ LOG (info) << " IT'S A LAMBDA" ;
319327 return Particle::Lambda;
320328 }
321329 if (v0MC.pdgCode () == -kLambda0 && v0MC.pdgCodeNegative () == -kProton && v0MC.pdgCodePositive () == kPiPlus ) {
330+ LOG (info) << " IT'S AN ANTI-LAMBDA" ;
322331 return -Particle::Lambda;
323332 }
333+ LOG (info) << " case std::is_same<T1, V0sMcRec::iterator>::value FINISHED - no result" ;
324334 }
325335 if constexpr (std::is_same<T1, CascsMcRec::iterator>::value) {
336+ LOG (info) << " case std::is_same<T1, CascsMcRec::iterator>::value" ;
326337 if (!cand.has_cascMCCore ()) {
327338 return Particle::NotMatched;
328339 }
@@ -341,6 +352,7 @@ struct HfTaskPidStudies {
341352 cascMC.pdgCodeNegative () == -kProton ) {
342353 return -Particle::Omega;
343354 }
355+ LOG (info) << " case std::is_same<T1, CascsMcRec::iterator>::value FINISHED" ;
344356 }
345357 return Particle::NotMatched;
346358 }
@@ -514,20 +526,30 @@ struct HfTaskPidStudies {
514526 PidTracks const & /* tracks*/ ,
515527 aod::BCsWithTimestamps const &)
516528 {
529+ LOG (info) << " [processV0Mc] start" ;
517530 for (const auto & v0 : v0s) {
531+ LOG (info) << " [processV0Mc] before ev. sel" ;
518532 if (applyEvSels && !isCollSelected (v0.collision_as <CollisionsMc>())) {
519533 continue ;
520534 }
535+ LOG (info) << " [processV0Mc] after ev. sel" ;
521536 if (applyTrackSels && !isTrackSelected<true >(v0)) {
522537 continue ;
523538 }
539+ LOG (info) << " [processV0Mc] after track sel." ;
524540 if (isSelectedV0AsK0s (v0) || isSelectedV0AsLambda (v0)) {
541+ LOG (info) << " [processV0Mc] matching..." ;
525542 int const matched = isMatched (v0);
543+ LOG (info) << " [processV0Mc] ... matched!" ;
526544 if (matched != Particle::NotMatched) {
545+ LOG (info) << " [processV0Mc] filling..." ;
527546 fillTree<true , CollisionsMc>(v0, matched);
547+ LOG (info) << " [processV0Mc] ... filled!" ;
528548 }
529549 }
550+ LOG (info) << " [processV0Mc] end loop iteration" ;
530551 }
552+ LOG (info) << " [processV0Mc] THE END" ;
531553 }
532554 PROCESS_SWITCH (HfTaskPidStudies, processV0Mc, " Process MC" , true );
533555
0 commit comments