Definition at line 8 of file allPlotsResiduals.py.
References print(), runt0(), runttrig(), and runvdrift().
10 parser = optparse.OptionParser()
11 (options, args) = parser.parse_args()
12 ROOT.gROOT.SetBatch(
True)
14 if "vDrift_segment_" in filename:
16 m=re.search(
"vDrift_segment_(\d*)",filename)
21 f = open(
'dtVDriftAnalyzer_cfg.py',
'w')
22 print(
"from CalibMuon.DTCalibration.Workflow.addPoolDBESSource import addPoolDBESSource", file=f)
23 print(
"from CalibMuon.DTCalibration.dtVDriftAnalyzer_cfg import process", file=f)
24 print(
"addPoolDBESSource(process = process, moduleName = 'vDriftDB',record = 'DTMtimeRcd',tag = 'vDrift', connect = 'sqlite_file:"+filename+
"')", file=f)
25 print(
"process.dtVDriftAnalyzer.rootFileName = 'dtVDriftAnalyzer_dtVDriftCalibration"+run+
".root'", file=f)
27 os.system(
"cmsRun dtVDriftAnalyzer_cfg.py")
29 runvdrift(name, run,
"dtVDriftAnalyzer_dtVDriftCalibration"+run+
".root")
31 if "vDrift_meantimer_" in filename:
33 m=re.search(
"vDrift_meantimer_(\d*)",filename)
38 f = open(
'dtVDriftAnalyzer_cfg.py',
'w')
39 print(
"from CalibMuon.DTCalibration.Workflow.addPoolDBESSource import addPoolDBESSource", file=f)
40 print(
"from CalibMuon.DTCalibration.dtVDriftAnalyzer_cfg import process", file=f)
41 print(
"addPoolDBESSource(process = process, moduleName = 'vDriftDB',record = 'DTMtimeRcd',tag = 'vDrift', connect = 'sqlite_file:"+filename+
"')", file=f)
42 print(
"process.dtVDriftAnalyzer.rootFileName = 'dtVDriftAnalyzer_dtVDriftCalibration"+run+
".root'", file=f)
44 os.system(
"cmsRun dtVDriftAnalyzer_cfg.py")
46 runvdrift(name, run,
"dtVDriftAnalyzer_dtVDriftCalibration"+run+
".root")
48 elif "DQM" in filename:
50 m=re.search(
"R000(\d*)__",filename)
52 path=
"DQMData/Run "+run+
"/DT/Run summary/DTCalibValidation"
54 elif "TestPulses" in filename:
56 runt0(name,filename,123456)
59 m=re.search(
"DTResidualValidation_(\d*)\.root",filename)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)