ATLAS Offline Software
Loading...
Searching...
No Matches
installDB.py
Go to the documentation of this file.
1# python script to install the DB and the root files in the run area
2# Copied from the same functionality in the JetTagCalibration package
3#
4# - first the local database should be created with the script defineDB.py
5# - then this script can be run: python installDB.py
6
7theCalibrationTag = "MyCalibV1"
8
9localRootFiles = True
10print '---> Installing performance calibration files for b-tagging. Tag is ',theCalibrationTag
11import os,commands,sys
12
13folders = [ 'Cuts' ]
14
15for folder in folders:
16 longname = 'BTaggingPerformance'+theCalibrationTag+'_'+folder+'.root'
17 if localRootFiles:
18 print '---> Inserting file ',longname
19 else:
20 print '---> Getting and inserting file ',longname
21 os.system('get_files -data '+longname)
22 os.system('coolHist_insertFileToCatalog.py '+longname)