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