Skip to content
Snippets Groups Projects
Commit 99e2a4d0 authored by wudr@ihep.ac.cn's avatar wudr@ihep.ac.cn
Browse files

update README

parent 3ae1bb9c
No related branches found
No related tags found
No related merge requests found
......@@ -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)
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment