CMS 3D CMS Logo

Functions | Variables
alignmentValidation Namespace Reference

Functions

def createCanvasesList (fname="canvases_list.js")
 
def createCanvasToIDList (fname="canvas2id_list.js")
 
def createDirectoryStructure (iteration_name)
 
def dirToID (d)
 
def doCurvaturePlotsDT (dt_basedir, tfiles_plotting)
 
def doFitFunctionsPlotsCSC (csc_basedir, iter_tfile, iter_reports)
 
def doFitFunctionsPlotsDT (dt_basedir, iter_tfile, iter_reports)
 
def doIterationPlots (iteration_directory, tfiles_plotting, iter_tfile, iter_reports)
 
def doMapPlotsCSC (csc_basedir, tfiles_plotting)
 
def doMapPlotsDT (dt_basedir, tfiles_plotting)
 
def doSegDiffPlotsCSC (csc_basedir, tfiles_plotting, iter_reports)
 
def doSegDiffPlotsDT (dt_basedir, tfiles_plotting, iter_reports)
 
def idsForFile (dir_name, file_name)
 
def isFileUnderDir (dir_name, file_name)
 functions definitions More...
 
def saveAs (nm)
 

Variables

 action
 
string allOptions = "-l "
 
 args
 
 binsdxdz
 
 binsdydz
 
 binsx
 
 binsy
 
 c1 = ROOT.TCanvas("c1","c1",800,600)
 do drawing More...
 
list CANVASES_LIST_TEMPLATE
 
string comdir = "common/"
 setup output: More...
 
 default
 
 dest
 
bool DO_CSC = False
 
bool DO_CURVATURE = False
 
 DO_DIAGNOSTIC = options.diagnostic
 
bool DO_DT = False
 
bool DO_FIT = False
 
bool DO_MAP = False
 
bool DO_MEDIAN = False
 
bool DO_SEGDIFF = False
 
string fname = options.inputDir+'/'
 main script More...
 
 help
 
 i1prefix = options.i1prefix
 
 iNprefix = options.iNprefix
 
list iter1_reports = []
 
 iter1_tfile = None
 
string iteration1 = "iter1"
 
string iterationN = "iterN"
 
list iterN_reports = []
 
 iterN_tfile = None
 
 options
 
 outdir = options.outputDir
 
 parser = optparse.OptionParser(usage)
 
 pic_ids = createCanvasToIDList("canvas2id_list.js")
 
int QUICKTESTN = 10000
 
bool SINGLE_ITERATION = False
 
list tfiles1_plotting = []
 
list tfilesN_plotting = []
 
 type
 
string usage = '%prog [options]\n'
 To parse commandline args. More...
 
 windowdxdz
 
 windowdydz
 
 windowx
 
 windowy
 

Function Documentation

def alignmentValidation.createCanvasesList (   fname = "canvases_list.js")
Use CANVASES_LIST_TEMPLATE as a template to create a canvases list include for the browser.
   Write out only those canvases which have existing filename.png plots.

Definition at line 860 of file alignmentValidation.py.

References isFileUnderDir().

860 def createCanvasesList(fname="canvases_list.js"):
861  '''Use CANVASES_LIST_TEMPLATE as a template to create a canvases list include for the browser.
862  Write out only those canvases which have existing filename.png plots.
863  '''
864  CANVASES_LIST = []
865  for scope in CANVASES_LIST_TEMPLATE:
866  scope_entry = []
867  if len(scope)>2:
868  scope_entry = [scope[0],scope[1]]
869  for canvas_entry in scope[2:]:
870  if isFileUnderDir("./",canvas_entry[1]):
871  scope_entry.append(canvas_entry)
872  CANVASES_LIST.append(scope_entry)
873 
874  ff = open(fname,mode="w")
875  print >>ff, "var CANVASES_LIST = "
876  json.dump(CANVASES_LIST,ff)
877  ff.close()
878 
879 
def createCanvasesList(fname="canvases_list.js")
def isFileUnderDir(dir_name, file_name)
functions definitions
def alignmentValidation.createCanvasToIDList (   fname = "canvas2id_list.js")
Writes out a canvas-2-ids list include for the browser.
   Write out only those canvases which have existing filename.png plots.
   Returns: list of unique IDs that have existing filename.png plots.

Definition at line 880 of file alignmentValidation.py.

References cmsPerfStripChart.dict, idsForFile(), and list().

880 def createCanvasToIDList(fname="canvas2id_list.js"):
881  '''Writes out a canvas-2-ids list include for the browser.
882  Write out only those canvases which have existing filename.png plots.
883  Returns: list of unique IDs that have existing filename.png plots.
884  '''
885  CANVAS2ID_LIST = []
886  ID_LIST = []
887  for scope in CANVASES_LIST_TEMPLATE:
888  if len(scope)>2:
889  for canvas_entry in scope[2:]:
890  ids = idsForFile("./",canvas_entry[1])
891  # scope_entry.append(canvas_entry)
892  # uniquify:
893  set_ids = set(ids)
894  uids = list(set_ids)
895  ID_LIST.extend(uids)
896  print canvas_entry, ":", len(uids), "ids"
897  if (len(uids)>0):
898  CANVAS2ID_LIST.append( (canvas_entry[1],uids) )
899  #print CANVAS2ID_LIST
900  CANVAS2ID_LIST_DICT = dict(CANVAS2ID_LIST)
901  #print CANVAS2ID_LIST_DICT
902  ff = open(fname,mode="w")
903  print >>ff, "var CANVAS2ID_LIST = "
904  json.dump(CANVAS2ID_LIST_DICT,ff)
905  ff.close()
906  set_ids = set(ID_LIST)
907  return list(set_ids)
908 
def createCanvasToIDList(fname="canvas2id_list.js")
def idsForFile(dir_name, file_name)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run
def alignmentValidation.createDirectoryStructure (   iteration_name)

Definition at line 307 of file alignmentValidation.py.

307 def createDirectoryStructure(iteration_name):
308 
309  if not os.access(iteration_name,os.F_OK):
310  os.mkdir(iteration_name)
311 
312  csc_basedir = iteration_name+'/'
313  for endcap in CSC_TYPES:
314  #print csc_basedir+endcap[0]
315  shutil.rmtree(csc_basedir+endcap[0],True)
316  os.mkdir(csc_basedir+endcap[0])
317  for station in endcap[2]:
318  #print csc_basedir+endcap[0]+'/'+station[1]
319  os.mkdir(csc_basedir+endcap[0]+'/'+station[1])
320  for ring in station[2]:
321  #print csc_basedir+endcap[0]+'/'+station[1]+'/'+ring[1]
322  os.mkdir(csc_basedir+endcap[0]+'/'+station[1]+'/'+ring[1])
323  for chamber in range(1,ring[2]+1):
324  schamber = "%02d" % chamber
325  #print csc_basedir+endcap[0]+'/'+station[1]+'/'+ring[1]+'/'+schamber
326  os.mkdir(csc_basedir+endcap[0]+'/'+station[1]+'/'+ring[1]+'/'+schamber)
327 
328  dt_basedir = iteration_name+'/MB/'
329  #print dt_basedir
330  shutil.rmtree(dt_basedir,True)
331  os.mkdir(dt_basedir)
332  for wheel in DT_TYPES:
333  #print dt_basedir+wheel[0]
334  os.mkdir(dt_basedir+wheel[0])
335  for station in wheel[2]:
336  #print dt_basedir+wheel[0]+'/'+station[1]
337  os.mkdir(dt_basedir+wheel[0]+'/'+station[1])
338  for sector in range(1,station[2]+1):
339  ssector = "%02d" % sector
340  #print dt_basedir+wheel[0]+'/'+station[1]+'/'+ssector
341  os.mkdir(dt_basedir+wheel[0]+'/'+station[1]+'/'+ssector)
342 
343  print os.getcwd()
344 
def createDirectoryStructure(iteration_name)
def alignmentValidation.dirToID (   d)

Definition at line 928 of file alignmentValidation.py.

Referenced by idsForFile().

928 def dirToID(d):
929  if d[-1]!='/': d += '/'
930  dtn = d.find("/MB/")
931  if dtn!=-1:
932  return d[dtn+4:-1]
933  cscn = d.find("/ME-/")
934  if cscn!=-1:
935  return 'ME-'+d[cscn+5:-1]
936  cscn = d.find("/ME+/")
937  if cscn!=-1:
938  return 'ME+'+d[cscn+5:-1]
939  return ''
940 
941 
def alignmentValidation.doCurvaturePlotsDT (   dt_basedir,
  tfiles_plotting 
)
write DT curvature plots

"wheel%s_sector%s" % (wheel, sector)

wheel in "m2", "m1", "z", "p1", "p2"
station 1 only!
sector in "01", ..., "12"

"param" may be one of 
  "deltax" (Delta x position residuals),
  "deltadxdz" (Delta (dx/dz) angular residuals),
  "curverr" (Delta x * d(Delta q/pT)/d(Delta x) = Delta q/pT in the absence of misalignment) - not necessary

made for all (wheel,station=1,sector) combinations

Interface: could be accesses through a general DT chambers map for station=1 chambers.

Definition at line 539 of file alignmentValidation.py.

References plotscripts.curvatureplot(), and saveAs().

Referenced by doIterationPlots().

539 def doCurvaturePlotsDT(dt_basedir, tfiles_plotting):
540  """write DT curvature plots
541 
542  "wheel%s_sector%s" % (wheel, sector)
543 
544  wheel in "m2", "m1", "z", "p1", "p2"
545  station 1 only!
546  sector in "01", ..., "12"
547 
548  "param" may be one of
549  "deltax" (Delta x position residuals),
550  "deltadxdz" (Delta (dx/dz) angular residuals),
551  "curverr" (Delta x * d(Delta q/pT)/d(Delta x) = Delta q/pT in the absence of misalignment) - not necessary
552 
553  made for all (wheel,station=1,sector) combinations
554 
555  Interface: could be accesses through a general DT chambers map for station=1 chambers."""
556 
557  w_dict = {'-2':'m2', '-1':'m1', '0':'z', '1':'p1', '2':'p2'}
558  qcount = 0
559  for wheel in DT_TYPES:
560  if wheel[1]=="ALL": continue
561  #station = 1
562  #station = wheel[2][0]
563  for station in wheel[2]:
564  print "curv in ", wheel[0]+'/'+station[1]
565  for sector in range(1,station[2]+1):
566  #if sector>12: break
567  if qcount>QUICKTESTN: break
568  qcount += 1
569  ssector = "%02d" % sector
570  pdir = dt_basedir+'/'+wheel[0]+'/'+station[1]+'/'+ssector+'/'
571  label = "wheel%s_st%s_sector%s" % (w_dict[wheel[1]], station[1], ssector)
572  thetitle ="Wheel %s, station %s, sector %s" % (wheel[1], station[1], ssector)
573  curvatureplot(tfiles_plotting, label, "deltax", title=thetitle, window=10., fitline=True)
574  saveAs(pdir+'dt_curvature_deltax.png')
575  curvatureplot(tfiles_plotting, label, "deltadxdz", title=thetitle, window=10., fitline=True)
576  saveAs(pdir+'dt_curvature_deltadxdz.png')
577 
578 
579 
def curvatureplot(tfiles, name, param, mode="from2d", window=15., widebins=False, title="", fitgauss=False, fitconst=False, fitline=False, fitpeaks=True, reset_palette=False)
"param" may be one of "deltax" (Delta x position residuals), "deltadxdz" (Delta (dx/dz) angular resid...
def doCurvaturePlotsDT(dt_basedir, tfiles_plotting)
def alignmentValidation.doFitFunctionsPlotsCSC (   csc_basedir,
  iter_tfile,
  iter_reports 
)
write fit functions plots for CSC

 CSC bellcurves and polynomials

set of plots of bellcurves
  rphi, drphidz, rphi vs. drphidz

set of plots of polynomials
  rphi vs. rphi pos,    rphi vs drphidz angle
  drphidz vs. rphi pos, drphidz vs drphidz angle

made for all (endcap,station,ring,chamber) combinations

Interface: could be accesses through a general CSC chambers map.

Definition at line 796 of file alignmentValidation.py.

References plotscripts.bellcurves(), plotscripts.clearDDT(), plotscripts.polynomials(), and saveAs().

Referenced by doIterationPlots().

796 def doFitFunctionsPlotsCSC(csc_basedir, iter_tfile, iter_reports):
797  """write fit functions plots for CSC
798 
799  CSC bellcurves and polynomials
800 
801  set of plots of bellcurves
802  rphi, drphidz, rphi vs. drphidz
803 
804  set of plots of polynomials
805  rphi vs. rphi pos, rphi vs drphidz angle
806  drphidz vs. rphi pos, drphidz vs drphidz angle
807 
808  made for all (endcap,station,ring,chamber) combinations
809 
810  Interface: could be accesses through a general CSC chambers map."""
811 
812  qcount = 0
813  clearDDT()
814  for endcap in CSC_TYPES:
815  for station in endcap[2]:
816  for ring in station[2]:
817  if ring[1]=="ALL": continue
818  print endcap[0]+'/'+station[1]+'/'+ring[1]
819  for chamber in range(1,ring[2]+1):
820  if qcount>QUICKTESTN: break
821  qcount += 1
822  schamber = "%02d" % chamber
823  pdir = csc_basedir+'/'+endcap[0]+'/'+station[1]+'/'+ring[1]+'/'+schamber+'/'
824  label = "ME%s%s%s_%s" % (endcap[1], station[1], ring[1], schamber)
825  bellcurves(iter_tfile, iter_reports, label, False)
826  #c1.SaveAs(pdir+'csc_bellcurves.png')
827  saveAs(pdir+'csc_bellcurves.png')
828  polynomials(iter_tfile, iter_reports, label, False)
829  #c1.SaveAs(pdir+'csc_polynomials.png')
830  saveAs(pdir+'csc_polynomials.png')
831  #printDeltaTs()
832 
833 
834 
def clearDDT()
def doFitFunctionsPlotsCSC(csc_basedir, iter_tfile, iter_reports)
def polynomials(tfile, reports, name, twobin=True, suppressblue=False)
def bellcurves(tfile, reports, name, twobin=True, suppressblue=False)
def alignmentValidation.doFitFunctionsPlotsDT (   dt_basedir,
  iter_tfile,
  iter_reports 
)
write fit functions plots for DT

 DT bellcurves and polynomials

set of plots of bellcurves
  x, dxdz, x vs. dxdz (for all 4 stations)
  y, dydz, x vs. dxdz (only for stations 1-3?)

set of plots of polynomials -- for stations 1-3 only??
  x vs. xpos,    x vs ypos,    x vs dxdz angle,    x vs dydz angle
  y vs. xpos,    y vs ypos,    y vs dxdz angle,    y vs dydz angle
  dxdz vs. xpos, dxdz vs ypos, dxdz vs dxdz angle, dxdz vs dydz angle
  dydz vs. xpos, dydz vs ypos, dydz vs dxdz angle, dydz vs dydz angle

set of plots of polynomials -- for station 4 only??
  x vs. xpos,    x vs dxdz angle
  dxdz vs. xpos, dxdz vs dxdz angle

made for all (wheel,station,sector) combinations

Interface: could be accesses through a general DT chambers map.

Definition at line 752 of file alignmentValidation.py.

References plotscripts.bellcurves(), plotscripts.clearDDT(), createfilelist.int, plotscripts.polynomials(), saveAs(), and plotscripts.wheelLetter().

Referenced by doIterationPlots().

752 def doFitFunctionsPlotsDT(dt_basedir, iter_tfile, iter_reports):
753  """write fit functions plots for DT
754 
755  DT bellcurves and polynomials
756 
757  set of plots of bellcurves
758  x, dxdz, x vs. dxdz (for all 4 stations)
759  y, dydz, x vs. dxdz (only for stations 1-3?)
760 
761  set of plots of polynomials -- for stations 1-3 only??
762  x vs. xpos, x vs ypos, x vs dxdz angle, x vs dydz angle
763  y vs. xpos, y vs ypos, y vs dxdz angle, y vs dydz angle
764  dxdz vs. xpos, dxdz vs ypos, dxdz vs dxdz angle, dxdz vs dydz angle
765  dydz vs. xpos, dydz vs ypos, dydz vs dxdz angle, dydz vs dydz angle
766 
767  set of plots of polynomials -- for station 4 only??
768  x vs. xpos, x vs dxdz angle
769  dxdz vs. xpos, dxdz vs dxdz angle
770 
771  made for all (wheel,station,sector) combinations
772 
773  Interface: could be accesses through a general DT chambers map."""
774 
775  qcount = 0
776  clearDDT()
777  for wheel in DT_TYPES:
778  if wheel[1]=="ALL": continue
779  for station in wheel[2]:
780  print wheel[0]+'/'+station[1]
781  for sector in range(1,station[2]+1):
782  if qcount>QUICKTESTN: break
783  qcount += 1
784  ssector = "%02d" % sector
785  pdir = dt_basedir+'/'+wheel[0]+'/'+station[1]+'/'+ssector+'/'
786  label = "MBwh%sst%ssec%s" % (wheelLetter(int(wheel[1])),station[1],ssector)
787  bellcurves(iter_tfile, iter_reports, label, False)
788  #c1.SaveAs(pdir+'dt_bellcurves.png')
789  saveAs(pdir+'dt_bellcurves.png')
790  polynomials(iter_tfile, iter_reports, label, False)
791  #c1.SaveAs(pdir+'dt_polynomials.png')
792  saveAs(pdir+'dt_polynomials.png')
793  #printDeltaTs()
794 
795 
def clearDDT()
def doFitFunctionsPlotsDT(dt_basedir, iter_tfile, iter_reports)
def polynomials(tfile, reports, name, twobin=True, suppressblue=False)
def bellcurves(tfile, reports, name, twobin=True, suppressblue=False)
def wheelLetter(wheel)
Definition: plotscripts.py:37
def alignmentValidation.doIterationPlots (   iteration_directory,
  tfiles_plotting,
  iter_tfile,
  iter_reports 
)

Definition at line 835 of file alignmentValidation.py.

References doCurvaturePlotsDT(), doFitFunctionsPlotsCSC(), doFitFunctionsPlotsDT(), doMapPlotsCSC(), doMapPlotsDT(), doSegDiffPlotsCSC(), and doSegDiffPlotsDT().

835 def doIterationPlots(iteration_directory, tfiles_plotting, iter_tfile, iter_reports):
836  dt_basedir = iteration_directory+'/'+'MB'
837  csc_basedir = iteration_directory+'/'
838 
839  if DO_DT and DO_MAP:
840  doMapPlotsDT(dt_basedir, tfiles_plotting)
841  if DO_CSC and DO_MAP:
842  doMapPlotsCSC(csc_basedir, tfiles_plotting)
843 
844  if DO_DT and DO_CURVATURE:
845  doCurvaturePlotsDT(dt_basedir, tfiles_plotting)
846  #if DO_CSC and DO_CURVATURE:
847  # doCurvaturePlotsCSC(csc_basedir, tfiles_plotting)
848 
849  if DO_DT and DO_SEGDIFF:
850  doSegDiffPlotsDT(dt_basedir, tfiles_plotting, iter_reports)
851  if DO_CSC and DO_SEGDIFF:
852  doSegDiffPlotsCSC(csc_basedir, tfiles_plotting, iter_reports)
853 
854  if DO_DT and DO_FIT:
855  doFitFunctionsPlotsDT(dt_basedir, iter_tfile, iter_reports)
856  if DO_CSC and DO_FIT:
857  doFitFunctionsPlotsCSC(csc_basedir, iter_tfile, iter_reports)
858 
859 
def doFitFunctionsPlotsCSC(csc_basedir, iter_tfile, iter_reports)
def doMapPlotsCSC(csc_basedir, tfiles_plotting)
def doFitFunctionsPlotsDT(dt_basedir, iter_tfile, iter_reports)
def doMapPlotsDT(dt_basedir, tfiles_plotting)
def doCurvaturePlotsDT(dt_basedir, tfiles_plotting)
def doSegDiffPlotsCSC(csc_basedir, tfiles_plotting, iter_reports)
def doSegDiffPlotsDT(dt_basedir, tfiles_plotting, iter_reports)
def doIterationPlots(iteration_directory, tfiles_plotting, iter_tfile, iter_reports)
def alignmentValidation.doMapPlotsCSC (   csc_basedir,
  tfiles_plotting 
)
write CSC map plots

 "CSCvsphi_me%s%d%d" % (endcap, station, ring)

plots "integrated" over ALL SECTORS:
of rphi, drphi/dz vs. phi
made for all (endcap,station,ring) combinations

Interface: may be arranged into two station(1 .. 4) vs. R(1 .. 4) maps for both endcaps
with R range (1 .. 4) for stations 2-4
 It could be incorporated into a general CSC chambers map (column1: endcap, column2: station,
column3: ring, columns4-40 correspond to chamber #) by making ring numbers in column 3
clickable.


 "CSCvsr_me%s%dch%02d" % (endcap, station, chamberNumber)

plots "integrated" over ALL RINGS:
of rphi, drphi/dz vs. z
made for all (endcap,station,chamber) combinations

Interface: may be arranged into two station(1 .. 4) vs. chamber(1 .. 36) maps for both endcaps
It could be incorporated into an EXTENDED general CSC chambers map (extended by adding an
identifier "ALL" in column3 for ring number).

 "CSCvsr_me%s%dchALL" % (endcap, station)

plots spanning over ALL RINGS along r and integrated over all SECTORS:
of rphi, drphi/dz vs. z
made for all (endcap,station) combinations

Interface: may be arranged into two station(1 .. 4) maps for both endcaps
It could be incorporated into an EXTENDED general CSC chambers map (extended by adding an
identifier "ALL" in column3 for ring number).

Definition at line 453 of file alignmentValidation.py.

References plotscripts.mapplot(), and plotscripts.saveTestResultsMap().

Referenced by doIterationPlots().

453 def doMapPlotsCSC(csc_basedir, tfiles_plotting):
454  """write CSC map plots
455 
456  "CSCvsphi_me%s%d%d" % (endcap, station, ring)
457 
458  plots "integrated" over ALL SECTORS:
459  of rphi, drphi/dz vs. phi
460  made for all (endcap,station,ring) combinations
461 
462  Interface: may be arranged into two station(1 .. 4) vs. R(1 .. 4) maps for both endcaps
463  with R range (1 .. 4) for stations 2-4
464  It could be incorporated into a general CSC chambers map (column1: endcap, column2: station,
465  column3: ring, columns4-40 correspond to chamber #) by making ring numbers in column 3
466  clickable.
467 
468 
469  "CSCvsr_me%s%dch%02d" % (endcap, station, chamberNumber)
470 
471  plots "integrated" over ALL RINGS:
472  of rphi, drphi/dz vs. z
473  made for all (endcap,station,chamber) combinations
474 
475  Interface: may be arranged into two station(1 .. 4) vs. chamber(1 .. 36) maps for both endcaps
476  It could be incorporated into an EXTENDED general CSC chambers map (extended by adding an
477  identifier "ALL" in column3 for ring number).
478 
479  "CSCvsr_me%s%dchALL" % (endcap, station)
480 
481  plots spanning over ALL RINGS along r and integrated over all SECTORS:
482  of rphi, drphi/dz vs. z
483  made for all (endcap,station) combinations
484 
485  Interface: may be arranged into two station(1 .. 4) maps for both endcaps
486  It could be incorporated into an EXTENDED general CSC chambers map (extended by adding an
487  identifier "ALL" in column3 for ring number)."""
488 
489  for endcap in CSC_TYPES:
490  for station in endcap[2]:
491  for ring in station[2]:
492  if ring[1]=="ALL": continue
493  pdir = csc_basedir+'/'+endcap[0]+'/'+station[1]+'/'+ring[1]+'/'
494  label = "CSCvsphi_me%s%s%s" % (endcap[1], station[1], ring[1])
495  htitle = "%s%s/%s" % (endcap[0], station[1],ring[1])
496  mapplot(tfiles_plotting, label, "x", window=15., title=htitle, fitsine=True,fitpeaks=True, peaksbins=2)
497  #mapplot(tfiles_plotting, label, "x", window=15., title=htitle, fitsine=True)
498  c1.SaveAs(pdir+'map_CSCvsphi_x.png')
499  mapplot(tfiles_plotting, label, "dxdz", window=15., title=htitle, peaksbins=2)
500  c1.SaveAs(pdir+'map_CSCvsphi_dxdz.png')
501 
502  saveTestResultsMap(options.runLabel)
503 
504  qcount = 0
505  for endcap in CSC_TYPES:
506  for station in endcap[2]:
507  for ring in station[2]:
508  if ring[1]!="ALL": continue
509  for chamber in range(1,ring[2]+1):
510  if qcount>QUICKTESTN: break
511  qcount += 1
512  schamber = "%02d" % chamber
513  pdir = csc_basedir+'/'+endcap[0]+'/'+station[1]+'/'+ring[1]+'/'+schamber+'/'
514  label = "CSCvsr_me%s%sch%s" % (endcap[1], station[1], schamber)
515  htitle = "%s%s/ALL/%d" % (endcap[0], station[1],chamber)
516  mapplot(tfiles_plotting, label, "x", window=15., title=htitle, peaksbins=2)
517  c1.SaveAs(pdir+'map_CSCvsr_x.png')
518  mapplot(tfiles_plotting, label, "dxdz", window=15., title=htitle, peaksbins=2)
519  c1.SaveAs(pdir+'map_CSCvsr_dxdz.png')
520 
521  qcount = 0
522  for endcap in CSC_TYPES:
523  for station in endcap[2]:
524  for ring in station[2]:
525  if ring[1]!="ALL": continue
526  if qcount>QUICKTESTN: break
527  qcount += 1
528  schamber = "%02d" % chamber
529  pdir = csc_basedir+'/'+endcap[0]+'/'+station[1]+'/'+ring[1]+'/'
530  label = "CSCvsr_me%s%schALL" % (endcap[1], station[1])
531  htitle = "%s%s" % (endcap[0], station[1])
532  mapplot(tfiles_plotting, label, "x", window=10., title=htitle, peaksbins=2)
533  c1.SaveAs(pdir+'map_CSCvsr_all_x.png')
534  mapplot(tfiles_plotting, label, "dxdz", window=10., title=htitle, peaksbins=2)
535  c1.SaveAs(pdir+'map_CSCvsr_all_dxdz.png')
536 
537 
538 
def saveTestResultsMap(run_name)
def doMapPlotsCSC(csc_basedir, tfiles_plotting)
def mapplot(tfiles, name, param, mode="from2d", window=10., abscissa=None, title="", widebins=False, fitsine=False, fitline=False, reset_palette=False, fitsawteeth=False, fitpeaks=False, peaksbins=1, fixfitpars={}, args)
def alignmentValidation.doMapPlotsDT (   dt_basedir,
  tfiles_plotting 
)
write DT map plots

 "DTvsphi_st%dwh%s" % (station, wheelletter):

plots "integrated" over ALL SECTORS:
of x, y, dxdz, dydz vs. phi (y and dydz only for stations 1-3)
made for all (station,wheel) combinations

Access interface may be arranged into station(1 .. 4) vs. wheel(-2 .. +2) map.
It could be incorporated into a general DT chambers map (column1: wheel, column2: station,
columns3-16 correspond to sector #) by making station numbers in column 2 clickable.


 "DTvsz_st%dsec%02d" % (station, sector)

plots "integrated" over ALL WHEELS:
of x, y, dxdz, dydz vs. z (y and dydz only for stations 1-3)
made for all (station,sector) combinations

Interface: may be arranged into station(1 .. 4) vs. sector(1 .. 14) map with sector range
(1 .. 12) for stations 1-3.
It could be incorporated into an EXTENDED general DT chambers map (extended by adding an
identifier "ALL" in column1 for wheel number).


 "DTvsz_st%dsecALL" % (station)

plots spanning in z over ALL WHEELS and "integrated" over all sectors:
of x, y, dxdz, dydz vs. z (y and dydz only for stations 1-3)
made for all stations

Interface: may be arranged into station(1 .. 4) map 
It could be incorporated into an EXTENDED general DT chambers map (extended by adding an
identifier "ALL" in column1 for wheel number).

Definition at line 347 of file alignmentValidation.py.

References createfilelist.int, plotscripts.mapplot(), plotscripts.saveTestResultsMap(), and plotscripts.wheelLetter().

Referenced by doIterationPlots().

347 def doMapPlotsDT(dt_basedir, tfiles_plotting):
348  """write DT map plots
349 
350  "DTvsphi_st%dwh%s" % (station, wheelletter):
351 
352  plots "integrated" over ALL SECTORS:
353  of x, y, dxdz, dydz vs. phi (y and dydz only for stations 1-3)
354  made for all (station,wheel) combinations
355 
356  Access interface may be arranged into station(1 .. 4) vs. wheel(-2 .. +2) map.
357  It could be incorporated into a general DT chambers map (column1: wheel, column2: station,
358  columns3-16 correspond to sector #) by making station numbers in column 2 clickable.
359 
360 
361  "DTvsz_st%dsec%02d" % (station, sector)
362 
363  plots "integrated" over ALL WHEELS:
364  of x, y, dxdz, dydz vs. z (y and dydz only for stations 1-3)
365  made for all (station,sector) combinations
366 
367  Interface: may be arranged into station(1 .. 4) vs. sector(1 .. 14) map with sector range
368  (1 .. 12) for stations 1-3.
369  It could be incorporated into an EXTENDED general DT chambers map (extended by adding an
370  identifier "ALL" in column1 for wheel number).
371 
372 
373  "DTvsz_st%dsecALL" % (station)
374 
375  plots spanning in z over ALL WHEELS and "integrated" over all sectors:
376  of x, y, dxdz, dydz vs. z (y and dydz only for stations 1-3)
377  made for all stations
378 
379  Interface: may be arranged into station(1 .. 4) map
380  It could be incorporated into an EXTENDED general DT chambers map (extended by adding an
381  identifier "ALL" in column1 for wheel number)."""
382 
383 
384  for wheel in DT_TYPES:
385  if wheel[1]=="ALL": continue
386  for station in wheel[2]:
387  pdir = dt_basedir+'/'+wheel[0]+'/'+station[1]+'/'
388  label = "DTvsphi_st%dwh%s" % (int(station[1]), wheelLetter(int(wheel[1])))
389  htitle = "wheel %+d, station %s" % (int(wheel[1]), station[1])
390  #mapplot(tfiles_plotting, label, "x", window=25., title=htitle, fitsawteeth=True,fitsine=True)
391  mapplot(tfiles_plotting, label, "x", window=10., title=htitle, fitsine=True,fitpeaks=True,peaksbins=2)
392  c1.SaveAs(pdir+'map_DTvsphi_x.png')
393  #mapplot(tfiles_plotting, label, "dxdz", window=25., title=htitle, fitsawteeth=True,fitsine=True)
394  mapplot(tfiles_plotting, label, "dxdz", window=10., title=htitle,peaksbins=2)
395  c1.SaveAs(pdir+'map_DTvsphi_dxdz.png')
396 
397  if station[1]=='4': continue
398  #mapplot(tfiles_plotting, label, "y", window=25., title=htitle, fitsawteeth=True,fitsine=True)
399  mapplot(tfiles_plotting, label, "y", window=10., title=htitle,peaksbins=2)
400  c1.SaveAs(pdir+'map_DTvsphi_y.png')
401  #mapplot(tfiles_plotting, label, "dydz", window=25., title=htitle, fitsawteeth=True,fitsine=True)
402  mapplot(tfiles_plotting, label, "dydz", window=10., title=htitle,peaksbins=2)
403  c1.SaveAs(pdir+'map_DTvsphi_dydz.png')
404 
405 
406  qcount=0
407  for wheel in DT_TYPES:
408  if wheel[1]!="ALL": continue
409  for station in wheel[2]:
410  for sector in range(1,station[2]+1):
411  if qcount>QUICKTESTN: break
412  qcount += 1
413  ssector = "%02d" % sector
414  pdir = dt_basedir+'/'+wheel[0]+'/'+station[1]+'/'+ssector+'/'
415  label = "DTvsz_st%ssec%s" % (station[1], ssector)
416  htitle = "station %s, sector %d" % (station[1], sector)
417  mapplot(tfiles_plotting, label, "x", window=10., title=htitle, peaksbins=2)
418  c1.SaveAs(pdir+'map_DTvsz_x.png')
419  mapplot(tfiles_plotting, label, "dxdz", window=10., title=htitle, peaksbins=2)
420  c1.SaveAs(pdir+'map_DTvsz_dxdz.png')
421 
422  if station[1]=='4': continue
423  mapplot(tfiles_plotting, label, "y", window=10., title=htitle, peaksbins=2)
424  c1.SaveAs(pdir+'map_DTvsz_y.png')
425  mapplot(tfiles_plotting, label, "dydz", window=10., title=htitle, peaksbins=2)
426  c1.SaveAs(pdir+'map_DTvsz_dydz.png')
427 
428  qcount=0
429  for wheel in DT_TYPES:
430  if wheel[1]!="ALL": continue
431  for station in wheel[2]:
432  if qcount>QUICKTESTN: break
433  qcount += 1
434  pdir = dt_basedir+'/'+wheel[0]+'/'+station[1]+'/'
435  label = "DTvsz_st%ssecALL" % (station[1])
436  htitle = "station %s" % (station[1])
437 
438  print label,
439  mapplot(tfiles_plotting, label, "x", window=10., title=htitle, peaksbins=2)
440  c1.SaveAs(pdir+'map_DTvsz_all_x.png')
441  mapplot(tfiles_plotting, label, "dxdz", window=10., title=htitle, peaksbins=2)
442  c1.SaveAs(pdir+'map_DTvsz_all_dxdz.png')
443 
444  if station[1]=='4': continue
445  mapplot(tfiles_plotting, label, "y", window=10., title=htitle, peaksbins=2)
446  c1.SaveAs(pdir+'map_DTvsz_all_y.png')
447  mapplot(tfiles_plotting, label, "dydz", window=10., title=htitle, peaksbins=2)
448  c1.SaveAs(pdir+'map_DTvsz_all_dydz.png')
449 
450  saveTestResultsMap(options.runLabel)
451 
452 
def saveTestResultsMap(run_name)
def mapplot(tfiles, name, param, mode="from2d", window=10., abscissa=None, title="", widebins=False, fitsine=False, fitline=False, reset_palette=False, fitsawteeth=False, fitpeaks=False, peaksbins=1, fixfitpars={}, args)
def doMapPlotsDT(dt_basedir, tfiles_plotting)
def wheelLetter(wheel)
Definition: plotscripts.py:37
def alignmentValidation.doSegDiffPlotsCSC (   csc_basedir,
  tfiles_plotting,
  iter_reports 
)
write segment-difference plots for CSC
 
 segdiff "csc_resid" and "csc_slope"

set of plots of
rphi vs qpt, rphi for positive, rphi for negative ("csc_resid")
drphidz vs qpt, drphidz for positive, drphidz for negative ("csc_slope")
done for ME1-ME2, ME2-ME3, and ME3-ME4 stations combinations with
  endcap "m" or "p" 
  ring 1 or 2
  chamber 1-18 (r1) or 1-36 (r2)
note: there's no ME3-ME4 plots for R2

Interface: could be accessed through a general CSC chambers map, but only for chambers in
stations 2-4 (e.g., station 2 would provide ME1-ME2 plots).

Definition at line 689 of file alignmentValidation.py.

References createfilelist.int, plotscripts.segdiff(), and plotscripts.segdiffvsphicsc().

Referenced by doIterationPlots().

689 def doSegDiffPlotsCSC(csc_basedir, tfiles_plotting, iter_reports):
690  """write segment-difference plots for CSC
691 
692  segdiff "csc_resid" and "csc_slope"
693 
694  set of plots of
695  rphi vs qpt, rphi for positive, rphi for negative ("csc_resid")
696  drphidz vs qpt, drphidz for positive, drphidz for negative ("csc_slope")
697  done for ME1-ME2, ME2-ME3, and ME3-ME4 stations combinations with
698  endcap "m" or "p"
699  ring 1 or 2
700  chamber 1-18 (r1) or 1-36 (r2)
701  note: there's no ME3-ME4 plots for R2
702 
703  Interface: could be accessed through a general CSC chambers map, but only for chambers in
704  stations 2-4 (e.g., station 2 would provide ME1-ME2 plots)."""
705 
706  qcount = 0
707  for iendcap in CSC_TYPES:
708  for istation in iendcap[2]:
709  if istation[1]=="1": continue
710  dstations = (int(istation[1])-1)*10 + int(istation[1])
711  for iring in istation[2]:
712  if iring[1]=="ALL": continue
713  if istation[1]=="4" and iring[1]=="2": continue
714  for ichamber in range(1,iring[2]+1):
715  if qcount>QUICKTESTN: break
716  qcount += 1
717  schamber = "%02d" % ichamber
718  pdir = csc_basedir+'/'+iendcap[0]+'/'+istation[1]+'/'+iring[1]+'/'+schamber+'/'
719  segdiff(tfiles_plotting, "csc_resid", dstations,
720  endcap=iendcap[1], ring=int(iring[1]), chamber=ichamber, window=15.)
721  c1.SaveAs(pdir + 'segdif_csc_resid.png')
722  segdiff(tfiles_plotting, "csc_slope", dstations,
723  endcap=iendcap[1], ring=int(iring[1]), chamber=ichamber, window=15.)
724  c1.SaveAs(pdir + 'segdif_csc_slope.png')
725 
726  """segdiffvsphicsc "csc_resid" and "csc_slope"
727 
728  plot for a specific deltaME station differences:
729  rphi vs phi of pair ("csc_resid")
730  dxdz vs phi of pair ("csc_slope")
731  contains plots for two (or one for ME4-ME3) rings
732  done for ME1-ME2, ME2-ME3, and ME3-ME4 stations combinations with
733  endcap "m" or "p"
734 
735  Interface: could be accessed by clicking on ME station boxes, but only for stations 2-4
736  (e.g., station 2 would provide ME1-ME2 plots)."""
737 
738  qcount = 0
739  for iendcap in CSC_TYPES:
740  for istation in iendcap[2]:
741  if istation[1]=="1": continue
742  dstations = (int(istation[1])-1)*10 + int(istation[1])
743  if qcount>QUICKTESTN: break
744  qcount += 1
745  pdir = csc_basedir+'/'+iendcap[0]+'/'+istation[1]+'/'
746  segdiffvsphicsc(tfiles_plotting, "csc_resid", dstations, window=10., endcap=iendcap[1])
747  c1.SaveAs(pdir + 'segdifphi_csc_resid.png')
748  segdiffvsphicsc(tfiles_plotting, "csc_slope", dstations, window=10., endcap=iendcap[1])
749  c1.SaveAs(pdir + 'segdifphi_csc_slope.png')
750 
751 
def segdiffvsphicsc(tfiles, component, pair, window=5., args)
def doSegDiffPlotsCSC(csc_basedir, tfiles_plotting, iter_reports)
def segdiff(tfiles, component, pair, args)
def alignmentValidation.doSegDiffPlotsDT (   dt_basedir,
  tfiles_plotting,
  iter_reports 
)
write segment-difference plots for DT

 segdiff "dt13_resid" and "dt13_slope"

set of plots of
x vs qpt, x for positive, x for negative ("dt13_resid")
dxdz vs qpt, dxdz for positive, dxdz for negative ("dt13_slope")
done for MB1-MB2, MB2-MB3, and MB3-MB4 stations combinations with all possible (wheel, sector)

Interface: could be accessed through a general DT chambers map, but only for chambers in
stations 2-4 (e.g., station 2 would provide MB1-MB2 plots).

 segdiff "dt2_resid" and "dt2_slope"

set of plots of
y vs q/pt, y for positive, y for negative ("dt2_resid")
dydz vs q/pt, dydz for positive, dydz for negative ("dt2_slope")
done for MB1-MB2, MB2-MB3 stations combinations with all possible (wheel, sector)

Interface: then the interface would still be a general DT map,
but the info only available from station 2 & 3 chambers.

Definition at line 580 of file alignmentValidation.py.

References funct.abs(), createfilelist.int, plotscripts.segdiff(), plotscripts.segdiff_xalign(), plotscripts.segdiffvsphi(), and plotscripts.segdiffvsphi_xalign().

Referenced by doIterationPlots().

580 def doSegDiffPlotsDT(dt_basedir, tfiles_plotting, iter_reports):
581  """write segment-difference plots for DT
582 
583  segdiff "dt13_resid" and "dt13_slope"
584 
585  set of plots of
586  x vs qpt, x for positive, x for negative ("dt13_resid")
587  dxdz vs qpt, dxdz for positive, dxdz for negative ("dt13_slope")
588  done for MB1-MB2, MB2-MB3, and MB3-MB4 stations combinations with all possible (wheel, sector)
589 
590  Interface: could be accessed through a general DT chambers map, but only for chambers in
591  stations 2-4 (e.g., station 2 would provide MB1-MB2 plots).
592 
593  segdiff "dt2_resid" and "dt2_slope"
594 
595  set of plots of
596  y vs q/pt, y for positive, y for negative ("dt2_resid")
597  dydz vs q/pt, dydz for positive, dydz for negative ("dt2_slope")
598  done for MB1-MB2, MB2-MB3 stations combinations with all possible (wheel, sector)
599 
600  Interface: then the interface would still be a general DT map,
601  but the info only available from station 2 & 3 chambers."""
602 
603  qcount = 0
604  for iwheel in DT_TYPES:
605  if iwheel[1]=="ALL": continue
606  for istation in iwheel[2]:
607  if istation[1]=="1": continue
608  dstations = (int(istation[1])-1)*10 + int(istation[1])
609  #print dstations
610  for isector in range(1, istation[2] + 1):
611  if isector > 12: continue
612  if qcount>QUICKTESTN: break
613  qcount += 1
614  ssector = "%02d" % isector
615  pdir = dt_basedir + '/' + iwheel[0] + '/' + istation[1] + '/' + ssector + '/'
616 
617  segdiff(tfiles_plotting, "dt13_resid", dstations, wheel=int(iwheel[1]), sector=isector, window=15.)
618  c1.SaveAs(pdir + 'segdif_dt13_resid.png')
619  segdiff(tfiles_plotting, "dt13_slope", dstations, wheel=int(iwheel[1]), sector=isector, window=15.)
620  c1.SaveAs(pdir + 'segdif_dt13_slope.png')
621 
622  if istation[1] != '4':
623  segdiff(tfiles_plotting, "dt2_resid", dstations, wheel=int(iwheel[1]), sector=isector, window=15.)
624  c1.SaveAs(pdir + 'segdif_dt2_resid.png')
625  segdiff(tfiles_plotting, "dt2_slope", dstations, wheel=int(iwheel[1]), sector=isector, window=15.)
626  c1.SaveAs(pdir + 'segdif_dt2_slope.png')
627 
628  qcount = 0
629  for iwheel in DT_TYPES:
630  if iwheel[1]=="ALL": continue
631  if abs(int(iwheel[1])) != 2: continue
632  for istation in iwheel[2]:
633  if istation[1]=="3": continue
634  #print dstations
635  for isector in range(1, istation[2] + 1):
636  ssector = "%02d" % isector
637  pdir = dt_basedir + '/' + iwheel[0] + '/' + istation[1] + '/' + ssector + '/'
638  if istation[1]=="1":
639  segdiff_xalign(tfiles_plotting, "x_dt1_csc", wheel=int(iwheel[1]), sector=isector, cscstations = "12")
640  c1.SaveAs(pdir + 'segdif_x_dt_csc_resid.png')
641  if istation[1]=="2":
642  segdiff_xalign(tfiles_plotting, "x_dt2_csc", wheel=int(iwheel[1]), sector=isector, cscstations = "1")
643  c1.SaveAs(pdir + 'segdif_x_dt_csc_resid.png')
644 
645  """segdiffvsphi "dt13_resid" and "dt13_slope"
646 
647  plot for a specific wheel #:
648  x vs phi of pair ("dt13_resid")
649  dxdz vs phi of pair ("dt13_slope")
650  contains all three combinations of neighboring stations
651  made for all possible wheel values
652 
653  Interface: could be accessed by clicking on wheel number under the "wheel" column
654  in a general DT map
655 
656  segdiffvsphi "dt2_resid" and "dt2_slope"
657 
658  plot for a specific wheel #:
659  y vs phi of pair ("dt2_resid")
660  dydz vs phi of pair ("dt2_slope")
661  contains both MB1-MB2 and MB2-MB3 combinations
662  made for all possible wheel values
663 
664  Interface: could be accessed by clicking on wheel number under the "wheel" column
665  in a general DT map"""
666 
667  if len(iter_reports)==0: return
668 
669  for iwheel in DT_TYPES:
670  if iwheel[1]=="ALL": continue
671  pdir = dt_basedir + '/' + iwheel[0] + '/'
672  segdiffvsphi(tfiles_plotting, iter_reports, "dt13_resid", int(iwheel[1]), window=10.)#, excludesectors=(1,7))
673  c1.SaveAs(pdir + 'segdifphi_dt13_resid.png')
674  segdiffvsphi(tfiles_plotting, iter_reports, "dt13_slope", int(iwheel[1]), window=10.)#, excludesectors=(1,7))
675  c1.SaveAs(pdir + 'segdifphi_dt13_slope.png')
676  segdiffvsphi(tfiles_plotting, iter_reports, "dt2_resid", int(iwheel[1]), window=10.)#, excludesectors=(1,7))
677  c1.SaveAs(pdir + 'segdifphi_dt2_resid.png')
678  segdiffvsphi(tfiles_plotting, iter_reports, "dt2_slope", int(iwheel[1]), window=15.)#, excludesectors=(1,7))
679  c1.SaveAs(pdir + 'segdifphi_dt2_slope.png')
680 
681  for iwheel in DT_TYPES:
682  if iwheel[1]=="ALL": continue
683  if abs(int(iwheel[1])) != 2: continue
684  pdir = dt_basedir + '/' + iwheel[0] + '/'
685  segdiffvsphi_xalign(tfiles_plotting, int(iwheel[1]), window=10.)
686  c1.SaveAs(pdir + 'segdifphi_x_dt_csc_resid.png')
687 
688 
def segdiffvsphi_xalign(tfiles, wheel, window=10.)
def segdiff_xalign(tfiles, component, args)
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
def segdiffvsphi(tfiles, reports, component, wheel, window=5., excludesectors=())
def segdiff(tfiles, component, pair, args)
def doSegDiffPlotsDT(dt_basedir, tfiles_plotting, iter_reports)
def alignmentValidation.idsForFile (   dir_name,
  file_name 
)
Recursively looks for file named file_name under dir_name directory
and fill the list with dir names converted to IDs 

Definition at line 909 of file alignmentValidation.py.

References dirToID().

Referenced by createCanvasToIDList().

909 def idsForFile(dir_name, file_name):
910  '''Recursively looks for file named file_name under dir_name directory
911  and fill the list with dir names converted to IDs
912  '''
913  id_list = []
914  for f in os.listdir(dir_name):
915  dirfile = os.path.join(dir_name, f)
916  if os.path.isfile(dirfile) and f==file_name:
917  if file_name[-4:]=='.php': id_list.append(dir_name+'/'+file_name)
918  else: id_list.append(dirToID(dir_name))
919  # recursively access file names in subdirectories
920  elif os.path.isdir(dirfile):
921  #print "Accessing directory:", dirfile
922  ids = idsForFile(dirfile, file_name)
923  if (len(ids)>0):
924  id_list.extend(ids)
925  return id_list
926 
927 
def idsForFile(dir_name, file_name)
def alignmentValidation.isFileUnderDir (   dir_name,
  file_name 
)

functions definitions

Recursively looks for file named file_name under dir_name directory

Definition at line 279 of file alignmentValidation.py.

Referenced by createCanvasesList().

279 def isFileUnderDir(dir_name, file_name):
280  '''Recursively looks for file named file_name under dir_name directory
281  '''
282  if not DO_DT and dir_name.find("MB")>-1:
283  return False
284  if not DO_CSC and dir_name.find("ME")>-1:
285  return False
286 
287  for f in os.listdir(dir_name):
288  dirfile = os.path.join(dir_name, f)
289  if os.path.isfile(dirfile) and f==file_name:
290  return True
291  # recursively access file names in subdirectories
292  elif os.path.isdir(dirfile):
293  #print "Accessing directory:", dirfile
294  if isFileUnderDir(dirfile, file_name): return True
295  return False
296 
297 
298 # to time saving of plots
def isFileUnderDir(dir_name, file_name)
functions definitions
def alignmentValidation.saveAs (   nm)

Definition at line 299 of file alignmentValidation.py.

Referenced by doCurvaturePlotsDT(), doFitFunctionsPlotsCSC(), and doFitFunctionsPlotsDT().

299 def saveAs(nm):
300  t1 = time.time()
301  ddt[15] += 1
302  c1.SaveAs(nm)
303  tn = time.time()
304  ddt[16] = 1./ddt[15]*((ddt[15]-1)*ddt[16] + tn-t1)
305 
306 

Variable Documentation

alignmentValidation.action

Definition at line 80 of file alignmentValidation.py.

string alignmentValidation.allOptions = "-l "

Definition at line 198 of file alignmentValidation.py.

alignmentValidation.args

Definition at line 144 of file alignmentValidation.py.

alignmentValidation.binsdxdz

Definition at line 1038 of file alignmentValidation.py.

alignmentValidation.binsdydz

Definition at line 1038 of file alignmentValidation.py.

alignmentValidation.binsx
alignmentValidation.binsy
alignmentValidation.c1 = ROOT.TCanvas("c1","c1",800,600)

do drawing

Definition at line 1023 of file alignmentValidation.py.

Referenced by reco::CompositeCandidate.addDaughter(), reco::NamedCompositeCandidate.addDaughter(), HcalPulseShapes.analyticPulseShapeSiPMHO(), DimuonStatistics.analyze(), GlbMuQualityCutsAnalysis.analyze(), reco::NamedCompositeCandidate.applyRoles(), reco::CompositeCandidate.applyRoles(), CandCombinerBase< OutputCollection, CandPtr >.CandCombinerBase(), TwoBodyDecayModel.cartesianSecondaryMomenta(), condbon.cdbon_write(), checkPhiInRange(), NamedCandCombinerBase.combine(), CandCombinerBase< OutputCollection, CandPtr >.combine(), UrbanMscModel93.ComputeCrossSectionPerAtom(), TwoBodyDecayDerivatives.dqsdm(), TwoBodyDecayDerivatives.dqsdphi(), TwoBodyDecayDerivatives.dqsdpx(), TwoBodyDecayDerivatives.dqsdpy(), TwoBodyDecayDerivatives.dqsdpz(), TwoBodyDecayDerivatives.dqsdtheta(), EcalEtaPhiRegion.EcalEtaPhiRegion(), DTNoiseComputation.endJob(), HOCalibAnalyzer.endJob(), fastInvertPDM2(), SiStripQualityDQM.fillGrandSummaryMEs(), SiStripPedestalsDQM.fillSummaryMEs(), SiStripApvGainsDQM.fillSummaryMEs(), SiStripBackPlaneCorrectionDQM.fillSummaryMEs(), SiStripLorentzAngleDQM.fillSummaryMEs(), SiStripQualityDQM.fillSummaryMEs(), SiStripBaseCondObjDQM.fillSummaryMEs(), heppy::Davismt2.find_high(), hitfit::Chisq_Constrainer.fit(), DTLinearFit.fitNpar(), SiStripCablingDQM.getActiveDetIds(), lumi::fPoly.getCorrection(), GridInterpolator3DException.GridInterpolator3DException(), MonitorElementsDb.htmlOutput(), PFDisplacedVertexHelper.identifyVertex(), identity(), CSCWireGeometry.intersection(), CSCLayerGeometry.intersectionOfTwoLines(), PerigeeConversions.jacobianParameters2Cartesian(), PFDisplacedVertexHelper.lambdaCP(), CSCWireGeometry.lengthOfPlane(), EvolutionECAL.LightCollectionEfficiency(), EvolutionECAL.LightCollectionEfficiencyWeighted(), TkRadialStripTopology.localError(), CSCRadialStripTopology.localError(), main(), makePlots(), FastTrackerRecHitMatcher.match(), SiStripRecHitMatcher.match(), GlobalTrackerMuonAlignment.misalignMuon(), GlobalTrackerMuonAlignment.misalignMuonL(), heppy::Davismt2.mt2_bisect(), NamedCandCombinerBase.NamedCandCombinerBase(), heppy::Davismt2.nsols(), funct::GaussIntegrator.operator()(), PhiInterval.PhiInterval(), PFAlgo.processBlock(), DimuonMCMatcher.produce(), proxim(), CSCTFPtMethods.Pt3Stn(), DTConfigDBProducer.readDTCCBConfig(), helpers::CompositeCandidateMaker.release(), helpers::NamedCompositeCandidateMaker.release(), helpers::CompositePtrCandidateMaker.release(), UrbanMscModel93.SampleCosineTheta(), PFSCEnergyCalibration.SCCorrEtEtaBarrel(), MonitorElement.setAccumulate(), LinearEquation3< T >.solution(), heppy::mt2w_bisect::mt2w.teco(), align.toMatrix(), VVIObj.VVIObj(), sistripvvi::VVIObj.VVIObj(), VVIObjF.VVIObjF(), CSCWireGeometry.wireEnds(), GlobalTrackerMuonAlignment.writeGlPosRcd(), DistanceToCell.~DistanceToCell(), and MatcherUsingTracksAlgorithm.~MatcherUsingTracksAlgorithm().

list alignmentValidation.CANVASES_LIST_TEMPLATE

Definition at line 222 of file alignmentValidation.py.

string alignmentValidation.comdir = "common/"

setup output:

Definition at line 1008 of file alignmentValidation.py.

alignmentValidation.default

Definition at line 39 of file alignmentValidation.py.

alignmentValidation.dest

Definition at line 40 of file alignmentValidation.py.

bool alignmentValidation.DO_CSC = False

Definition at line 167 of file alignmentValidation.py.

bool alignmentValidation.DO_CURVATURE = False

Definition at line 182 of file alignmentValidation.py.

alignmentValidation.DO_DIAGNOSTIC = options.diagnostic

Definition at line 196 of file alignmentValidation.py.

bool alignmentValidation.DO_DT = False

Definition at line 166 of file alignmentValidation.py.

bool alignmentValidation.DO_FIT = False

Definition at line 183 of file alignmentValidation.py.

bool alignmentValidation.DO_MAP = False

Definition at line 180 of file alignmentValidation.py.

bool alignmentValidation.DO_MEDIAN = False

Definition at line 184 of file alignmentValidation.py.

bool alignmentValidation.DO_SEGDIFF = False

Definition at line 181 of file alignmentValidation.py.

string alignmentValidation.fname = options.inputDir+'/'

main script

Definition at line 957 of file alignmentValidation.py.

Referenced by L1TMuonGlobalParams.absIsoCheckMemLUTPath(), L1TMuonGlobalParamsHelper.absIsoCheckMemLUTPath(), HcalTBWriter.analyze(), EcalSRCondTools.analyze(), L1TMuonGlobalParams.bEtaExtrapolationLUTPath(), L1TMuonGlobalParamsHelper.bEtaExtrapolationLUTPath(), L1TMuonGlobalParams.bONegMatchQualLUTPath(), L1TMuonGlobalParamsHelper.bONegMatchQualLUTPath(), L1TMuonGlobalParams.bOPosMatchQualLUTPath(), L1TMuonGlobalParamsHelper.bOPosMatchQualLUTPath(), L1TMuonGlobalParams.bPhiExtrapolationLUTPath(), L1TMuonGlobalParamsHelper.bPhiExtrapolationLUTPath(), clangcms::EDMPluginDumper.checkASTDecl(), dd_to_html(), GeometryInfoDump.dumpInfo(), ExternalLHEAsciiDumper.endRun(), L1TMuonGlobalParams.fEtaExtrapolationLUTPath(), L1TMuonGlobalParamsHelper.fEtaExtrapolationLUTPath(), FileBlob.FileBlob(), L1TMuonGlobalParams.fONegMatchQualLUTPath(), L1TMuonGlobalParamsHelper.fONegMatchQualLUTPath(), L1TMuonGlobalParams.fOPosMatchQualLUTPath(), L1TMuonGlobalParamsHelper.fOPosMatchQualLUTPath(), L1TMuonGlobalParams.fPhiExtrapolationLUTPath(), L1TMuonGlobalParamsHelper.fPhiExtrapolationLUTPath(), L1TMuonGlobalParams.fwdNegSingleMatchQualLUTPath(), L1TMuonGlobalParamsHelper.fwdNegSingleMatchQualLUTPath(), L1TMuonGlobalParams.fwdPosSingleMatchQualLUTPath(), L1TMuonGlobalParamsHelper.fwdPosSingleMatchQualLUTPath(), MatacqProducer.getMatacqFile(), popcon::EcalTPGSpikeThresholdfromFile.getNewObjects(), popcon::EcalSRPHandler.getNewObjects(), popcon::EcalTPGPhysicsConstfromFile.getNewObjects(), popcon::EcalLaser_weekly_Linearization.getNewObjects(), popcon::EcalLaser_weekly_Linearization_Check.getNewObjects(), popcon::EcalTPGPedfromFile.getNewObjects(), popcon::EcalTPGLinPed.getNewObjects(), popcon::EcalLaser_weekly_Handler.getNewObjects(), DDLSAX2Handler.getSpaceCount(), TrackingUtility.goToDir(), SiStripUtility.goToDir(), L1TMuonGlobalParams.idxSelMemEtaLUTPath(), L1TMuonGlobalParamsHelper.idxSelMemEtaLUTPath(), L1TMuonGlobalParams.idxSelMemPhiLUTPath(), L1TMuonGlobalParamsHelper.idxSelMemPhiLUTPath(), clangcms::support.isConst(), L1MuGMTLUT.LookupFunctionPacked(), main(), l1t::MicroGMTAbsoluteIsolationCheckLUT.MicroGMTAbsoluteIsolationCheckLUT(), l1t::MicroGMTCaloIndexSelectionLUT.MicroGMTCaloIndexSelectionLUT(), l1t::MicroGMTExtrapolationLUT.MicroGMTExtrapolationLUT(), l1t::MicroGMTRelativeIsolationCheckLUT.MicroGMTRelativeIsolationCheckLUT(), MuonResiduals5DOFFitter.ndata(), MuonResiduals6DOFrphiFitter.ndata(), MuonResiduals6DOFFitter.ndata(), L1TMuonGlobalParams.oEtaExtrapolationLUTPath(), L1TMuonGlobalParamsHelper.oEtaExtrapolationLUTPath(), HcalLuttoDB.openChecksums(), HcalLuttoDB.openPerCrate(), HcalLuttoDB.openPerLut1(), HcalLuttoDB.openPerLut2(), L1TMuonGlobalParams.oPhiExtrapolationLUTPath(), L1TMuonGlobalParamsHelper.oPhiExtrapolationLUTPath(), L1TMuonGlobalParams.ovlNegSingleMatchQualLUTPath(), L1TMuonGlobalParamsHelper.ovlNegSingleMatchQualLUTPath(), L1TMuonGlobalParams.ovlPosSingleMatchQualLUTPath(), L1TMuonGlobalParamsHelper.ovlPosSingleMatchQualLUTPath(), DDLParser.parseFile(), PlotCombiner(), SiStripInformationExtractor.plotHistosFromLayout(), MODCCSHFDat.populateClob(), IODConfig.populateClob(), L1TTwinMuxRawToDigi.processFed(), RPCTriggerConfig.produce(), L1TMuonGlobalParams.relIsoCheckMemLUTPath(), L1TMuonGlobalParamsHelper.relIsoCheckMemLUTPath(), ODLTCConfig.setParameters(), ODTTCFConfig.setParameters(), ODTTCciConfig.setParameters(), ODDCCConfig.setParameters(), ODSRPConfig.setParameters(), ODLaserConfig.setParameters(), gen::Pythia6Service.setSLHAFromHeader(), CmsShowMain.setupDataHandling(), L1TMuonGlobalParams.sortRankLUTPath(), L1TMuonGlobalParamsHelper.sortRankLUTPath(), and MODCCSHFDat.writeDB().

alignmentValidation.help

Definition at line 37 of file alignmentValidation.py.

alignmentValidation.i1prefix = options.i1prefix

Definition at line 155 of file alignmentValidation.py.

alignmentValidation.iNprefix = options.iNprefix

Definition at line 158 of file alignmentValidation.py.

alignmentValidation.iter1_reports = []

Definition at line 960 of file alignmentValidation.py.

alignmentValidation.iter1_tfile = None

Definition at line 959 of file alignmentValidation.py.

string alignmentValidation.iteration1 = "iter1"

Definition at line 1009 of file alignmentValidation.py.

string alignmentValidation.iterationN = "iterN"

Definition at line 1010 of file alignmentValidation.py.

alignmentValidation.iterN_reports = []

Definition at line 981 of file alignmentValidation.py.

alignmentValidation.iterN_tfile = None

Definition at line 980 of file alignmentValidation.py.

alignmentValidation.options

Definition at line 144 of file alignmentValidation.py.

alignmentValidation.outdir = options.outputDir

Definition at line 152 of file alignmentValidation.py.

alignmentValidation.parser = optparse.OptionParser(usage)

Definition at line 34 of file alignmentValidation.py.

alignmentValidation.pic_ids = createCanvasToIDList("canvas2id_list.js")

Definition at line 1045 of file alignmentValidation.py.

int alignmentValidation.QUICKTESTN = 10000

Definition at line 215 of file alignmentValidation.py.

alignmentValidation.SINGLE_ITERATION = False

Definition at line 177 of file alignmentValidation.py.

list alignmentValidation.tfiles1_plotting = []

Definition at line 958 of file alignmentValidation.py.

list alignmentValidation.tfilesN_plotting = []

Definition at line 979 of file alignmentValidation.py.

alignmentValidation.type

Definition at line 38 of file alignmentValidation.py.

string alignmentValidation.usage = '%prog [options]\n'

To parse commandline args.

Definition at line 17 of file alignmentValidation.py.

alignmentValidation.windowdxdz

Definition at line 1038 of file alignmentValidation.py.

alignmentValidation.windowdydz

Definition at line 1038 of file alignmentValidation.py.

alignmentValidation.windowx

Definition at line 1038 of file alignmentValidation.py.

alignmentValidation.windowy

Definition at line 1038 of file alignmentValidation.py.