Skip to content
Snippets Groups Projects
quickstart.md 728 B
Newer Older
# Quick start

lintao@ihep.ac.cn's avatar
lintao@ihep.ac.cn committed
## Start development environment in a Singularity Container

Start the container in lxslc7 (OS: CentOS7):
```
$ /cvmfs/container.ihep.ac.cn/bin/hep_container shell SL6
```

Fork the CEPCSW into your own repo. For an example:
* https://github.com/*USERNAME*/CEPCSW

Get the source code from your own repo:
lintao@ihep.ac.cn's avatar
lintao@ihep.ac.cn committed
```
$ git clone git@github.com:USERNAME/CEPCSW.git
lintao@ihep.ac.cn's avatar
lintao@ihep.ac.cn committed
$ cd CEPCSW
```

Add the upstream repo:
```
$ git remote add cepc https://github.com/cepc/CEPCSW.git
```

Sync and merge the upstream repo:
```
$ git remote update
$ git merge cepc/master
```

lintao@ihep.ac.cn's avatar
lintao@ihep.ac.cn committed
## Setup and build 

```
$ source setup.sh
$ ./build.sh
```

## Run a simple test

```
$ ./run.sh Examples/options/tut_detsim_SDT.py
```