Commit 360bf38e authored by Breno Rilho Lemos's avatar Breno Rilho Lemos 💬
Browse files

Fix setting for animating events according to Minimum Average Pz option

parent 1392b0e6
......@@ -236,7 +236,7 @@ void AliAnalysisTaskMyTask::Terminate(Option_t *)
{
// terminate
// called at the END of the analysis (when all events are processed)
cout << endl << "Lowest Pz Mean (<Pz>) = " << lowAvgPz << " at Event " << lowAvgPzEvent;
cout << endl << "Highest Pz Mean (<Pz>) = " << highAvgPz << " at Event " << highAvgPzEvent << endl;
cout << endl << endl << "Lowest Pz Mean (<Pz>) = " << lowAvgPz << " at Event " << lowAvgPzEvent;
cout << endl << "Highest Pz Mean (<Pz>) = " << highAvgPz << " at Event " << highAvgPzEvent << endl << endl;
}
//_____________________________________________________________________________
......@@ -382,7 +382,8 @@ elif [ "$SAMPLE" = "false" ]; then
echo "File $LOCAL_FILE_WITH_DATA has $NUMBER_OF_PARTICLES particles and average Z momentum $AVERAGE_PZ"
if [[ $NUMBER_OF_PARTICLES -le $MAX_PARTICLES && $NUMBER_OF_PARTICLES -ge $MIN_PARTICLES && $EVENT_COUNTER -lt $N_OF_EVENTS && $AVERAGE_PZ -ge $MIN_AVG_PZ ]]; then
if (( $(echo "$AVERAGE_PZ >= $MIN_AVG_PZ" |bc -l) )); then
if [[ $NUMBER_OF_PARTICLES -le $MAX_PARTICLES && $NUMBER_OF_PARTICLES -ge $MIN_PARTICLES && $EVENT_COUNTER -lt $N_OF_EVENTS ]]; then
# Increment event counter
EVENT_COUNTER=$EVENT_COUNTER+1
......@@ -413,8 +414,6 @@ elif [ "$SAMPLE" = "false" ]; then
echo "Too many particles (maximum accepted is $MAX_PARTICLES). Continue."
elif [[ $EVENT_COUNTER -ge $N_OF_EVENTS ]]; then
echo "Numbers of events set to be animated has already been reached. Continue."
elif [[ $AVERAGE_PZ -lt $MIN_AVG_PZ ]]; then
echo "Average Z Momentum too low (minimum accepted is $MIN_AVG_PZ). Continue."
fi
# Remove non-processed files
......@@ -424,6 +423,9 @@ elif [ "$SAMPLE" = "false" ]; then
continue
fi
else
echo "Average Z Momentum too low (minimum accepted is $MIN_AVG_PZ). Continue."
fi
done
popd
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment