From 99e2a4d0706d800059cae915177986a931bc6814 Mon Sep 17 00:00:00 2001 From: Wudr-1995 <wudr@ihep.ac.cn> Date: Thu, 17 Aug 2023 15:18:23 +0800 Subject: [PATCH] update README --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8716ede..7033c64 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) ``` -- GitLab