Commit 0dcb0082 authored by Lucas Mello Schnorr's avatar Lucas Mello Schnorr

remove datafile externally

parent 6d5a3ccd
......@@ -8,15 +8,12 @@
int runAnalysis(int selected_event=0)
{
ofstream esd_detail, s_event;
ofstream s_event;
s_event.open ("s-event.dat");
s_event << selected_event;
s_event.close();
esd_detail.open ("esd-detail.dat");
esd_detail.close();
// since we will compile a class, tell root where to look for headers
gROOT->ProcessLine(".include $ROOTSYS/include");
gROOT->ProcessLine(".include $ALICE_ROOT/include");
......
......@@ -105,6 +105,7 @@ elif [ "$DEFAULT_ANIMATION" = "false" ]; then
# Check if events_number.dat file exists
FILE_WITH_NUMBER_OF_EVENTS=events_number.dat
FILE_WITH_DATA=esd-detail.dat
if ! [[ -e ${FILE_WITH_NUMBER_OF_EVENTS} ]]; then
echo "File $FILE_WITH_NUMBER_OF_EVENTS does not exist. Abort."
exit
......@@ -119,6 +120,7 @@ elif [ "$DEFAULT_ANIMATION" = "false" ]; then
fi
# Erase output txt files
rm -f ${FILE_WITH_NUMBER_OF_EVENTS}
rm -f ${FILE_WITH_DATA}
exit
......@@ -137,7 +139,7 @@ elif [ "$DEFAULT_ANIMATION" = "false" ]; then
mv --verbose ${ALIROOT_SCRIPT_DIR}/esd-detail.dat ${BLENDER_SCRIPT_DIR}
pushd ${BLENDER_SCRIPT_DIR}
for type in "BarrelCamera" "OverviewCamera" "ForwardCamera"; do
blender -noaudio --background -P animate_particles.py -- -radius=0.05 -duration=1 -camera=${type} -datafile="esd-detail.dat" -n_event=$i -simulated_t=0.02 -fps=5 -resolution=50 -stamp_note="Texto no canto"
blender -noaudio --background -P animate_particles.py -- -radius=0.05 -duration=1 -camera=${type} -datafile="${FILE_WITH_DATA}" -n_event=$i -simulated_t=0.02 -fps=5 -resolution=50 -stamp_note="Texto no canto"
echo "${type} for event $i done."
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