Skip to content

Commit 67ff9b3

Browse files
authored
Introduce configurable limits for kinematic matching
Added configurable parameters for kinematic matching thresholds.
1 parent 49b3094 commit 67ff9b3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

PWGCF/TwoParticleCorrelations/Tasks/lambdaSpinPolarization.cxx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1550,6 +1550,10 @@ struct LambdaSpinPolarization {
15501550
ConfigurableAxis axisCentME{"axisCentME", {VARIABLE_WIDTH, 0, 10, 30, 50, 100}, "Mixing bins - centrality (%)"};
15511551
ConfigurableAxis axisVtxZME{"axisVtxZME", {VARIABLE_WIDTH, -7, -3, 0, 3, 7}, "Mixing bins - z-vertex"};
15521552

1553+
Configurable<float> cMaxDeltaPt{"cMaxDeltaPt", 0.1f, "Max delta pT for kinematic matching (GeV/c)"};
1554+
Configurable<float> cMaxDeltaPhi{"cMaxDeltaPhi", 0.1f, "Max delta phi for kinematic matching (rad)"};
1555+
Configurable<float> cMaxDeltaRap{"cMaxDeltaRap", 0.1f, "Max delta rapidity for kinematic matching"};
1556+
15531557
// Histogram Registry.
15541558
HistogramRegistry histos{"histos", {}, OutputObjHandlingPolicy::AnalysisObject};
15551559

@@ -1672,12 +1676,12 @@ struct LambdaSpinPolarization {
16721676
continue;
16731677
}
16741678

1675-
// CRITICAL: Kinematic matching
1679+
// Kinematic matching with named constants
16761680
float deltaPt = std::abs(trk_1.pt() - trk_2.pt());
16771681
float deltaPhi = std::abs(RecoDecay::constrainAngle(trk_1.phi() - trk_2.phi(), -PI));
16781682
float deltaRap = std::abs(trk_1.rap() - trk_2.rap());
16791683

1680-
if (deltaPt < 0.1 && deltaPhi < 0.1 && deltaRap < 0.1) {
1684+
if (deltaPt < cMaxDeltaPt && deltaPhi < cMaxDeltaPhi && deltaRap < cMaxDeltaRap) {
16811685
fillPairHistos<part_pair>(trk_1, trk_2);
16821686
}
16831687
}

0 commit comments

Comments
 (0)