Installation instructions:
Installation part that you have
to do only once:
Things you do once :
- create a directory somewhere for source code, executables and
calibration parameters, say "~/sasy" ( ~/ denotes
your home directory
in linux) ; this is the directory to which $SasyHomeDir has to point to.
- (optional) create directory where you would keep your makers -
it must be in $SasyHomeDir and must start with "maker" ; for
example
makerKA, where KA are my initials
- (optional) create directory where you would keep your selectors
- it must be in $SasyHomeDir and must start with "selector" ; for
example selectorKA, where KA are my initials
- (optional) create directory where you would keep your programs -
it must be in $SasyHomeDir and must start with "programs" ; for
example programsKA, where KA are my initials
- (optional) create directory where you would keep your macros -
it must be in $SasyHomeDir and must start with "macros" ; for
example
macrosKA, where KA are my initials
- create directory where you would keep data files -
mkdir ~/data_dir ( or : ln -s YourDataDirectory
~/data_dir)
- create directory where SasySoft would put output files with
histograms - mkdir ~/sasy/hist (or : ln -s
YourHistDir ~/sasy/hist)
- (optional, in fact it is faster and more practical to create
subsets of data instead, but it is possible to use eventlists too)
create directory where you would keep your event lists - mkdir
$(SasyHomeDir)/eventLists (or : ln -s
YourEventListsDir ~/eventLists
make sure you are using "bash" shell ( in user preferences set default
shell to "bash" or on command line say: bash) and have the following
lines at the end of your ~/.bashrc file:
- export COMPILER='g++'
(for parallel code need to use COMPILER="mpiCC -DPARALLEL")
- export
SasyHomeDir='~/sasy'
(directory could be different but must be the same as above in
item 1)
- export
SasyMakeOption='-O3'
( this is compiler optimization flag, for details see manuals for
g++)
- export PATH=$PATH:$SasyHomeDir/programs
- export PATH=$PATH:$SasyHomeDir/programsYOURINITIALS (optional,
in case you created your own programsYOURINITIALS directory and have
some programs there)
- export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SasyHomeDir/lib ( this is
where root will look for your shared library files)
logoff and login again - to update environment variables. Check that
they are good like this: echo $SasyHomeDir.
now, copy .rootrc file to your home directory and change the
following
line:
Unix.*.Root.MacroPath:
.:$(SasyHomeDir)/macrosKA:$(SasyHomeDir)/macros
This should provide you with working environment.
If you want to customize the file ( and you do in case if you have your
own macros directory)- make sure all relevant changes propagate from
version to version.
You can change the order of search for macros by changing order in this
list.
In this particular example current directory ( denoted with a dot)
is the first place root will look for macros, then goes my
directory and then standard directory with some standard macros.
Installation part that you have to do every time
when you move to newer version:
simple instructions: untar, make depend, make
step by step instructions:
- Download distribution file. Put it into temporary directory.
Unzip and untar distribution file by: tar -xzvf FILENAME.
Make sure new directories or files don't have same names as yours in
~/sasy. Some files may be
when you install
new verison of SasySoft. Especially pay attention to saving customized
Makefile,
.rootrc etc
- Make backup of your old sasy directory ( if existant)
: "tar -czvf sasysoft_backup.tar.gz ~/sasy"
- if you don't have old sasy directory create one with: "mkdir
~/sasy"
- go to the sasy directory: "cd ~/sasy"
- put downloaded distribution file into ~/sasy
- Unzip and untar distribution file by: tar -xzvf
FILENAME. If your existing files are write-protected they need to
be deleted
manually before overwriting them.
- make depend - needs to be done only when new version
( new files ) show up OR when new files are added or when
#include statements are added to existing files.
- make
- if you customized .rootrc file, this is time to compare it to
new one in $SasyHomeDir/macros
Should be Ok to use now.
Latest release of SasySoft source:
compiles on FC3 with ROOT v5.09.01
SasySoft_v4.09.tar.gz