3 from ROOT
import TFile, TObject, TTree
4 from array
import array
5 from ROOT
import gDirectory
10 RunNumber = sys.argv[2]
11 globalTagVar = sys.argv[3]
13 if not os.path.isfile(DQMfile):
19 thefile = TFile( DQMfile )
20 globalTagDir =
'DQMData/Run ' + RunNumber +
'/Info/Run summary/CMSSWInfo' 22 if not gDirectory.GetDirectory( globalTagDir ):
26 keys = gDirectory.GetDirectory( globalTagDir ).GetListOfKeys()
32 if globalTagVar
in obj.GetName():
33 globalTag = obj.GetName()[len(
"<"+globalTagVar+
">s="):-len(
"</"+globalTagVar+
">")]
36 if len(globalTag) > 1:
37 if globalTag.find(
'::') >= 0:
38 print globalTag[0:globalTag.find(
'::')]