Skip to content

Commit d5fdc21

Browse files
committed
Minor adjustments
1 parent fe13016 commit d5fdc21

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

PWGLF/TableProducer/Strangeness/strangenesstofpid.cxx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ struct strangenesstofpid {
107107

108108
Configurable<bool> correctELossInclination{"correctELossInclination", false, "factor out inclination when doing effective e-loss correction (0: no, 1: yes)"};
109109
Configurable<int> numberOfStepsFirstStage{"numberOfStepsFirstStage", 500, "Max number of alpha rotations to attempt in first stage"};
110+
Configurable<int> numberOfStepsFirstStage{"numberOfStepsSecondStage", 500, "Max number of steps rotations to attempt in second stage"};
110111
Configurable<float> stepSizeFirstStage{"stepSizeFirstStage", 2.0f, "Max number of alpha rotations to attempt in first stage"};
111112
Configurable<float> firstApproximationThreshold{"firstApproximationThreshold",4.0f, "be satisfied if first approach to TOF radius is OK within this threshold (cm)"};
112113

@@ -367,7 +368,7 @@ struct strangenesstofpid {
367368
static constexpr float MAX_SIN_PHI = 0.85f;
368369
static constexpr float MAX_STEP = 2.0f;
369370
static constexpr float MAX_STEP_FINAL_STAGE = 0.5f;
370-
static constexpr float MAX_FINAL_X = 390.0f; // maximum extra X on top of TOF X for correcting value
371+
static constexpr float MAX_FINAL_X = 450.0f; // maximum extra X on top of TOF X for correcting value
371372

372373
//____________________________________________________________
373374
// stage 1: propagate to TOF-inscribed circle at tofPosition
@@ -415,7 +416,7 @@ struct strangenesstofpid {
415416
float trackXextra = track.getX();
416417
bool trackOKextra = true;
417418
int propagationSteps = 0;
418-
while (trackXextra < MAX_FINAL_X && propagationSteps < 1000) {
419+
while (trackXextra < MAX_FINAL_X && propagationSteps < propagationConfiguration.numberOfStepsSecondStage.value) {
419420
// continue with alpha aligned with pT
420421
track.getPxPyPzGlo(pxpypz);
421422
track.rotateParam(std::atan2(pxpypz[1], pxpypz[0]));
@@ -1060,6 +1061,8 @@ struct strangenesstofpid {
10601061
histos.fill(HIST("hDeltaTimeMethodsVsP_negLaPi"), negativeP, v0.negativeeta(), (timeNegativePi_Method0 - timeNegativePi_Method1) * negativeCosine);
10611062
histos.fill(HIST("hRatioTimeMethodsVsP_negLaPi"), negativeP, v0.negativeeta(), (timeNegativePi_Method1 / timeNegativePi_Method0));
10621063
}
1064+
// delta lambda decay time
1065+
histos.fill(HIST("h2dLambdaDeltaDecayTime"), v0.p(), deltaDecayTimeLambda);
10631066
if (doQANSigma)
10641067
histos.fill(HIST("h2dNSigmaNegativeLambdaPi"), v0.p(), nSigmaNegativeLambdaPi);
10651068
}
@@ -1083,8 +1086,6 @@ struct strangenesstofpid {
10831086
}
10841087
}
10851088
}
1086-
// delta lambda decay time
1087-
histos.fill(HIST("h2dLambdaDeltaDecayTime"), v0.p(), deltaDecayTimeLambda);
10881089
}
10891090
}
10901091

0 commit comments

Comments
 (0)