|
14 | 14 | /// \author Federica Zanone <federica.zanone@cern.ch>, Heidelberg University |
15 | 15 | /// \author Ruiqi Yin <ruiqi.yin@cern.ch>, Fudan University |
16 | 16 | /// \author Yunfan Liu <yunfan.liu@cern.ch>, China University of Geosciences |
| 17 | +/// \author Ran Tu <ran.tu@cern.ch>, Fudan University |
17 | 18 |
|
18 | 19 | #ifndef HomogeneousField |
19 | 20 | #define HomogeneousField // o2-linter: disable=name/macro (required by KFParticle) |
@@ -480,8 +481,9 @@ struct HfCandidateCreatorXic0Omegac0 { |
480 | 481 | std::array<float, 3> vertexCasc = {casc.x(), casc.y(), casc.z()}; |
481 | 482 | std::array<float, 3> pVecCasc = {casc.px(), casc.py(), casc.pz()}; |
482 | 483 | std::array<float, 21> covCasc = {0.}; |
483 | | - constexpr int MomInd[6] = {9, 13, 14, 18, 19, 20}; // cov matrix elements for momentum component |
484 | | - for (int i = 0; i < 6; i++) { |
| 484 | + constexpr int NumCovElements = 6; |
| 485 | + constexpr int MomInd[NumCovElements] = {9, 13, 14, 18, 19, 20}; // cov matrix elements for momentum component |
| 486 | + for (int i = 0; i < NumCovElements; i++) { |
485 | 487 | covCasc[MomInd[i]] = casc.momentumCovMat()[i]; |
486 | 488 | covCasc[i] = casc.positionCovMat()[i]; |
487 | 489 | } |
@@ -1919,63 +1921,65 @@ struct HfCandidateCreatorXic0Omegac0Mc { |
1919 | 1921 | // QA |
1920 | 1922 | if (doprocessMcXicToXiPiKfQa) { |
1921 | 1923 | AxisSpec axisPt{20, 0., 20.}; |
| 1924 | + AxisSpec axisDelta{1000, -0.5, 0.5}; |
1922 | 1925 | AxisSpec axisPull{2000, -10., 10.}; |
| 1926 | + AxisSpec axisPtRes{400, -0.2, 0.2}; |
1923 | 1927 | // mass over pt |
1924 | 1928 | registry.add("hV0MassPullVsPt", "m_{PULL}(V0) vs. p_{T}", HistType::kTH2D, {axisPt, axisPull}); |
1925 | 1929 | registry.add("hXiMassPullVsPt", "m_{PULL}(#Xi^{-}) vs. p_{T}", HistType::kTH2D, {axisPt, axisPull}); |
1926 | 1930 | registry.add("hXic0MassPullVsPt", "m_{PULL}(#Xic0) vs. p_{T}", HistType::kTH2D, {axisPt, axisPull}); |
1927 | 1931 | // delta |
1928 | | - registry.add("hV0DauPosXDelta", "x^{p} - x^{MC}", kTH1D, {axisPull}); |
1929 | | - registry.add("hV0DauPosYDelta", "y^{p} - y^{MC}", kTH1D, {axisPull}); |
1930 | | - registry.add("hV0DauPosZDelta", "z^{p} - z^{MC}", kTH1D, {axisPull}); |
1931 | | - registry.add("hV0DauNegXDelta", "x^{#pi^{-}} - x^{MC}", kTH1D, {axisPull}); |
1932 | | - registry.add("hV0DauNegYDelta", "y^{#pi^{-}} - y^{MC}", kTH1D, {axisPull}); |
1933 | | - registry.add("hV0DauNegZDelta", "z^{#pi^{-}} - z^{MC}", kTH1D, {axisPull}); |
1934 | | - registry.add("hV0XDelta", "x^{#Lambda} - x^{MC}", kTH1D, {axisPull}); |
1935 | | - registry.add("hV0YDelta", "y^{#Lambda} - y^{MC}", kTH1D, {axisPull}); |
1936 | | - registry.add("hV0ZDelta", "z^{#Lambda} - z^{MC}", kTH1D, {axisPull}); |
1937 | | - |
1938 | | - registry.add("hXiBachelorXDelta", "x^{#pi^{-} from #Xi^{-}} - x^{MC}", kTH1D, {axisPull}); |
1939 | | - registry.add("hXiBachelorYDelta", "y^{#pi^{-} from #Xi^{-}} - y^{MC}", kTH1D, {axisPull}); |
1940 | | - registry.add("hXiBachelorZDelta", "z^{#pi^{-} from #Xi^{-}} - z^{MC}", kTH1D, {axisPull}); |
1941 | | - |
1942 | | - registry.add("hXiXDelta", "x^{#Xi^{-}} - x^{MC}", kTH1D, {axisPull}); |
1943 | | - registry.add("hXiYDelta", "y^{#Xi^{-}} - y^{MC}", kTH1D, {axisPull}); |
1944 | | - registry.add("hXiZDelta", "z^{#Xi^{-}} - z^{MC}", kTH1D, {axisPull}); |
1945 | | - |
1946 | | - registry.add("hXic0BachelorXDelta", "x^{#pi^{+} from #Xi_{c}^{0}} - x^{MC}", kTH1D, {axisPull}); |
1947 | | - registry.add("hXic0BachelorYDelta", "y^{#pi^{+} from #Xi_{c}^{0}} - y^{MC}", kTH1D, {axisPull}); |
1948 | | - registry.add("hXic0BachelorZDelta", "z^{#pi^{+} from #Xi_{c}^{0}} - z^{MC}", kTH1D, {axisPull}); |
1949 | | - |
1950 | | - registry.add("hXic0XDelta", "x^{#Xi_(c)^(0)} - x^{MC}", kTH1D, {axisPull}); |
1951 | | - registry.add("hXic0YDelta", "y^{#Xi_(c)^(0)} - y^{MC}", kTH1D, {axisPull}); |
1952 | | - registry.add("hXic0ZDelta", "z^{#Xi_(c)^(0)} - z^{MC}", kTH1D, {axisPull}); |
| 1932 | + registry.add("hV0DauPosXDelta", "x^{p} - x^{MC}", kTH1D, {axisDelta}); |
| 1933 | + registry.add("hV0DauPosYDelta", "y^{p} - y^{MC}", kTH1D, {axisDelta}); |
| 1934 | + registry.add("hV0DauPosZDelta", "z^{p} - z^{MC}", kTH1D, {axisDelta}); |
| 1935 | + registry.add("hV0DauNegXDelta", "x^{#pi^{-}} - x^{MC}", kTH1D, {axisDelta}); |
| 1936 | + registry.add("hV0DauNegYDelta", "y^{#pi^{-}} - y^{MC}", kTH1D, {axisDelta}); |
| 1937 | + registry.add("hV0DauNegZDelta", "z^{#pi^{-}} - z^{MC}", kTH1D, {axisDelta}); |
| 1938 | + registry.add("hV0XDelta", "x^{#Lambda} - x^{MC}", kTH1D, {axisDelta}); |
| 1939 | + registry.add("hV0YDelta", "y^{#Lambda} - y^{MC}", kTH1D, {axisDelta}); |
| 1940 | + registry.add("hV0ZDelta", "z^{#Lambda} - z^{MC}", kTH1D, {axisDelta}); |
| 1941 | + |
| 1942 | + registry.add("hXiBachelorXDelta", "x^{#pi^{-} from #Xi^{-}} - x^{MC}", kTH1D, {axisDelta}); |
| 1943 | + registry.add("hXiBachelorYDelta", "y^{#pi^{-} from #Xi^{-}} - y^{MC}", kTH1D, {axisDelta}); |
| 1944 | + registry.add("hXiBachelorZDelta", "z^{#pi^{-} from #Xi^{-}} - z^{MC}", kTH1D, {axisDelta}); |
| 1945 | + |
| 1946 | + registry.add("hXiXDelta", "x^{#Xi^{-}} - x^{MC}", kTH1D, {axisDelta}); |
| 1947 | + registry.add("hXiYDelta", "y^{#Xi^{-}} - y^{MC}", kTH1D, {axisDelta}); |
| 1948 | + registry.add("hXiZDelta", "z^{#Xi^{-}} - z^{MC}", kTH1D, {axisDelta}); |
| 1949 | + |
| 1950 | + registry.add("hXic0BachelorXDelta", "x^{#pi^{+} from #Xi_{c}^{0}} - x^{MC}", kTH1D, {axisDelta}); |
| 1951 | + registry.add("hXic0BachelorYDelta", "y^{#pi^{+} from #Xi_{c}^{0}} - y^{MC}", kTH1D, {axisDelta}); |
| 1952 | + registry.add("hXic0BachelorZDelta", "z^{#pi^{+} from #Xi_{c}^{0}} - z^{MC}", kTH1D, {axisDelta}); |
| 1953 | + |
| 1954 | + registry.add("hXic0XDelta", "x^{#Xi_(c)^(0)} - x^{MC}", kTH1D, {axisDelta}); |
| 1955 | + registry.add("hXic0YDelta", "y^{#Xi_(c)^(0)} - y^{MC}", kTH1D, {axisDelta}); |
| 1956 | + registry.add("hXic0ZDelta", "z^{#Xi_(c)^(0)} - z^{MC}", kTH1D, {axisDelta}); |
1953 | 1957 | // delta over pt |
1954 | | - registry.add("hV0DauPosXDeltaVsPt", "#Delta_{x}(p) vs. p_{T}", HistType::kTH2D, {axisPt, axisPull}); |
1955 | | - registry.add("hV0DauPosYDeltaVsPt", "#Delta_{y}(p) vs. p_{T}", HistType::kTH2D, {axisPt, axisPull}); |
1956 | | - registry.add("hV0DauPosZDeltaVsPt", "#Delta_{z}(p) vs. p_{T}", HistType::kTH2D, {axisPt, axisPull}); |
1957 | | - registry.add("hV0DauNegXDeltaVsPt", "#Delta_{x}(#pi) vs. p_{T}", HistType::kTH2D, {axisPt, axisPull}); |
1958 | | - registry.add("hV0DauNegYDeltaVsPt", "#Delta_{y}(#pi) vs. p_{T}", HistType::kTH2D, {axisPt, axisPull}); |
1959 | | - registry.add("hV0DauNegZDeltaVsPt", "#Delta_{z}(#pi) vs. p_{T}", HistType::kTH2D, {axisPt, axisPull}); |
1960 | | - registry.add("hV0XDeltaVsPt", "#Delta_{x}(#Lambda) vs. p_{T}", HistType::kTH2D, {axisPt, axisPull}); |
1961 | | - registry.add("hV0YDeltaVsPt", "#Delta_{y}(#Lambda) vs. p_{T}", HistType::kTH2D, {axisPt, axisPull}); |
1962 | | - registry.add("hV0ZDeltaVsPt", "#Delta_{z}(#Lambda) vs. p_{T}", HistType::kTH2D, {axisPt, axisPull}); |
1963 | | - |
1964 | | - registry.add("hXiBachelorXDeltaVsPt", "#Delta_{x}(#pi^{-} from #Xi^{-}) vs. p_{T}", HistType::kTH2D, {axisPt, axisPull}); |
1965 | | - registry.add("hXiBachelorYDeltaVsPt", "#Delta_{y}(#pi^{-} from #Xi^{-}) vs. p_{T}", HistType::kTH2D, {axisPt, axisPull}); |
1966 | | - registry.add("hXiBachelorZDeltaVsPt", "#Delta_{z}(#pi^{-} from #Xi^{-}) vs. p_{T}", HistType::kTH2D, {axisPt, axisPull}); |
1967 | | - |
1968 | | - registry.add("hXiXDeltaVsPt", "#Delta_{x}(#Xi^{-}) vs. p_{T}", HistType::kTH2D, {axisPt, axisPull}); |
1969 | | - registry.add("hXiYDeltaVsPt", "#Delta_{y}(#Xi^{-}) vs. p_{T}", HistType::kTH2D, {axisPt, axisPull}); |
1970 | | - registry.add("hXiZDeltaVsPt", "#Delta_{z}(#Xi^{-}) vs. p_{T}", HistType::kTH2D, {axisPt, axisPull}); |
1971 | | - |
1972 | | - registry.add("hXic0BachelorXDeltaVsPt", "#Delta_{x}(#pi^{+} from #Xi_{c}^{0}) vs. p_{T}", HistType::kTH2D, {axisPt, axisPull}); |
1973 | | - registry.add("hXic0BachelorYDeltaVsPt", "#Delta_{y}(#pi^{+} from #Xi_{c}^{0}) vs. p_{T}", HistType::kTH2D, {axisPt, axisPull}); |
1974 | | - registry.add("hXic0BachelorZDeltaVsPt", "#Delta_{z}(#pi^{+} from #Xi_{c}^{0}) vs. p_{T}", HistType::kTH2D, {axisPt, axisPull}); |
1975 | | - |
1976 | | - registry.add("hXic0XDeltaVsPt", "#Delta_{x}(#Xi_{c}^{0}) vs. p_{T}", HistType::kTH2D, {axisPt, axisPull}); |
1977 | | - registry.add("hXic0YDeltaVsPt", "#Delta_{y}(#Xi_{c}^{0}) vs. p_{T}", HistType::kTH2D, {axisPt, axisPull}); |
1978 | | - registry.add("hXic0ZDeltaVsPt", "#Delta_{z}(#Xi_{c}^{0}) vs. p_{T}", HistType::kTH2D, {axisPt, axisPull}); |
| 1958 | + registry.add("hV0DauPosXDeltaVsPt", "#Delta_{x}(p) vs. p_{T}", HistType::kTH2D, {axisPt, axisDelta}); |
| 1959 | + registry.add("hV0DauPosYDeltaVsPt", "#Delta_{y}(p) vs. p_{T}", HistType::kTH2D, {axisPt, axisDelta}); |
| 1960 | + registry.add("hV0DauPosZDeltaVsPt", "#Delta_{z}(p) vs. p_{T}", HistType::kTH2D, {axisPt, axisDelta}); |
| 1961 | + registry.add("hV0DauNegXDeltaVsPt", "#Delta_{x}(#pi) vs. p_{T}", HistType::kTH2D, {axisPt, axisDelta}); |
| 1962 | + registry.add("hV0DauNegYDeltaVsPt", "#Delta_{y}(#pi) vs. p_{T}", HistType::kTH2D, {axisPt, axisDelta}); |
| 1963 | + registry.add("hV0DauNegZDeltaVsPt", "#Delta_{z}(#pi) vs. p_{T}", HistType::kTH2D, {axisPt, axisDelta}); |
| 1964 | + registry.add("hV0XDeltaVsPt", "#Delta_{x}(#Lambda) vs. p_{T}", HistType::kTH2D, {axisPt, axisDelta}); |
| 1965 | + registry.add("hV0YDeltaVsPt", "#Delta_{y}(#Lambda) vs. p_{T}", HistType::kTH2D, {axisPt, axisDelta}); |
| 1966 | + registry.add("hV0ZDeltaVsPt", "#Delta_{z}(#Lambda) vs. p_{T}", HistType::kTH2D, {axisPt, axisDelta}); |
| 1967 | + |
| 1968 | + registry.add("hXiBachelorXDeltaVsPt", "#Delta_{x}(#pi^{-} from #Xi^{-}) vs. p_{T}", HistType::kTH2D, {axisPt, axisDelta}); |
| 1969 | + registry.add("hXiBachelorYDeltaVsPt", "#Delta_{y}(#pi^{-} from #Xi^{-}) vs. p_{T}", HistType::kTH2D, {axisPt, axisDelta}); |
| 1970 | + registry.add("hXiBachelorZDeltaVsPt", "#Delta_{z}(#pi^{-} from #Xi^{-}) vs. p_{T}", HistType::kTH2D, {axisPt, axisDelta}); |
| 1971 | + |
| 1972 | + registry.add("hXiXDeltaVsPt", "#Delta_{x}(#Xi^{-}) vs. p_{T}", HistType::kTH2D, {axisPt, axisDelta}); |
| 1973 | + registry.add("hXiYDeltaVsPt", "#Delta_{y}(#Xi^{-}) vs. p_{T}", HistType::kTH2D, {axisPt, axisDelta}); |
| 1974 | + registry.add("hXiZDeltaVsPt", "#Delta_{z}(#Xi^{-}) vs. p_{T}", HistType::kTH2D, {axisPt, axisDelta}); |
| 1975 | + |
| 1976 | + registry.add("hXic0BachelorXDeltaVsPt", "#Delta_{x}(#pi^{+} from #Xi_{c}^{0}) vs. p_{T}", HistType::kTH2D, {axisPt, axisDelta}); |
| 1977 | + registry.add("hXic0BachelorYDeltaVsPt", "#Delta_{y}(#pi^{+} from #Xi_{c}^{0}) vs. p_{T}", HistType::kTH2D, {axisPt, axisDelta}); |
| 1978 | + registry.add("hXic0BachelorZDeltaVsPt", "#Delta_{z}(#pi^{+} from #Xi_{c}^{0}) vs. p_{T}", HistType::kTH2D, {axisPt, axisDelta}); |
| 1979 | + |
| 1980 | + registry.add("hXic0XDeltaVsPt", "#Delta_{x}(#Xi_{c}^{0}) vs. p_{T}", HistType::kTH2D, {axisPt, axisDelta}); |
| 1981 | + registry.add("hXic0YDeltaVsPt", "#Delta_{y}(#Xi_{c}^{0}) vs. p_{T}", HistType::kTH2D, {axisPt, axisDelta}); |
| 1982 | + registry.add("hXic0ZDeltaVsPt", "#Delta_{z}(#Xi_{c}^{0}) vs. p_{T}", HistType::kTH2D, {axisPt, axisDelta}); |
1979 | 1983 |
|
1980 | 1984 | // pull |
1981 | 1985 | registry.add("hV0DauPosXPull", "x^{PULL}", kTH1D, {axisPull}); |
@@ -2031,22 +2035,22 @@ struct HfCandidateCreatorXic0Omegac0Mc { |
2031 | 2035 | registry.add("hXic0ZPullVsPt", "z_{PULL}(#Xi_{c}^{0}) vs. p_{T}", HistType::kTH2D, {axisPt, axisPull}); |
2032 | 2036 |
|
2033 | 2037 | // Defaut delta |
2034 | | - registry.add("hLambdaXDelta", "x^{#Lambda} - x^{MC}(Default)", kTH1D, {axisPull}); |
2035 | | - registry.add("hLambdaYDelta", "y^{#Lambda} - y^{MC}(Default)", kTH1D, {axisPull}); |
2036 | | - registry.add("hLambdaZDelta", "z^{#Lambda} - z^{MC}(Default)", kTH1D, {axisPull}); |
| 2038 | + registry.add("hLambdaXDelta", "x^{#Lambda} - x^{MC}(Default)", kTH1D, {axisDelta}); |
| 2039 | + registry.add("hLambdaYDelta", "y^{#Lambda} - y^{MC}(Default)", kTH1D, {axisDelta}); |
| 2040 | + registry.add("hLambdaZDelta", "z^{#Lambda} - z^{MC}(Default)", kTH1D, {axisDelta}); |
2037 | 2041 |
|
2038 | | - registry.add("hCascXDelta", "x^{#Xi^{-}} - x^{MC}(Default)", kTH1D, {axisPull}); |
2039 | | - registry.add("hCascYDelta", "y^{#Xi^{-}} - y^{MC}(Default)", kTH1D, {axisPull}); |
2040 | | - registry.add("hCascZDelta", "z^{#Xi^{-}} - z^{MC}(Default)", kTH1D, {axisPull}); |
| 2042 | + registry.add("hCascXDelta", "x^{#Xi^{-}} - x^{MC}(Default)", kTH1D, {axisDelta}); |
| 2043 | + registry.add("hCascYDelta", "y^{#Xi^{-}} - y^{MC}(Default)", kTH1D, {axisDelta}); |
| 2044 | + registry.add("hCascZDelta", "z^{#Xi^{-}} - z^{MC}(Default)", kTH1D, {axisDelta}); |
2041 | 2045 |
|
2042 | 2046 | // Pt Resolution |
2043 | | - registry.add("hV0DauPosPtRes", "Pt Resolution (p)", kTH1D, {axisPull}); |
2044 | | - registry.add("hV0DauNegPtRes", "Pt Resolution (#pi^{-} from #Lambda)", kTH1D, {axisPull}); |
2045 | | - registry.add("hV0PtRes", "Pt Resolution (V0)", kTH1D, {axisPull}); |
2046 | | - registry.add("hXiBachelorPtRes", "Pt Resolution (#pi^{-} from #Xi^{-})", kTH1D, {axisPull}); |
2047 | | - registry.add("hXiPtRes", "Pt Resolution (#Xi^{-})", kTH1D, {axisPull}); |
2048 | | - registry.add("hXic0BachelorPtRes", "Pt Resolution (#pi^{+} from #Xi_{c}^{0})", kTH1D, {axisPull}); |
2049 | | - registry.add("hXic0PtRes", "Pt Resolution (#Xi_{c}^{0})", kTH1D, {axisPull}); |
| 2047 | + registry.add("hV0DauPosPtRes", "Pt Resolution (p)", kTH1D, {axisPtRes}); |
| 2048 | + registry.add("hV0DauNegPtRes", "Pt Resolution (#pi^{-} from #Lambda)", kTH1D, {axisPtRes}); |
| 2049 | + registry.add("hV0PtRes", "Pt Resolution (V0)", kTH1D, {axisPtRes}); |
| 2050 | + registry.add("hXiBachelorPtRes", "Pt Resolution (#pi^{-} from #Xi^{-})", kTH1D, {axisPtRes}); |
| 2051 | + registry.add("hXiPtRes", "Pt Resolution (#Xi^{-})", kTH1D, {axisPtRes}); |
| 2052 | + registry.add("hXic0BachelorPtRes", "Pt Resolution (#pi^{+} from #Xi_{c}^{0})", kTH1D, {axisPtRes}); |
| 2053 | + registry.add("hXic0PtRes", "Pt Resolution (#Xi_{c}^{0})", kTH1D, {axisPtRes}); |
2050 | 2054 | } |
2051 | 2055 | } |
2052 | 2056 |
|
@@ -2351,6 +2355,8 @@ struct HfCandidateCreatorXic0Omegac0Mc { |
2351 | 2355 | debugGenLambda = 0; |
2352 | 2356 | origin = RecoDecay::OriginType::None; |
2353 | 2357 | std::vector<int> idxBhadMothers{}; |
| 2358 | + float kRapidityCutTight = 0.5; |
| 2359 | + float kRapidityCutLoose = 0.8; |
2354 | 2360 |
|
2355 | 2361 | // Reject particles from background events |
2356 | 2362 | if (particle.fromBackgroundEvent() && rejectBackground) { |
@@ -2395,10 +2401,10 @@ struct HfCandidateCreatorXic0Omegac0Mc { |
2395 | 2401 | // Check whether the charm baryon is non-prompt (from a b quark) |
2396 | 2402 | if (flag != 0) { |
2397 | 2403 | origin = RecoDecay::getCharmHadronOrigin(mcParticles, particle, false, &idxBhadMothers); |
2398 | | - if (std::abs(rapidityCharmBaryonGen) < 0.5) { |
| 2404 | + if (std::abs(rapidityCharmBaryonGen) < kRapidityCutTight) { |
2399 | 2405 | hGenCharmBaryonPtRapidityTightXicToXiPi->SetBinContent(hGenCharmBaryonPtRapidityTightXicToXiPi->FindBin(ptCharmBaryonGen), hGenCharmBaryonPtRapidityTightXicToXiPi->GetBinContent(hGenCharmBaryonPtRapidityTightXicToXiPi->FindBin(ptCharmBaryonGen)) + 1); |
2400 | 2406 | } |
2401 | | - if (std::abs(rapidityCharmBaryonGen) < 0.8) { |
| 2407 | + if (std::abs(rapidityCharmBaryonGen) < kRapidityCutLoose) { |
2402 | 2408 | hGenCharmBaryonPtRapidityLooseXicToXiPi->SetBinContent(hGenCharmBaryonPtRapidityLooseXicToXiPi->FindBin(ptCharmBaryonGen), hGenCharmBaryonPtRapidityLooseXicToXiPi->GetBinContent(hGenCharmBaryonPtRapidityLooseXicToXiPi->FindBin(ptCharmBaryonGen)) + 1); |
2403 | 2409 | } |
2404 | 2410 | } |
@@ -2437,10 +2443,10 @@ struct HfCandidateCreatorXic0Omegac0Mc { |
2437 | 2443 | // Check whether the charm baryon is non-prompt (from a b quark) |
2438 | 2444 | if (flag != 0) { |
2439 | 2445 | origin = RecoDecay::getCharmHadronOrigin(mcParticles, particle, false, &idxBhadMothers); |
2440 | | - if (std::abs(rapidityCharmBaryonGen) < 0.5) { |
| 2446 | + if (std::abs(rapidityCharmBaryonGen) < kRapidityCutTight) { |
2441 | 2447 | hGenCharmBaryonPtRapidityTightOmegacToXiPi->SetBinContent(hGenCharmBaryonPtRapidityTightOmegacToXiPi->FindBin(ptCharmBaryonGen), hGenCharmBaryonPtRapidityTightOmegacToXiPi->GetBinContent(hGenCharmBaryonPtRapidityTightOmegacToXiPi->FindBin(ptCharmBaryonGen)) + 1); |
2442 | 2448 | } |
2443 | | - if (std::abs(rapidityCharmBaryonGen) < 0.8) { |
| 2449 | + if (std::abs(rapidityCharmBaryonGen) < kRapidityCutLoose) { |
2444 | 2450 | hGenCharmBaryonPtRapidityLooseOmegacToXiPi->SetBinContent(hGenCharmBaryonPtRapidityLooseOmegacToXiPi->FindBin(ptCharmBaryonGen), hGenCharmBaryonPtRapidityLooseOmegacToXiPi->GetBinContent(hGenCharmBaryonPtRapidityLooseOmegacToXiPi->FindBin(ptCharmBaryonGen)) + 1); |
2445 | 2451 | } |
2446 | 2452 | } |
@@ -2479,10 +2485,10 @@ struct HfCandidateCreatorXic0Omegac0Mc { |
2479 | 2485 | // Check whether the charm baryon is non-prompt (from a b quark) |
2480 | 2486 | if (flag != 0) { |
2481 | 2487 | origin = RecoDecay::getCharmHadronOrigin(mcParticles, particle, false, &idxBhadMothers); |
2482 | | - if (std::abs(rapidityCharmBaryonGen) < 0.5) { |
| 2488 | + if (std::abs(rapidityCharmBaryonGen) < kRapidityCutTight) { |
2483 | 2489 | hGenCharmBaryonPtRapidityTightOmegacToOmegaPi->SetBinContent(hGenCharmBaryonPtRapidityTightOmegacToOmegaPi->FindBin(ptCharmBaryonGen), hGenCharmBaryonPtRapidityTightOmegacToOmegaPi->GetBinContent(hGenCharmBaryonPtRapidityTightOmegacToOmegaPi->FindBin(ptCharmBaryonGen)) + 1); |
2484 | 2490 | } |
2485 | | - if (std::abs(rapidityCharmBaryonGen) < 0.8) { |
| 2491 | + if (std::abs(rapidityCharmBaryonGen) < kRapidityCutLoose) { |
2486 | 2492 | hGenCharmBaryonPtRapidityLooseOmegacToOmegaPi->SetBinContent(hGenCharmBaryonPtRapidityLooseOmegacToOmegaPi->FindBin(ptCharmBaryonGen), hGenCharmBaryonPtRapidityLooseOmegacToOmegaPi->GetBinContent(hGenCharmBaryonPtRapidityLooseOmegacToOmegaPi->FindBin(ptCharmBaryonGen)) + 1); |
2487 | 2493 | } |
2488 | 2494 | } |
@@ -2521,10 +2527,10 @@ struct HfCandidateCreatorXic0Omegac0Mc { |
2521 | 2527 | // Check whether the charm baryon is non-prompt (from a b quark) |
2522 | 2528 | if (flag != 0) { |
2523 | 2529 | origin = RecoDecay::getCharmHadronOrigin(mcParticles, particle, false, &idxBhadMothers); |
2524 | | - if (std::abs(rapidityCharmBaryonGen) < 0.5) { |
| 2530 | + if (std::abs(rapidityCharmBaryonGen) < kRapidityCutTight) { |
2525 | 2531 | hGenCharmBaryonPtRapidityTightOmegacToOmegaK->SetBinContent(hGenCharmBaryonPtRapidityTightOmegacToOmegaK->FindBin(ptCharmBaryonGen), hGenCharmBaryonPtRapidityTightOmegacToOmegaK->GetBinContent(hGenCharmBaryonPtRapidityTightOmegacToOmegaK->FindBin(ptCharmBaryonGen)) + 1); |
2526 | 2532 | } |
2527 | | - if (std::abs(rapidityCharmBaryonGen) < 0.8) { |
| 2533 | + if (std::abs(rapidityCharmBaryonGen) < kRapidityCutLoose) { |
2528 | 2534 | hGenCharmBaryonPtRapidityLooseOmegacToOmegaK->SetBinContent(hGenCharmBaryonPtRapidityLooseOmegacToOmegaK->FindBin(ptCharmBaryonGen), hGenCharmBaryonPtRapidityLooseOmegacToOmegaK->GetBinContent(hGenCharmBaryonPtRapidityLooseOmegacToOmegaK->FindBin(ptCharmBaryonGen)) + 1); |
2529 | 2535 | } |
2530 | 2536 | } |
|
0 commit comments