@@ -91,6 +91,7 @@ struct alice3decayFinder {
9191 ConfigurableAxis axisPt{" axisPt" , {VARIABLE_WIDTH, 0 .0f , 0 .1f , 0 .2f , 0 .3f , 0 .4f , 0 .5f , 0 .6f , 0 .7f , 0 .8f , 0 .9f , 1 .0f , 1 .1f , 1 .2f , 1 .3f , 1 .4f , 1 .5f , 1 .6f , 1 .7f , 1 .8f , 1 .9f , 2 .0f , 2 .2f , 2 .4f , 2 .6f , 2 .8f , 3 .0f , 3 .2f , 3 .4f , 3 .6f , 3 .8f , 4 .0f , 4 .4f , 4 .8f , 5 .2f , 5 .6f , 6 .0f , 6 .5f , 7 .0f , 7 .5f , 8 .0f , 9 .0f , 10 .0f , 11 .0f , 12 .0f , 13 .0f , 14 .0f , 15 .0f , 17 .0f , 19 .0f , 21 .0f , 23 .0f , 25 .0f , 30 .0f , 35 .0f , 40 .0f , 50 .0f }, " pt axis for QA histograms" };
9292 ConfigurableAxis axisDCA{" axisDCA" , {200 , -100 , 100 }, " DCA (#mum)" };
9393 ConfigurableAxis axisDMass{" axisDMass" , {200 , 1 .765f , 1 .965f }, " D Inv Mass (GeV/c^{2})" };
94+ ConfigurableAxis axisDCADaughters{" axisDCADaughters" , {200 , 0 , 100 }, " DCA (#mum)" };
9495 ConfigurableAxis axisLcMass{" axisLcMass" , {200 , 2 .186f , 2 .386f }, " #Lambda_{c} Inv Mass (GeV/c^{2})" };
9596
9697 o2::vertexing::DCAFitterN<2 > fitter;
@@ -144,12 +145,14 @@ struct alice3decayFinder {
144145
145146 // Helper struct to pass candidate information
146147 struct {
148+ float dcaDau;
147149 float mass;
148150 float pt;
149151 float eta;
150152 } dmeson;
151153
152154 struct {
155+ float dcaDau;
153156 float mass;
154157 float pt;
155158 float eta;
@@ -181,8 +184,8 @@ struct alice3decayFinder {
181184 posTrack.getPxPyPzGlo (posP);
182185 negTrack.getPxPyPzGlo (negP);
183186
184- float dcaDau = TMath::Sqrt (fitter.getChi2AtPCACandidate ());
185- if (dcaDau > dcaDaughtersSelection)
187+ dmeson. dcaDau = TMath::Sqrt (fitter.getChi2AtPCACandidate ());
188+ if (dmeson. dcaDau > dcaDaughtersSelection)
186189 return false ;
187190
188191 // return mass
@@ -222,8 +225,8 @@ struct alice3decayFinder {
222225 t1.getPxPyPzGlo (P1);
223226 t2.getPxPyPzGlo (P2);
224227
225- float dcaDau = TMath::Sqrt (fitter3 .getChi2AtPCACandidate ());
226- if (dcaDau > dcaDaughtersSelection)
228+ lcbaryon. dcaDau = TMath::Sqrt (fitter .getChi2AtPCACandidate ());
229+ if (lcbaryon. dcaDau > dcaDaughtersSelection)
227230 return false ;
228231
229232 // return mass
@@ -289,6 +292,8 @@ struct alice3decayFinder {
289292
290293 histos.add (" hMassD" , " hMassD" , kTH1F , {axisDMass});
291294 histos.add (" hMassDbar" , " hMassDbar" , kTH1F , {axisDMass});
295+ histos.add (" hDCADDaughters" , " hDCADDaughters" , kTH1D , {axisDCADaughters});
296+ histos.add (" hDCADbarDaughters" , " hDCADbarDaughters" , kTH1D , {axisDCADaughters});
292297
293298 if (doDCAplotsD) {
294299 histos.add (" h2dDCAxyVsPtPiPlusFromD" , " h2dDCAxyVsPtPiPlusFromD" , kTH2F , {axisPt, axisDCA});
@@ -305,6 +310,8 @@ struct alice3decayFinder {
305310
306311 histos.add (" hMassLc" , " hMassLc" , kTH1F , {axisLcMass});
307312 histos.add (" hMassLcbar" , " hMassLcbar" , kTH1F , {axisLcMass});
313+ histos.add (" hDCALcDaughters" , " hDCALcDaughters" , kTH1D , {axisDCADaughters});
314+ histos.add (" hDCALcbarDaughters" , " hDCALcbarDaughters" , kTH1D , {axisDCADaughters});
308315
309316 if (doDCAplotsD) {
310317 histos.add (" h2dDCAxyVsPtPiPlusFromLc" , " h2dDCAxyVsPtPiPlusFromLc" , kTH2F , {axisPt, axisDCA});
@@ -362,6 +369,7 @@ struct alice3decayFinder {
362369 continue ;
363370 if (!buildDecayCandidateTwoBody (posTrackRow, negTrackRow, o2::constants::physics::MassPionCharged, o2::constants::physics::MassKaonCharged))
364371 continue ;
372+ histos.fill (HIST (" hDCADDaughters" ), dmeson.dcaDau * 1e+4 );
365373 histos.fill (HIST (" hMassD" ), dmeson.mass );
366374 histos.fill (HIST (" h3dRecD" ), dmeson.pt , dmeson.eta , dmeson.mass );
367375 }
@@ -373,6 +381,7 @@ struct alice3decayFinder {
373381 continue ;
374382 if (!buildDecayCandidateTwoBody (posTrackRow, negTrackRow, o2::constants::physics::MassKaonCharged, o2::constants::physics::MassPionCharged))
375383 continue ;
384+ histos.fill (HIST (" hDCADbarDaughters" ), dmeson.dcaDau * 1e+4 );
376385 histos.fill (HIST (" hMassDbar" ), dmeson.mass );
377386 histos.fill (HIST (" h3dRecDbar" ), dmeson.pt , dmeson.eta , dmeson.mass );
378387 }
@@ -417,6 +426,7 @@ struct alice3decayFinder {
417426 continue ;
418427 if (!buildDecayCandidateThreeBody (proton, kaon, pion, o2::constants::physics::MassProton, o2::constants::physics::MassKaonCharged, o2::constants::physics::MassPionCharged))
419428 continue ;
429+ histos.fill (HIST (" hDCALcDaughters" ), lcbaryon.dcaDau );
420430 histos.fill (HIST (" hMassLc" ), lcbaryon.mass );
421431 histos.fill (HIST (" h3dRecLc" ), lcbaryon.pt , lcbaryon.eta , lcbaryon.mass );
422432 }
@@ -432,6 +442,7 @@ struct alice3decayFinder {
432442 continue ;
433443 if (!buildDecayCandidateThreeBody (proton, kaon, pion, o2::constants::physics::MassProton, o2::constants::physics::MassKaonCharged, o2::constants::physics::MassPionCharged))
434444 continue ;
445+ histos.fill (HIST (" hDCALcbarDaughters" ), lcbaryon.dcaDau );
435446 histos.fill (HIST (" hMassLcbar" ), lcbaryon.mass );
436447 histos.fill (HIST (" h3dRecLcbar" ), lcbaryon.pt , lcbaryon.eta , lcbaryon.mass );
437448 }
0 commit comments