Commit 786348ff by Breno Rilho Lemos 💬

Stop using scientific notation for average momentum

parent 40ccd433
 ... ... @@ -311,7 +311,7 @@ def createSceneParticles(particles, r_part=1, createTracks = False): clBlue = (0, 0, 1) clMagenta = (0.75, 0, 1) clYellow = (1, 1, 0) clWhite = (255, 255, 255) clWhite = (0.8, 0.8, 0.8) particle_colors = {"Electron":clRed, "Pion":clGreen, "Muon":clBlue, "Proton":clMagenta, "Kaon": clYellow, "Unknown": clWhite} # Create Materials ... ...
 ... ... @@ -554,10 +554,10 @@ elif [ "\$SAMPLE" = "false" ]; then NUMBER_OF_PARTICLES=\$(wc -l \$LOCAL_FILE_WITH_DATA | \ awk '{ print \$1 }') AVERAGE_PZ=\$(awk 'BEGIN {pzsum=0;n=0} {pzsum+=\$8;n++} END {print sqrt(pzsum*pzsum/n/n)}'\ AVERAGE_PZ=\$(awk 'BEGIN {pzsum=0;n=0} {pzsum+=\$8;n++} END {printf "%f", sqrt(pzsum*pzsum/n/n)}'\ \${LOCAL_FILE_WITH_DATA}) AVERAGE_PT=\$(awk 'BEGIN {ptsum=0;n=0} {ptsum+=\$9;n++} END {print ptsum/n}' \ AVERAGE_PT=\$(awk 'BEGIN {ptsum=0;n=0} {ptsum+=\$9;n++} END {printf "%f", ptsum/n}' \ \${LOCAL_FILE_WITH_DATA}) echo "File \$LOCAL_FILE_WITH_DATA:" ... ...
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!