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

update README

parent 17b1a7be
No related branches found
No related tags found
No related merge requests found
......@@ -8,37 +8,47 @@ Similar to JUNO Offline, two main structures exist: one is named **`algorithm`**
## How to use existing method
```bash
source setup.sh // in the spmtOffline folder
# The first time
git clone https://code.ihep.ac.cn/wudr/SPMTOfflineForCommissioning.git
cd SPMTOfflineForCommissioning
source setup.sh
./build.sh
```
```bash
# If the software was already compiled, only need to config the environment
source setup.sh # in the SPMTOfflineForCommissioning folder
```
### Convert binary to ROOT
```bash
python $SHAREROOT/convert.py --input [path of binary file list] --output [output path]
python $SHAREROOT/convert.py --input [path of binary file list] --output [output path (folder only)]
# example: python $SHAREROOT/convert.py --input ./rootList --output ./ROOT/
```
### Get charge spectrum
```bash
python $SHAREROOT/getChargeSpec.py --input [path of ROOT file list] --output [output path]
python $SHAREROOT/getChargeSpec.py --input [path of ROOT file list] --output [output path (folder only)]
```
### Get hit rate
```bash
python $SHAREROOT/getHitRate.py --input [path of ROOT file list] --output [output path]
python $SHAREROOT/getHitRate.py --input [path of ROOT file list] --output [output path (folder only)]
```
### Get hit rate distribution in xoy
```bash
python $SHAREROOT/getHitRateDis.py --input [path of ROOT file list] --output [output path]
python $SHAREROOT/getHitRateDis.py --input [path of ROOT file list] --output [output path (folder only)]
```
### Get time interval
```bash
python $SHAREROOT/getTimeInterval.py --input [path of ROOT file list] --output [output path]
python $SHAREROOT/getTimeInterval.py --input [path of ROOT file list] --output [output path (folder only)]
```
### Get noise per channel
```bash
python $SHAREROOT/getNoise.py --input [path of ROOT file list] --output [output path]
python $SHAREROOT/getNoise.py --input [path of ROOT file list] --output [output path (folder only)]
```
## Create your own algorithm
......
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