2 from __future__
import print_function
4 from ROOT
import TFile, TObject, TTree
5 from array
import array
6 from ROOT
import gDirectory
11 RunNumber = sys.argv[2]
12 globalTagVar = sys.argv[3]
14 if not os.path.isfile(DQMfile):
20 thefile = TFile( DQMfile )
21 globalTagDir =
'DQMData/Run ' + RunNumber +
'/Info/Run summary/CMSSWInfo'
23 if not gDirectory.GetDirectory( globalTagDir ):
27 keys = gDirectory.GetDirectory( globalTagDir ).GetListOfKeys()
33 if globalTagVar
in obj.GetName():
34 globalTag = obj.GetName()[len(
"<"+globalTagVar+
">s="):-len(
"</"+globalTagVar+
">")]
37 if len(globalTag) > 1:
38 if globalTag.find(
'::') >= 0:
39 print(globalTag[0:globalTag.find(
'::')])
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)