Update how to add the llsw model to basf authored by Max Welsch's avatar Max Welsch
...@@ -14,36 +14,35 @@ The FF files contain the form factors for the decays. ...@@ -14,36 +14,35 @@ The FF files contain the form factors for the decays.
Here is how to compile the existent module. Here is how to compile the existent module.
( I'm not sure, but some people use basf2 evtgen to run evtgen, ( I'm not sure, but some people use basf2 evtgen to run evtgen,
so there might be another way ) so there might be another way )
1) make some working directory (e.g. ~/work ) 1) make some working directory (e.g. ~/work )
2) create a directory `~/work/belle/src` and go there 2) create a directory ~/work/belle/src and go there
3) execute following commands 3) execute following commands
``` $ source /sw/belle/local/etc/bashrc_general
source /sw/belle/local/etc/bashrc_general $ get_packages MODULE
get_packages MODULE $ make -f Makefile.init
make -f Makefile.init $ make
make then .so file will be under ~/work/belle/lib/so
```
then .so file will be under `~/work/belle/lib/so`
In your case, MODULE above should be belleEvtGenModels etc. In your case, MODULE above should be belleEvtGenModels etc.
Now, one possible problem is that the compile in 3) might fail. Now, one possible problem is that the compile in 3) might fail.
In this case, the source code taken with get_packages commands In this case, the source code taken with get_packages commands
are probably old (not compatible in SL6), and you need to manually are probably old (not compatible in SL6), and you need to manually
copy them from `$BELLE_TOP_DIR` . copy them from $BELLE_TOP_DIR .
Once you can compile the .so file, then you can run basf with Once you can compile the .so file, then you can run basf with
your local .so files as below (replace v0finder below with your module) your local .so files as below (replace v0finder below with your module)
You need to put the directory that contains the local `v0finder.so` file You need to put the directory that contains the local v0finder.so file
inside `BASF_MODULE_DIR`. Suppose your v0finder.so is under `~/work/belle/bin`, inside BASF_MODULE_DIR. Suppose your v0finder.so is under ~/work/belle/bin,
you should do you should do
`setenv BASF_MODULE_DIR ~/work/belle/bin:BASF_MODULE_DIR` setenv BASF_MODULE_DIR ~/work/belle/bin:BASF_MODULE_DIR
inside your script after loading cshrc_general . inside your script after loading cshrc_general .
Another way is to set `MY_TOP_DIR` to `~/work/belle` and do Another way is to set MY_TOP_DIR to ~/work/belle and do
`source /sw/belle/local/etc/cshrc_general` source /sw/belle/local/etc/cshrc_general
. This should set `BASF_MODULE_DIR` correctly. . This should set BASF_MODULE_DIR correctly.
Yet another way is to put your local `v0finder.so` inside your current Yet another way is to put your local v0finder.so inside your current
directory. By default, current directory is at the top of `BASF_MODULE_DIR` directory. By default, current directory is at the top of BASF_MODULE_DIR
`cw07:~$ echo $BASF_MODULE_DIR` cw07:~$ echo $BASF_MODULE_DIR
.:/sw/belle/belle/b20090127_0910/x86_64-unknown-linux-gnu/debug/bin
>>> >>>