1515// / \author Phil Lennart Stahlhut <phil.lennart.stahlhut@cern.ch>, Heidelberg University
1616// / \author Carolina Reetz <c.reetz@cern.ch>, Heidelberg University
1717
18+ #include < vector>
19+
1820#include " CommonConstants/PhysicsConstants.h"
1921#include " Framework/AnalysisTask.h"
2022#include " Framework/runDataProcessing.h"
@@ -76,8 +78,10 @@ DECLARE_SOA_COLUMN(DecayLengthNormalised, decayLengthNormalised, float); //!
7678DECLARE_SOA_COLUMN (DecayLengthXYNormalised, decayLengthXYNormalised, float ); // ! Normalised transverse decay length of candidate
7779DECLARE_SOA_COLUMN (Cpa, cpa, float ); // ! Cosine pointing angle of candidate
7880DECLARE_SOA_COLUMN (CpaXY, cpaXY, float ); // ! Cosine pointing angle of candidate in transverse plane
79- DECLARE_SOA_COLUMN (Chi2XicPlusTopoToPV, chi2XicPlusTopoToPV, float );
80- DECLARE_SOA_COLUMN (Chi2XicPlusTopoXiToXicPlus, chi2XicPlusTopoXiToXicPlus, float );
81+ DECLARE_SOA_COLUMN (Chi2TopoXicPlusToPVBeforeConstraint, chi2TopoXicPlusToPVBeforeConstraint, float );
82+ DECLARE_SOA_COLUMN (Chi2TopoXicPlusToPV, chi2TopoXicPlusToPV, float );
83+ DECLARE_SOA_COLUMN (Chi2TopoXiToXicPlusBeforeConstraint, chi2TopoXiToXicPlusBeforeConstraint, float );
84+ DECLARE_SOA_COLUMN (Chi2TopoXiToXicPlus, chi2TopoXiToXicPlus, float );
8185// properties of daughter tracks
8286DECLARE_SOA_COLUMN (PtXi, ptXi, float ); // ! Transverse momentum of Xi (prong0) (GeV/c)
8387DECLARE_SOA_COLUMN (ImpactParameterXi, impactParameterXi, float ); // ! Impact parameter of Xi (prong0)
@@ -191,8 +195,10 @@ DECLARE_SOA_TABLE(HfCandXicToXiPiPiLiteKfs, "AOD", "HFXICXI2PILITKF",
191195 // KF specific columns
192196 full::Chi2XiVtx,
193197 full::Chi2LamVtx,
194- full::Chi2XicPlusTopoToPV,
195- full::Chi2XicPlusTopoXiToXicPlus,
198+ full::Chi2TopoXicPlusToPVBeforeConstraint,
199+ full::Chi2TopoXicPlusToPV,
200+ full::Chi2TopoXiToXicPlusBeforeConstraint,
201+ full::Chi2TopoXiToXicPlus,
196202 full::DcaXYPi0Pi1,
197203 full::DcaXYPi0Xi,
198204 full::DcaXYPi1Xi,
@@ -313,8 +319,10 @@ DECLARE_SOA_TABLE(HfCandXicToXiPiPiFullKfs, "AOD", "HFXICXI2PIFULKF",
313319 // KF-specific columns
314320 full::Chi2XiVtx,
315321 full::Chi2LamVtx,
316- full::Chi2XicPlusTopoToPV,
317- full::Chi2XicPlusTopoXiToXicPlus,
322+ full::Chi2TopoXicPlusToPVBeforeConstraint,
323+ full::Chi2TopoXicPlusToPV,
324+ full::Chi2TopoXiToXicPlusBeforeConstraint,
325+ full::Chi2TopoXiToXicPlus,
318326 full::DcaXYPi0Pi1,
319327 full::DcaXYPi0Xi,
320328 full::DcaXYPi1Xi,
@@ -525,7 +533,9 @@ struct HfTreeCreatorXicToXiPiPi {
525533 // KF-specific columns
526534 candidate.kfCascadeChi2 (),
527535 candidate.kfV0Chi2 (),
536+ candidate.chi2TopoXicPlusToPVBeforeConstraint (),
528537 candidate.chi2TopoXicPlusToPV (),
538+ candidate.chi2TopoXiToXicPlusBeforeConstraint (),
529539 candidate.chi2TopoXiToXicPlus (),
530540 candidate.dcaXYPi0Pi1 (),
531541 candidate.dcaXYPi0Xi (),
@@ -592,7 +602,9 @@ struct HfTreeCreatorXicToXiPiPi {
592602 // KF-specific columns
593603 candidate.kfCascadeChi2 (),
594604 candidate.kfV0Chi2 (),
605+ candidate.chi2TopoXicPlusToPVBeforeConstraint (),
595606 candidate.chi2TopoXicPlusToPV (),
607+ candidate.chi2TopoXiToXicPlusBeforeConstraint (),
596608 candidate.chi2TopoXiToXicPlus (),
597609 candidate.dcaXYPi0Pi1 (),
598610 candidate.dcaXYPi0Xi (),
@@ -615,7 +627,7 @@ struct HfTreeCreatorXicToXiPiPi {
615627 }
616628 for (const auto & candidate : candidates) {
617629 if (fillOnlyBackground && downSampleBkgFactor < 1 .) {
618- float pseudoRndm = candidate.ptProng1 () * 1000 . - ( int64_t ) (candidate.ptProng1 () * 1000 );
630+ float pseudoRndm = candidate.ptProng1 () * 1000 . - static_cast < int64_t > (candidate.ptProng1 () * 1000 );
619631 if (pseudoRndm >= downSampleBkgFactor && candidate.pt () < ptMaxForDownSample) {
620632 continue ;
621633 }
@@ -635,7 +647,7 @@ struct HfTreeCreatorXicToXiPiPi {
635647 }
636648 for (const auto & candidate : candidates) {
637649 if (fillOnlyBackground && downSampleBkgFactor < 1 .) {
638- float pseudoRndm = candidate.ptProng1 () * 1000 . - ( int64_t ) (candidate.ptProng1 () * 1000 );
650+ float pseudoRndm = candidate.ptProng1 () * 1000 . - static_cast < int64_t > (candidate.ptProng1 () * 1000 );
639651 if (pseudoRndm >= downSampleBkgFactor && candidate.pt () < ptMaxForDownSample) {
640652 continue ;
641653 }
@@ -667,7 +679,7 @@ struct HfTreeCreatorXicToXiPiPi {
667679 rowCandidateFull.reserve (recBg.size ());
668680 }
669681 for (const auto & candidate : recBg) {
670- float pseudoRndm = candidate.ptProng1 () * 1000 . - ( int64_t ) (candidate.ptProng1 () * 1000 );
682+ float pseudoRndm = candidate.ptProng1 () * 1000 . - static_cast < int64_t > (candidate.ptProng1 () * 1000 );
671683 if (candidate.pt () < ptMaxForDownSample && pseudoRndm >= downSampleBkgFactor) {
672684 continue ;
673685 }
@@ -733,7 +745,7 @@ struct HfTreeCreatorXicToXiPiPi {
733745 rowCandidateFull.reserve (recBgKf.size ());
734746 }
735747 for (const auto & candidate : recBgKf) {
736- float pseudoRndm = candidate.ptProng1 () * 1000 . - ( int64_t ) (candidate.ptProng1 () * 1000 );
748+ float pseudoRndm = candidate.ptProng1 () * 1000 . - static_cast < int64_t > (candidate.ptProng1 () * 1000 );
737749 if (candidate.pt () < ptMaxForDownSample && pseudoRndm >= downSampleBkgFactor) {
738750 continue ;
739751 }
0 commit comments