3 from ROOT
import TFile, TObject, TTree
4 from array
import array
5 from ROOT
import gDirectory
8 from __future__
import print_function
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(
'::')])
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
def getGTfromDQMFile(DQMfile, RunNumber, globalTagVar)