Skip to content

Commit 297c41e

Browse files
committed
Minor fixes
1 parent d5fdc21 commit 297c41e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

PWGLF/TableProducer/Strangeness/strangenesstofpid.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +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"};
110+
Configurable<int> numberOfStepsSecondStage{"numberOfStepsSecondStage", 500, "Max number of steps rotations to attempt in second stage"};
111111
Configurable<float> stepSizeFirstStage{"stepSizeFirstStage", 2.0f, "Max number of alpha rotations to attempt in first stage"};
112112
Configurable<float> firstApproximationThreshold{"firstApproximationThreshold",4.0f, "be satisfied if first approach to TOF radius is OK within this threshold (cm)"};
113113

@@ -387,7 +387,9 @@ struct strangenesstofpid {
387387
bool getXatLabRok = track.getXatLabR(propagationConfiguration.tofPosition, tofX, d_bz, o2::track::DirOutward);
388388
if(std::abs(tofX-currentX)<propagationConfiguration.firstApproximationThreshold.value){
389389
// signal conclusion
390-
histos.fill(HIST("hInitialPropagationSteps"), iRot); // store number of steps
390+
if(calculationMethod.value==2){
391+
histos.fill(HIST("hInitialPropagationSteps"), iRot); // store number of steps
392+
}
391393
break;
392394
}
393395
float nextX = std::min(currentX + propagationConfiguration.stepSizeFirstStage.value,tofX);

0 commit comments

Comments
 (0)