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

lintao@ihep.ac.cn's avatar
lintao@ihep.ac.cn committed
## Start development environment in lxslc7 (CentOS 7)
lintao@ihep.ac.cn's avatar
lintao@ihep.ac.cn committed
$ ssh -Y USERNAME@lxslc7.ihep.ac.cn
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
```