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