11 if not os.path.isfile(DQMfile):
13 thefile = TFile( DQMfile )
14 globalTagDir =
'DQMData/Run ' + RunNumber +
'/Info/Run summary/CMSSWInfo'
15 if not gDirectory.GetDirectory( globalTagDir ):
18 keys = gDirectory.GetDirectory( globalTagDir ).GetListOfKeys()
23 if globalTagVar
in obj.GetName():
24 globalTag = obj.GetName()[len(
"<"+globalTagVar+
">s="):-len(
"</"+globalTagVar+
">")]
27 if len(globalTag) > 1:
28 if globalTag.find(
'::') >= 0:
29 print(globalTag[0:globalTag.find(
'::')])