diff --git a/.travis.yml b/.travis.yml index fbb3301963eda81ce566a079456f44ce301f526b..4cd302add7de288ee0d6dd4ea38814ee469afae7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,15 +28,10 @@ script: - cmake ./ - make -j4 - make install + - ./scripts/RootLogon.sh + - ./scripts/test/basic.sh after_success: - - npanalysis -h - - cd ../NPAnalysis/Example1 - - cmake ./ - - make - - cd ../Example2 - - cmake ./ - - make branches: only: diff --git a/Examples/Example1_Simu.root b/Examples/Example1_Simu.root new file mode 100644 index 0000000000000000000000000000000000000000..0351d72d06e27b98db4b741856a63921da12cbda Binary files /dev/null and b/Examples/Example1_Simu.root differ diff --git a/Examples/Example2_Simu.root b/Examples/Example2_Simu.root new file mode 100644 index 0000000000000000000000000000000000000000..3c6c943a67459a7665f71c2b03873773bbda39f6 Binary files /dev/null and b/Examples/Example2_Simu.root differ diff --git a/NPAnalysis/Example1/ShowResult.C b/NPAnalysis/Example1/ShowResult.cxx similarity index 100% rename from NPAnalysis/Example1/ShowResult.C rename to NPAnalysis/Example1/ShowResult.cxx diff --git a/NPAnalysis/Example2/RunToTreat.txt b/NPAnalysis/Example2/RunToTreat.txt new file mode 100755 index 0000000000000000000000000000000000000000..41b85cef1984d7ffbd1677d991b7fb0c4e55c056 --- /dev/null +++ b/NPAnalysis/Example2/RunToTreat.txt @@ -0,0 +1,5 @@ +TTreeName + SimulatedTree +RootFileName + ../../Outputs/Simulation/Example2.root + diff --git a/README.md b/README.md index ffec5d184f05bd8cf1740b5fc1a37eb4c8c93a58..c74c790a8ec060c209ff2a8bbe58f270eccb0e2e 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ $ npanalysis -R RunToTreat.txt -O Example1 ```` Because the input file are written in the simulation file along the SimulatedTree, npanalysis will automatically use those file as inputs. This will produce the analysed tree located in $NPTOOL/Outputs/Analysis/Example1.root. You can then display the result of the simulation using root: ```` -$ root ShowResult.C +$ root ShowResult.cxx ```` 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.