Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ALICE-open-data
ALICE Blender animation
Commits
0dcb0082
Commit
0dcb0082
authored
Dec 16, 2019
by
Lucas Mello Schnorr
Browse files
remove datafile externally
parent
6d5a3ccd
Changes
2
Hide whitespace changes
Inline
Side-by-side
aliRoot/runAnalysis.C
View file @
0dcb0082
...
...
@@ -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"
);
...
...
workflow_sketch.sh
View file @
0dcb0082
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment