diff --git a/README.md b/README.md index 8716edec18b80f496ed49ca9da4c2e6f0bc3e1fb..7033c64ef0f80cd39cfffbb665d2790afcb528f5 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Similar to JUNO Offline, two main structures exist: one is named **`algorithm`** ## Create your own algorithm Create an algorithm named `ExampleAlg` in `./Analysis` -```bash= +```bash cd Analysis mkdir ExampleAlg cd ExampleAlg @@ -20,13 +20,13 @@ touch CMakeLists.txt In `python/ExampleAlg/__init__.py` -```python= +```python import Sniper as sn sn.loadDll("libExampleAlg.so") ``` In `CMakeLists.txt` -```cmake= +```cmake PKG(ExampleAlg DEPENDS AnaTool @@ -112,14 +112,14 @@ bool ExampleTool::output() { More detail can be found in `./Analysis/NoiseAnaTool/` ## How to compile -```bash= +```bash source setup.sh ./build.sh ``` ## How to add your own algorithm or tool If the algorithm named `ExampleAlg` was created in `./Analysis`, the folder's name should be add in the `./Analysis/CMakeLists.txt` as -```cmake= +```cmake add_subdirectory(ExampleAlg) ```