Belle II Software  release-05-01-25
downloadCosmicTest.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 import os
5 
6 com = "git archive --remote=ssh://${BELLE2_USER}@stash.desy.de:7999/b2g/arich_database.git HEAD cosmicTest_payloads | tar -x"
7 os.system(com)
8 
9 com = "git archive --remote=ssh://${BELLE2_USER}@stash.desy.de:7999/b2g/arich_datafiles.git HEAD cosmicTest | tar -x"
10 os.system(com)
11 
12 com = "gunzip -r cosmicTest"
13 os.system(com)
14 
15 com = "mkdir ${BELLE2_LOCAL_DIR}/datafiles"
16 os.system(com)
17 com = "mv cosmicTest ${BELLE2_LOCAL_DIR}/datafiles/"
18 os.system(com)
19 
20 com = "mkdir ${BELLE2_LOCAL_DIR}/arich/database"
21 os.system(com)
22 com = "mv cosmicTest_payloads ${BELLE2_LOCAL_DIR}/arich/database/"
23 os.system(com)