Variables | |
string | action = "store_true" |
string | allOptions = "-l " |
tuple | c1 = ROOT.TCanvas("c1","c1",800,600) |
do drawing More... | |
list | CANVASES_LIST_TEMPLATE |
string | comdir = "common/" |
setup output: More... | |
string | default = '' |
string | dest = "runLabel" |
DO_CSC = False | |
DO_CURVATURE = False | |
DO_DIAGNOSTIC = options.diagnostic | |
DO_DT = False | |
DO_FIT = False | |
DO_MAP = False | |
DO_MEDIAN = False | |
DO_SEGDIFF = False | |
string | fname = options.inputDir+'/' |
main script More... | |
string | help = "[REQUIRED] label to use for a run" |
i1prefix = options.i1prefix | |
iNprefix = options.iNprefix | |
list | iter1_reports = [] |
iter1_tfile = None | |
string | iteration1 = "iter1" |
string | iterationN = "iterN" |
list | iterN_reports = [] |
iterN_tfile = None | |
outdir = options.outputDir | |
tuple | parser = optparse.OptionParser(usage) |
tuple | pic_ids = createCanvasToIDList("canvas2id_list.js") |
int | QUICKTESTN = 10000 |
SINGLE_ITERATION = False | |
list | tfiles1_plotting = [] |
list | tfilesN_plotting = [] |
string | type = "string" |
string | usage = '%prog [options]\n' |
To parse commandline args. More... | |
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().
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().
def alignmentValidation.createDirectoryStructure | ( | iteration_name | ) |
Definition at line 307 of file alignmentValidation.py.
def alignmentValidation.dirToID | ( | d | ) |
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().
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().
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(), plotscripts.polynomials(), saveAs(), and plotscripts.wheelLetter().
Referenced by doIterationPlots().
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().
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().
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 plotscripts.mapplot(), plotscripts.saveTestResultsMap(), and plotscripts.wheelLetter().
Referenced by doIterationPlots().
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 plotscripts.segdiff(), and plotscripts.segdiffvsphicsc().
Referenced by doIterationPlots().
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(), plotscripts.segdiff(), plotscripts.segdiff_xalign(), plotscripts.segdiffvsphi(), and plotscripts.segdiffvsphi_xalign().
Referenced by doIterationPlots().
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().
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().
def alignmentValidation.saveAs | ( | nm | ) |
Definition at line 299 of file alignmentValidation.py.
Referenced by doCurvaturePlotsDT(), doFitFunctionsPlotsCSC(), and doFitFunctionsPlotsDT().
string alignmentValidation.action = "store_true" |
Definition at line 80 of file alignmentValidation.py.
string alignmentValidation.allOptions = "-l " |
Definition at line 198 of file alignmentValidation.py.
tuple 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(), HcalSiPMShape.analyticPulseShape(), DimuonStatistics.analyze(), GlbMuQualityCutsAnalysis.analyze(), reco::NamedCompositeCandidate.applyRoles(), reco::CompositeCandidate.applyRoles(), DiagMaker.beginJob(), 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(), DiagMaker.endJob(), HOCalibAnalyzer.endJob(), 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(), CSCWireGeometry.intersection(), CSCLayerGeometry.intersectionOfTwoLines(), PerigeeConversions.jacobianParameters2Cartesian(), PFDisplacedVertexHelper.lambdaCP(), EvolutionECAL.LightCollectionEfficiency(), EvolutionECAL.LightCollectionEfficiencyWeighted(), CSCRadialStripTopology.localError(), TkRadialStripTopology.localError(), main(), makePlots(), FastTrackerRecHitMatcher.match(), SiStripRecHitMatcher.match(), GlobalTrackerMuonAlignment.misalignMuon(), GlobalTrackerMuonAlignment.misalignMuonL(), heppy::Davismt2.mt2_bisect(), heppy::Davismt2.nsols(), PhiInterval.PhiInterval(), PFAlgo.processBlock(), DimuonMCMatcher.produce(), proxim(), CSCTFPtMethods.Pt3Stn(), DTConfigDBProducer.readDTCCBConfig(), UrbanMscModel93.SampleCosineTheta(), PFSCEnergyCalibration.SCCorrEtEtaBarrel(), LinearEquation3< T >.solution(), heppy::mt2w_bisect::mt2w.teco(), align.toMatrix(), VVIObj.VVIObj(), sistripvvi::VVIObj.VVIObj(), VVIObjF.VVIObjF(), CSCWireGeometry.wireEnds(), and GlobalTrackerMuonAlignment.writeGlPosRcd().
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.
int alignmentValidation.default = '' |
Definition at line 39 of file alignmentValidation.py.
string alignmentValidation.dest = "runLabel" |
Definition at line 40 of file alignmentValidation.py.
alignmentValidation.DO_CSC = False |
Definition at line 167 of file alignmentValidation.py.
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.
alignmentValidation.DO_DT = False |
Definition at line 166 of file alignmentValidation.py.
alignmentValidation.DO_FIT = False |
Definition at line 183 of file alignmentValidation.py.
alignmentValidation.DO_MAP = False |
Definition at line 180 of file alignmentValidation.py.
alignmentValidation.DO_MEDIAN = False |
Definition at line 184 of file alignmentValidation.py.
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(), 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::EcalTPGFineGrainStripfromFile.getNewObjects(), popcon::EcalSRPHandler.getNewObjects(), popcon::EcalTPGPhysicsConstfromFile.getNewObjects(), popcon::EcalLaser_weekly_Linearization.getNewObjects(), popcon::EcalLaser_weekly_Linearization_Check.getNewObjects(), popcon::EcalTPGLinPed.getNewObjects(), popcon::EcalTPGPedfromFile.getNewObjects(), popcon::EcalLaser_weekly_Handler.getNewObjects(), TrackingUtility.goToDir(), SiStripUtility.goToDir(), L1TMuonGlobalParams.idxSelMemEtaLUTPath(), L1TMuonGlobalParamsHelper.idxSelMemEtaLUTPath(), L1TMuonGlobalParams.idxSelMemPhiLUTPath(), L1TMuonGlobalParamsHelper.idxSelMemPhiLUTPath(), main(), 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(), 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().
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.
tuple 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.
tuple alignmentValidation.iterN_tfile = None |
Definition at line 980 of file alignmentValidation.py.
alignmentValidation.outdir = options.outputDir |
Definition at line 152 of file alignmentValidation.py.
tuple alignmentValidation.parser = optparse.OptionParser(usage) |
Definition at line 34 of file alignmentValidation.py.
tuple 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.
string alignmentValidation.type = "string" |
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.