@@ -32,21 +32,25 @@ and you should be in the NPLib directory.
Before the compilation of the libraries you need to specify the detector you plan to use by calling the configure script. If you give no argument to configure, all detector will be compile. If you wish to limit the number of detector to be compiled, simply specify the detector name in lowercase (e.g. MUST2 -> must2). You can specify more than one detector:
You have to performe the configure operation only once, then you compile the whole NPLib with:
You have to performe the configure operation only once, then you compile the whole NPLib with n threads using :
````
$ make -jn
````
where you replace n is the number of core to be used in the compilation.
NB: Optimal compilation time is usually achieved for n = twice the number of available core.
If you wish to compile only one subdirectory, simply add the name of the directory in lower case, e.g. for compiling the Physics directory:
````
$ make -jn physics
$ make physics
````
In order to load the nptool libraries when you launch root, you need to add a few line to your ~/.rootlogon.C file. NPTool can do that safely for you using a script. To launch the script simply type:
...
...
@@ -61,10 +65,38 @@ This part of the package rely on Geant4 to perform Monte Carlo simulation. You n
$ NPS
$ make -jn
`````
This should produce the NPSimulation executable, you can check this by running the help display
This will produce the NPSimulation executable. For a detail list of the available input flag and their meaning, you can run:
````
$ NPSimulation -h
````
To run a standardise test case, you can run the following command: