Commit 6d5a3ccd authored by Lucas Mello Schnorr's avatar Lucas Mello Schnorr
Browse files

put this outside to simplify program

parent b614e8cc
...@@ -8,11 +8,7 @@ ...@@ -8,11 +8,7 @@
int runAnalysis(int selected_event=0) int runAnalysis(int selected_event=0)
{ {
// Erase output txt files ofstream esd_detail, s_event;
ofstream esd_detail, s_event, events_number;
events_number.open ("events_number.dat");
events_number.close();
s_event.open ("s-event.dat"); s_event.open ("s-event.dat");
s_event << selected_event; s_event << selected_event;
......
...@@ -117,6 +117,10 @@ elif [ "$DEFAULT_ANIMATION" = "false" ]; then ...@@ -117,6 +117,10 @@ elif [ "$DEFAULT_ANIMATION" = "false" ]; then
else else
echo "The number of events in the file is ${n_events}." echo "The number of events in the file is ${n_events}."
fi fi
# Erase output txt files
rm -f ${FILE_WITH_NUMBER_OF_EVENTS}
exit
for ((i=0; i<n_events; i++)); do for ((i=0; i<n_events; i++)); do
......
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