@@ -687,7 +687,8 @@ struct StrangeCascTrack {
687687 }
688688
689689 // statistics - compare gen and reco pt and rapidity
690- int charmBeautyCodes = 4000 ;
690+ int charmBeautyCodesLow = 4000 ;
691+ int charmBeautyCodeHigh = 6000 ;
691692 if constexpr (requires { collision.straMCCollisionId (); }) {
692693 if constexpr (requires { stdCasc.has_cascMCCore (); }) {
693694 auto cascmccore = stdCasc.template cascMCCore_as <DerMCGenCascades>();
@@ -708,10 +709,10 @@ struct StrangeCascTrack {
708709 histos.fill (HIST (TypeNames[Type]) + HIST (" /NoSel-Truth/GenRecRapidityXi" ), genYXi, cascade.yXi ());
709710 histos.fill (HIST (TypeNames[Type]) + HIST (" /NoSel-Truth/DCA/DCAxyPrimaryXi" ), cascade.dcaXYCascToPV (), pt, mult);
710711 histos.fill (HIST (TypeNames[Type]) + HIST (" /NoSel-Truth/DCA/DCAzPrimaryXi" ), cascade.dcaZCascToPV (), pt, mult);
711- if (std::abs (cascmccore.pdgCodeMother ()) > charmBeautyCodes ) {
712+ if (std::abs (cascmccore.pdgCodeMother ()) > charmBeautyCodesLow && std::abs (cascmccore. pdgCodeMother ()) < charmBeautyCodesHigh ) {
712713 histos.fill (HIST (TypeNames[Type]) + HIST (" /NoSel-Truth/DCA/DCAxyDecayXi" ), cascade.dcaXYCascToPV (), pt, mult);
713714 histos.fill (HIST (TypeNames[Type]) + HIST (" /NoSel-Truth/DCA/DCAzDecayXi" ), cascade.dcaZCascToPV (), pt, mult);
714- } else {
715+ } else if (cascmccore. pdgCodeMother () == - 1 ) {
715716 histos.fill (HIST (TypeNames[Type]) + HIST (" /NoSel-Truth/DCA/DCAxyDirectXi" ), cascade.dcaXYCascToPV (), pt, mult);
716717 histos.fill (HIST (TypeNames[Type]) + HIST (" /NoSel-Truth/DCA/DCAzDirectXi" ), cascade.dcaZCascToPV (), pt, mult);
717718 }
@@ -723,10 +724,10 @@ struct StrangeCascTrack {
723724 histos.fill (HIST (TypeNames[Type]) + HIST (" /Rec-Truth/DCA/DCAxyPrimaryXi" ), cascade.dcaXYCascToPV (), pt, mult);
724725 histos.fill (HIST (TypeNames[Type]) + HIST (" /Rec-Truth/DCA/DCAzPrimaryXi" ), cascade.dcaZCascToPV (), pt, mult);
725726 histos.fill (HIST (TypeNames[Type]) + HIST (" /Rec-Truth/Radius/PrimaryXi" ), cascade.cascradius (), pt);
726- if (std::abs (cascmccore.pdgCodeMother ()) > charmBeautyCodes ) {
727+ if (std::abs (cascmccore.pdgCodeMother ()) > charmBeautyCodesLow && std::abs (cascmccore. pdgCodeMother ()) < charmBeautyCodesHigh ) {
727728 histos.fill (HIST (TypeNames[Type]) + HIST (" /Rec-Truth/DCA/DCAxyDecayXi" ), cascade.dcaXYCascToPV (), pt, mult);
728729 histos.fill (HIST (TypeNames[Type]) + HIST (" /Rec-Truth/DCA/DCAzDecayXi" ), cascade.dcaZCascToPV (), pt, mult);
729- } else {
730+ } else if (cascmccore. pdgCodeMother () == - 1 ) {
730731 histos.fill (HIST (TypeNames[Type]) + HIST (" /Rec-Truth/DCA/DCAxyDirectXi" ), cascade.dcaXYCascToPV (), pt, mult);
731732 histos.fill (HIST (TypeNames[Type]) + HIST (" /Rec-Truth/DCA/DCAzDirectXi" ), cascade.dcaZCascToPV (), pt, mult);
732733 }
@@ -736,10 +737,10 @@ struct StrangeCascTrack {
736737 histos.fill (HIST (TypeNames[Type]) + HIST (" /NoSel-Truth/GenRecRapidityOmega" ), genYOmega, cascade.yOmega ());
737738 histos.fill (HIST (TypeNames[Type]) + HIST (" /NoSel-Truth/DCA/DCAxyPrimaryOmega" ), cascade.dcaXYCascToPV (), pt, mult);
738739 histos.fill (HIST (TypeNames[Type]) + HIST (" /NoSel-Truth/DCA/DCAzPrimaryOmega" ), cascade.dcaZCascToPV (), pt, mult);
739- if (std::abs (cascmccore.pdgCodeMother ()) > charmBeautyCodes ) {
740+ if (std::abs (std::abs ( cascmccore.pdgCodeMother ()) > charmBeautyCodesLow && std::abs (cascmccore. pdgCodeMother ()) < charmBeautyCodesHigh) ) {
740741 histos.fill (HIST (TypeNames[Type]) + HIST (" /NoSel-Truth/DCA/DCAxyDecayOmega" ), cascade.dcaXYCascToPV (), pt, mult);
741742 histos.fill (HIST (TypeNames[Type]) + HIST (" /NoSel-Truth/DCA/DCAzDecayOmega" ), cascade.dcaZCascToPV (), pt, mult);
742- } else {
743+ } else if (cascmccore. pdgCodeMother () == - 1 ) {
743744 histos.fill (HIST (TypeNames[Type]) + HIST (" /NoSel-Truth/DCA/DCAxyDirectOmega" ), cascade.dcaXYCascToPV (), pt, mult);
744745 histos.fill (HIST (TypeNames[Type]) + HIST (" /NoSel-Truth/DCA/DCAzDirectOmega" ), cascade.dcaZCascToPV (), pt, mult);
745746 }
@@ -751,10 +752,10 @@ struct StrangeCascTrack {
751752 histos.fill (HIST (TypeNames[Type]) + HIST (" /Rec-Truth/DCA/DCAxyPrimaryOmega" ), cascade.dcaXYCascToPV (), pt, mult);
752753 histos.fill (HIST (TypeNames[Type]) + HIST (" /Rec-Truth/DCA/DCAzPrimaryOmega" ), cascade.dcaZCascToPV (), pt, mult);
753754 histos.fill (HIST (TypeNames[Type]) + HIST (" /Rec-Truth/Radius/PrimaryOmega" ), cascade.cascradius (), pt);
754- if (std::abs (cascmccore.pdgCodeMother ()) > charmBeautyCodes ) {
755+ if (std::abs (std::abs ( cascmccore.pdgCodeMother ()) > charmBeautyCodesLow && std::abs (cascmccore. pdgCodeMother ()) < charmBeautyCodesHigh) ) {
755756 histos.fill (HIST (TypeNames[Type]) + HIST (" /Rec-Truth/DCA/DCAxyDecayOmega" ), cascade.dcaXYCascToPV (), pt, mult);
756757 histos.fill (HIST (TypeNames[Type]) + HIST (" /Rec-Truth/DCA/DCAzDecayOmega" ), cascade.dcaZCascToPV (), pt, mult);
757- } else {
758+ } else if (cascmccore. pdgCodeMother () == - 1 ) {
758759 histos.fill (HIST (TypeNames[Type]) + HIST (" /Rec-Truth/DCA/DCAxyDirectOmega" ), cascade.dcaXYCascToPV (), pt, mult);
759760 histos.fill (HIST (TypeNames[Type]) + HIST (" /Rec-Truth/DCA/DCAzDirectOmega" ), cascade.dcaZCascToPV (), pt, mult);
760761 }
0 commit comments