@@ -59,7 +59,6 @@ std::shared_ptr<TH1> hCentFV0A;
5959std::shared_ptr<TH2 > hNsigma3HSel;
6060std::shared_ptr<TH2 > hdEdx3HSel;
6161std::shared_ptr<TH2 > hdEdxTot;
62- std::shared_ptr<TH1 > hLnnMassSel;
6362std::shared_ptr<TH1 > hDecayChannel;
6463std::shared_ptr<TH1 > hIsMatterGen;
6564std::shared_ptr<TH1 > hIsMatterGenTwoBody;
@@ -201,7 +200,6 @@ struct lnnRecoTask {
201200 hdEdx3HSel = qaRegistry.add <TH2 >(" hdEdx3HSel" , " ;p_{TPC}/z (GeV/#it{c}); dE/dx" , HistType::kTH2F , {rigidityAxis, dEdxAxis});
202201 hdEdxTot = qaRegistry.add <TH2 >(" hdEdxTot" , " ;p_{TPC}/z (GeV/#it{c}); dE/dx" , HistType::kTH2F , {rigidityAxis, dEdxAxis});
203202 hEvents = qaRegistry.add <TH1 >(" hEvents" , " ;Events; " , HistType::kTH1D , {{2 , -0.5 , 1.5 }});
204- hLnnMassSel = qaRegistry.add <TH1 >(" hLnnMassSel" , " ;M (GeV/#it{c}^{2}); " , HistType::kTH1D , {{60 , 2.9 , 3.8 }});
205203
206204 hEvents->GetXaxis ()->SetBinLabel (1 , " All" );
207205 hEvents->GetXaxis ()->SetBinLabel (2 , " sel8" );
@@ -324,11 +322,6 @@ struct lnnRecoTask {
324322 lnnCand.mom3HTPC = lnnCand.isMatter ? posRigidity : negRigidity;
325323 lnnCand.momPiTPC = !lnnCand.isMatter ? posRigidity : negRigidity;
326324
327- int chargeFactor = -1 + 2 * lnnCand.isMatter ;
328- hdEdx3HSel->Fill (chargeFactor * lnnCand.mom3HTPC , h3track.tpcSignal ());
329- hNsigma3HSel->Fill (chargeFactor * lnnCand.mom3HTPC , lnnCand.nSigma3H );
330- lnnCandidates.push_back (lnnCand);
331-
332325 lnnCand.flags |= lnnCand.isMatter ? static_cast <uint8_t >((posTrack.pidForTracking () & 0xF ) << 4 ) : static_cast <uint8_t >((negTrack.pidForTracking () & 0xF ) << 4 );
333326 lnnCand.flags |= lnnCand.isMatter ? static_cast <uint8_t >(negTrack.pidForTracking () & 0xF ) : static_cast <uint8_t >(posTrack.pidForTracking () & 0xF );
334327
@@ -379,8 +372,6 @@ struct lnnRecoTask {
379372 if (massLNNL > mLNN_HypHI - masswidth && massLNNL < mLNN_HypHI + masswidth) {
380373 isLNNMass = true ;
381374 }
382- hLnnMassSel->Fill (massLNNL);
383-
384375 if (!isLNNMass) {
385376 continue ;
386377 }
@@ -415,6 +406,11 @@ struct lnnRecoTask {
415406 lnnCand.isReco = true ;
416407 lnnCand.posTrackID = posTrack.globalIndex ();
417408 lnnCand.negTrackID = negTrack.globalIndex ();
409+
410+ int chargeFactor = -1 + 2 * lnnCand.isMatter ;
411+ hdEdx3HSel->Fill (chargeFactor * lnnCand.mom3HTPC , h3track.tpcSignal ());
412+ hNsigma3HSel->Fill (chargeFactor * lnnCand.mom3HTPC , lnnCand.nSigma3H );
413+ lnnCandidates.push_back (lnnCand);
418414 }
419415 }
420416
@@ -432,25 +428,25 @@ struct lnnRecoTask {
432428 if (mcTrackPos.has_mothers () && mcTrackNeg.has_mothers ()) {
433429 for (auto & negMother : mcTrackNeg.mothers_as <aod::McParticles>()) {
434430 for (auto & posMother : mcTrackPos.mothers_as <aod::McParticles>()) {
435- if (posMother.globalIndex () != negMother.globalIndex ())
431+ if (posMother.globalIndex () != negMother.globalIndex ())
432+ continue ;
433+ if (!((mcTrackPos.pdgCode () == h3DauPdg && mcTrackNeg.pdgCode () == -211 ) || (mcTrackPos.pdgCode () == 211 && mcTrackNeg.pdgCode () == -1 * h3DauPdg)))
434+ continue ;
435+ if (std::abs (posMother.pdgCode ()) != lnnPdg)
436436 continue ;
437- if (!((mcTrackPos.pdgCode () == h3DauPdg && mcTrackNeg.pdgCode () == -211 ) || (mcTrackPos.pdgCode () == 211 && mcTrackNeg.pdgCode () == -1 * h3DauPdg)))
438- continue ;
439- if (std::abs (posMother.pdgCode ()) != lnnPdg)
440- continue ;
441437
442- // Checking primary and second vertex with MC simulations
443- std::array<float , 3 > posPrimVtx = {posMother.vx (), posMother.vy (), posMother.vz ()};
438+ // Checking primary and second vertex with MC simulations
439+ std::array<float , 3 > posPrimVtx = {posMother.vx (), posMother.vy (), posMother.vz ()};
444440
445- std::array<float , 3 > secVtx = {mcTrackPos.vx (), mcTrackPos.vy (), mcTrackPos.vz ()};
441+ std::array<float , 3 > secVtx = {mcTrackPos.vx (), mcTrackPos.vy (), mcTrackPos.vz ()};
446442
447- lnnCand.gMom = posMother.pVector ();
443+ lnnCand.gMom = posMother.pVector ();
448444
449- lnnCand.gMom3H = mcTrackPos.pdgCode () == h3DauPdg ? mcTrackPos.pVector () : mcTrackNeg.pVector ();
445+ lnnCand.gMom3H = mcTrackPos.pdgCode () == h3DauPdg ? mcTrackPos.pVector () : mcTrackNeg.pVector ();
450446
451- for (int i = 0 ; i < 3 ; i++) {
452- lnnCand.gDecVtx [i] = secVtx[i] - posPrimVtx[i];
453- }
447+ for (int i = 0 ; i < 3 ; i++) {
448+ lnnCand.gDecVtx [i] = secVtx[i] - posPrimVtx[i];
449+ }
454450 lnnCand.isSignal = true ;
455451 lnnCand.pdgCode = posMother.pdgCode ();
456452 lnnCand.survEvSelection = isGoodCollision[posMother.mcCollisionId ()];
0 commit comments