Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SPMTOfflineForCommissioning
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wudr@ihep.ac.cn
SPMTOfflineForCommissioning
Commits
99e2a4d0
Commit
99e2a4d0
authored
1 year ago
by
wudr@ihep.ac.cn
Browse files
Options
Downloads
Patches
Plain Diff
update README
parent
3ae1bb9c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+5
-5
5 additions, 5 deletions
README.md
with
5 additions
and
5 deletions
README.md
+
5
−
5
View file @
99e2a4d0
...
...
@@ -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
)
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment