Functions | |
def | decodeLine (line, index, type) |
def | getIntLumi (tuples) |
def | getLumiPerIoV (start_run, end_run=0) |
def | getLumiPerRun (run) |
def | getTuples (inputDir, filterNumbers=[]) |
def | getTuplesMC (inputDir) |
def | isNumber (this) |
def | log (log_type="", text="") |
def | makeAveragedFile (tuples, intLumi, objName="") |
def | parser () |
Variables | |
_dir = config['validation']['mergeFile'].replace("{}","") | |
dictionary | _lumiMC = {} |
def | args = parser() |
Main code: More... | |
argv = sys.argv | |
basedir = _dir.replace("{}","") | |
config = json.load(configFile) | |
csvwriter = csv.writer(csvfile, delimiter=' ') | |
DATA: CREATE LUMI FILE FOR FINALIZATION JOB. More... | |
list | inputDirData = [] |
Input directory checks. More... | |
list | inputDirMC = [] |
def | intLumi = getIntLumi(tuples) |
list | IOVs = [] |
tuple | isDMR = (config['type'] == "DMR") |
tuple | isPV = (config['type'] == "PV") |
JSON lumifiles checks. More... | |
lumiMC = config['validation']['lumiMC'] | |
lumiPerIoV = config['validation']['lumiPerIoV'] | |
lumiPerRun = config['validation']['lumiPerRun'] | |
nFiles = len(config['validation']['mergeFile']) | |
string | objName = "" |
string | outFileName = "" |
dictionary | plotInfo = {} |
plotter = DMRplotter(plotInfo) | |
bool | skipLast = False |
subdir = _dir.replace("{}",str(config['validation']['IOV'][0])) | |
bool | subDirMissing = False |
tuple = _list[0] | |
def | tupleFinal = getTuples(inputDir) |
Get list of python dictionaries: { 'file' : previously merged file, 'number' : [], 'lumi' : corresponding lumi from previous jobs}. More... | |
dictionary | tupleGroupsMC = {} |
MC: FIRST DEFINE MC GROUPS THEN MERGE ALL MC IN GROUP WITH CORRESPONDING LUMI SCALE. More... | |
def | tuples = getTuples(inputDir,IOVs) |
Get list of python dictionaries: { 'file' : file name, 'number' : IoV/run number, 'lumi' : corresponding luminosity}. More... | |
list | tuples_total = [] |
DATA: PERFORM INITIAL MERGE OR FINALIZE PV: EACH FOLDER CONSIDERED TO BE ONE OBJECT, DMR: (MULTIPLE) OBJECTS DECIDED IMPLICITELY. More... | |
string | whichValidation = "" |
Style optional checks. More... | |
def mkLumiAveragedPlots.decodeLine | ( | line, | |
index, | |||
type | |||
) |
Definition at line 46 of file mkLumiAveragedPlots.py.
References python.rootplot.root2matplotlib.replace(), and submitPVValidationJobs.split().
Referenced by getLumiPerIoV(), and getLumiPerRun().
def mkLumiAveragedPlots.getIntLumi | ( | tuples | ) |
def mkLumiAveragedPlots.getLumiPerIoV | ( | start_run, | |
end_run = 0 |
|||
) |
Definition at line 52 of file mkLumiAveragedPlots.py.
References decodeLine(), ALCARECOEcalPhiSym_cff.float, getLumiPerRun(), createfilelist.int, log(), isotrackApplyRegressor.range, and str.
Referenced by getLumiPerRun().
def mkLumiAveragedPlots.getLumiPerRun | ( | run | ) |
Definition at line 98 of file mkLumiAveragedPlots.py.
References mps_setup.append, decodeLine(), ALCARECOEcalPhiSym_cff.float, getIntLumi(), getLumiPerIoV(), getTuples(), getTuplesMC(), createfilelist.int, isNumber(), log(), makeAveragedFile(), parser(), python.rootplot.root2matplotlib.replace(), submitPVValidationJobs.split(), and str.
Referenced by getLumiPerIoV().
def mkLumiAveragedPlots.getTuples | ( | inputDir, | |
filterNumbers = [] |
|||
) |
Definition at line 119 of file mkLumiAveragedPlots.py.
Referenced by getLumiPerRun().
def mkLumiAveragedPlots.getTuplesMC | ( | inputDir | ) |
Definition at line 260 of file mkLumiAveragedPlots.py.
Referenced by getLumiPerRun().
def mkLumiAveragedPlots.isNumber | ( | this | ) |
Definition at line 39 of file mkLumiAveragedPlots.py.
References createfilelist.int.
Referenced by getLumiPerRun(), and CandIsolatorFromDeposits::SingleDeposit.SingleDeposit().
def mkLumiAveragedPlots.log | ( | log_type = "" , |
|
text = "" |
|||
) |
Definition at line 13 of file mkLumiAveragedPlots.py.
References createfilelist.int, print(), and str.
Referenced by getLumiPerIoV(), and getLumiPerRun().
def mkLumiAveragedPlots.makeAveragedFile | ( | tuples, | |
intLumi, | |||
objName = "" |
|||
) |
Definition at line 315 of file mkLumiAveragedPlots.py.
Referenced by getLumiPerRun().
def mkLumiAveragedPlots.parser | ( | ) |
Definition at line 375 of file mkLumiAveragedPlots.py.
Referenced by getLumiPerRun().
|
private |
Definition at line 431 of file mkLumiAveragedPlots.py.
|
private |
Definition at line 528 of file mkLumiAveragedPlots.py.
def mkLumiAveragedPlots.args = parser() |
Main code:
Definition at line 394 of file mkLumiAveragedPlots.py.
mkLumiAveragedPlots.argv = sys.argv |
Definition at line 3 of file mkLumiAveragedPlots.py.
mkLumiAveragedPlots.basedir = _dir.replace("{}","") |
Definition at line 459 of file mkLumiAveragedPlots.py.
Referenced by FastTimerService::PlotsPerPath.book(), FastTimerService::PlotsPerProcess.book(), FastTimerService::PlotsPerJob.book(), DTLocalTriggerBaseTest.bookCmsHistos(), DTTriggerLutTest.bookCmsHistos1d(), DTTriggerEfficiencyTest.bookHistos(), DTLocalTriggerBaseTest.bookSectorHistos(), DTTriggerEfficiencyTest.bookWheelHistos(), DTTriggerEfficiencyTask.bookWheelHistos(), DTLocalTriggerBaseTest.bookWheelHistos(), and TrackerOfflineValidation::DirectoryWrapper.DirectoryWrapper().
mkLumiAveragedPlots.config = json.load(configFile) |
Definition at line 397 of file mkLumiAveragedPlots.py.
mkLumiAveragedPlots.csvwriter = csv.writer(csvfile, delimiter=' ') |
DATA: CREATE LUMI FILE FOR FINALIZATION JOB.
Definition at line 641 of file mkLumiAveragedPlots.py.
list mkLumiAveragedPlots.inputDirData = [] |
Input directory checks.
Definition at line 421 of file mkLumiAveragedPlots.py.
list mkLumiAveragedPlots.inputDirMC = [] |
Definition at line 422 of file mkLumiAveragedPlots.py.
def mkLumiAveragedPlots.intLumi = getIntLumi(tuples) |
Definition at line 602 of file mkLumiAveragedPlots.py.
Referenced by HcalDbHardcode.makePFCut().
list mkLumiAveragedPlots.IOVs = [] |
Definition at line 423 of file mkLumiAveragedPlots.py.
Definition at line 503 of file mkLumiAveragedPlots.py.
JSON lumifiles checks.
Definition at line 502 of file mkLumiAveragedPlots.py.
Referenced by TauValidationMiniAOD.analyze(), and PrimaryVertexAnalyzer4PUSlimmed.fillResolutionAndPullHistograms().
dictionary mkLumiAveragedPlots.lumiMC = config['validation']['lumiMC'] |
Definition at line 507 of file mkLumiAveragedPlots.py.
list mkLumiAveragedPlots.lumiPerIoV = config['validation']['lumiPerIoV'] |
Definition at line 506 of file mkLumiAveragedPlots.py.
list mkLumiAveragedPlots.lumiPerRun = config['validation']['lumiPerRun'] |
Definition at line 505 of file mkLumiAveragedPlots.py.
mkLumiAveragedPlots.nFiles = len(config['validation']['mergeFile']) |
Definition at line 409 of file mkLumiAveragedPlots.py.
Referenced by SiStripSpyMonitorModule.analyze(), jetHtPlotter(), FFTJetPileupProcessor.mixExtraGrid(), ptHatCombinedHistogram(), SiStripSpyMonitorModule.SiStripSpyMonitorModule(), and SiStripSpyMonitorModule.~SiStripSpyMonitorModule().
string mkLumiAveragedPlots.objName = "" |
Definition at line 608 of file mkLumiAveragedPlots.py.
Referenced by TriggerTools.addTriggerRecord(), EgHLTOfflineClient.createLooseTightTrigEff(), EgHLTOfflineClient.createTrigTagProbeEffHists(), EgHLTOfflineClient.createTrigTagProbeEffHists2Leg(), EgHLTOfflineClient.createTrigTagProbeEffHistsNewAlgo(), and egHLT::MonElemFuncs.initTightLooseTrigHists().
mkLumiAveragedPlots.outFileName = "" |
Definition at line 607 of file mkLumiAveragedPlots.py.
Referenced by main(), makeTKTrend(), and ZdcTBAnalysis.setup().
dictionary mkLumiAveragedPlots.plotInfo = {} |
Definition at line 678 of file mkLumiAveragedPlots.py.
mkLumiAveragedPlots.plotter = DMRplotter(plotInfo) |
Definition at line 692 of file mkLumiAveragedPlots.py.
Referenced by merge(), MuScleFitMuonSelector.selectGeneratedMuons(), MuScleFitMuonSelector.selectGenSimMuons(), MuScleFitMuonSelector.selectMuons(), and MuScleFitMuonSelector.selectSimulatedMuons().
mkLumiAveragedPlots.skipLast = False |
Definition at line 544 of file mkLumiAveragedPlots.py.
Definition at line 460 of file mkLumiAveragedPlots.py.
Referenced by TFileDirectory._cd(), TFileDirectory._getObj(), RunHistogramManager.beginRun(), Phase2ITValidateRecHitBase.bookLayerHistos(), Phase2OTMonitorVectorHits.bookLayerHistos(), Phase2ITMonitorRecHit.bookLayerHistos(), Phase2OTValidateRecHitBase.bookLayerHistos(), Phase2OTMonitorRecHit.bookLayerHistos(), Phase2ITMonitorCluster.bookLayerHistos(), Phase2OTMonitorCluster.bookLayerHistos(), Phase2ITValidateCluster.bookLayerHistos(), Phase2OTValidateCluster.bookLayerHistos(), FastTimerServiceClient.fillProcessSummaryPlots(), ThroughputServiceClient.fillSummaryPlots(), FastTimerServiceClient.fillSummaryPlots(), TFileDirectory.getBareDirectory(), TFileService.getBareDirectory(), SiStripUtility.getModuleFolderList(), TFileDirectory.getObject(), TFileService.getObject(), SiStripSummaryCreator.getSummaryME(), processDirectory(), LegacyIOHelper.readdir(), and TSOSHistogramMaker.TSOSHistogramMaker().
bool mkLumiAveragedPlots.subDirMissing = False |
Definition at line 435 of file mkLumiAveragedPlots.py.
mkLumiAveragedPlots.tuple = _list[0] |
Definition at line 654 of file mkLumiAveragedPlots.py.
Referenced by edmStreamStallGrapher.StallMonitorParser.__init__(), edmTracerCompactLogViewer.TracerCompactFileParser.__init__(), edmModuleAllocMonitorAnalyze.ModuleAllocCompactFileParser.__init__(), frozendict.frozendict.__new__(), mps_alisetup.SetupAlignment._create_weight_configs(), edm::ProductRegistry.aliasToModules(), BaseTnPEfficiencyTask.analyze(), BtlLocalRecoValidation.analyze(), EtlLocalRecoValidation.analyze(), edm::SoATuple< edm::EDConsumerBase::TokenLookupInfo, bool, edm::EDConsumerBase::LabelPlacement, edm::KindOfType >.begin(), utilities.cache(), ticl::TracksterP4FromEnergySum.calcP4(), python.rootplot.core.cartesian_product(), GenObject.GenObject.changeLabel(), cms::soa::SoAParametersImpl< SoAColumnType::eigen, T >.checkAlignment(), core.ProvenanceAnalyzer.ProvenanceAnalyzer.cmsswVNums(), l1tGTAlgoBlockProducer_cff.collectAlgorithmPaths(), edm::soa::Table< edm::soa::col::Pt, edm::soa::col::Eta, edm::soa::col::Phi, edm::soa::col::Vz >.copyFromToWithResize(), edm::soa::MutableRowView< Args >.copyValuesUsingFiller(), plotscripts.corrections2D(), runTheMatrix.TheMatrix.do_runWorkflow(), geometryDiffVisualization.draw_disk(), edm::SoATuple< edm::EDConsumerBase::TokenLookupInfo, bool, edm::EDConsumerBase::LabelPlacement, edm::KindOfType >.end(), fit::LikelihoodEvaluator< PDF, Tuple >.evaluate(), edm::soa::Table< Args >::CtrFillerFromAOS.fillElement(), edm::soa::Table< Args >::CtrFillerFromAOS.fillElementUsingFiller(), cmsswSequenceInfo.formatsequenceinfo(), edm::SoATuple< edm::EDConsumerBase::TokenLookupInfo, bool, edm::EDConsumerBase::LabelPlacement, edm::KindOfType >.get(), createIOVlist.getFileInfo(), MTDCPEBase.getParameters(), PixelCPEBase.getParameters(), edmtest::ThinningTestAnalyzer.getThinned(), edm::detail.getThinnedProduct(), edm::refcore.getThinnedProduct_(), edm::detail.getThinnedProductsOnSlimmingDepth(), geometryXMLparser.DTAlignable.index(), geometryXMLparser.CSCAlignable.index(), compareHistograms.is_blacklisted(), ConvertingESProducerWithDependenciesT< CombinedRecord< DepsRecords... >, Target, Dependencies... >::WalkAndCall< N, Types >.iterate(), GenObject.GenObject.loadConfigFile(), PixelClusterParameterEstimator.localParametersV(), MTDClusterParameterEstimator.localParametersV(), LumiToRun.lumi_to_run(), ProvenanceDumper.makeBranchIDListHelper(), edm::detail.makeThinnedIndexes(), mergeLHE.DefaultLHEMerger.merge_init_blocks(), cmsswConfigtrace.new_items_(), std.operator<<(), edm::soa::Table< Args >::CtrFillerFromAOS.presize(), das-selected-lumis.process_lumi(), edmTracerCompactLogViewer.processingStepsFromFile(), edmModuleAllocMonitorAnalyze.processingStepsFromFile(), edmStreamStallGrapher.processingStepsFromStallMonitorOutput(), MTDTrackingRecHitProducer.produce(), python.readProv.filereader.readfile(), edm::soa::Table< edm::soa::col::Pt, edm::soa::col::Eta, edm::soa::col::Phi, edm::soa::col::Vz >.resetStartingAt(), edm::soa::Table< edm::soa::col::Pt, edm::soa::col::Eta, edm::soa::col::Phi, edm::soa::col::Vz >.resizeFromTo(), tfaot::Model< W >.run(), cms::SiPixelRecHitConverter.run(), generateGeometry.GeometryGenerator.run(), cmsswSequenceInfo.serve(), showPage.BuildViewer.showResults(), edm::detail::ThinnedOrSlimmedProduct.slimmedAssociation(), edm::detail::ThinnedOrSlimmedProduct.thinnedProduct(), jetTools.UpdateJetCollection.toolCode(), cmsswConfigtrace.trace_location(), compareHistograms.traverse_till_end(), root2sqlite.treetotable(), and Formatter.SimpleAsciiFormatter.writeRow().
def mkLumiAveragedPlots.tupleFinal = getTuples(inputDir) |
Get list of python dictionaries:
{ 'file' : previously merged file, 'number' : [], 'lumi' : corresponding lumi from previous jobs}.
Definition at line 626 of file mkLumiAveragedPlots.py.
dictionary mkLumiAveragedPlots.tupleGroupsMC = {} |
MC: FIRST DEFINE MC GROUPS THEN MERGE ALL MC IN GROUP WITH CORRESPONDING LUMI SCALE.
Definition at line 649 of file mkLumiAveragedPlots.py.
Get list of python dictionaries:
{ 'file' : file name, 'number' : IoV/run number, 'lumi' : corresponding luminosity}.
Definition at line 601 of file mkLumiAveragedPlots.py.
list mkLumiAveragedPlots.tuples_total = [] |
DATA: PERFORM INITIAL MERGE OR FINALIZE PV: EACH FOLDER CONSIDERED TO BE ONE OBJECT, DMR: (MULTIPLE) OBJECTS DECIDED IMPLICITELY.
Definition at line 594 of file mkLumiAveragedPlots.py.
mkLumiAveragedPlots.whichValidation = "" |
Style optional checks.
Stat plot settings checks Printout details
Definition at line 586 of file mkLumiAveragedPlots.py.