Examples deal with more complex analysis cases where several detectors are present. In this context, physical information resulting from the combination of information from several detectors can be calculated.
As a standardized test case, you can run Example1 by the following command:
$ npp Example1 $ npsimulation -D Example1.detector -E Example1.reaction -O Example1
This will open the npsimulation GUI (if you are using Qt) or the prompt terminal. In either case events can be generated using the following command:
> run/beamOn/ 10000 > exit
This will simulate the 11Li(d,3He)10He->8He+n+n reaction and produce an output ROOT file located in $NPTOOL/Outputs/Simulation/Example1.root.
Example1.detector file located in $NPTOOL/Inputs/DetectorConfiguration and the
Example1.reaction file located in $NPTOOL/Inputs/EventGenerator are self explanatory thanks to the use of understandable tokens.
The simulated file can be analysed using the following commands:
$ npp Example1 $ cmake ./ $ make -jn $ npanalysis -R RunToTreat.txt -O Example1
This will produce an analysed tree located in the $NPTOOL/Outputs/Analysis/Example1.root file. Note that since the input files needed by npsimulation are stored in the ROOT file, npanalysis use these automatically as inputs.
The results can be displayed using the command:
$ root -l ShowResults.C
You should be able to see the light particle identification, the light particle kinematical line and the associated excitation energy spectrum fitted by a gaussian.
The Example1 project is a simple basis that can be used to start doing your own simulations.