CMS 3D CMS Logo

Functions | Variables
heppy_report Namespace Reference

Functions

def root2map (dir, ana, treename)
 

Variables

 args
 
 default
 
 description
 
 dest
 
 help
 
 jmap
 
 lumis
 
 oname
 
 options
 
 parser
 
 runs
 
 summary
 
 usage
 

Function Documentation

def heppy_report.root2map (   dir,
  ana,
  treename 
)

Definition at line 7 of file heppy_report.py.

References mps_setup.append, list(), and edm.print().

7 def root2map(dir,ana,treename):
8  import ROOT
9  tfile = ROOT.TFile.Open("%s/%s/%s.root"%(dir,ana,treename))
10  if not tfile:
11  print("Error: dir %s does not contain %s/%s.root" % (dir,ana,treename))
12  return None
13  tree = tfile.Get(treename)
14  if not tree:
15  print("Error: rootfile %s/%s/%s.root does not contain a TTree %s" % (dir,ana,treename,treename))
16  return None
17  jsonind = {}
18  for e in xrange(tree.GetEntries()):
19  tree.GetEntry(e)
20  run,lumi = tree.run, tree.lumi
21  if run not in jsonind:
22  jsonind[run] = [lumi]
23  else:
24  jsonind[run].append(lumi)
25  # remove duplicates
26  for run in jsonind:
27  jsonind[run] = list(set(jsonind[run]))
28 
29  nruns = len(jsonind)
30  nlumis = sum(len(v) for v in six.itervalues(jsonind))
31  jsonmap = {}
32  for r,lumis in six.iteritems(jsonind):
33  if len(lumis) == 0: continue # shouldn't happen
34  lumis.sort()
35  ranges = [ [ lumis[0], lumis[0] ] ]
36  for lumi in lumis[1:]:
37  if lumi == ranges[-1][1] + 1:
38  ranges[-1][1] = lumi
39  else:
40  ranges.append([lumi,lumi])
41  jsonmap[r] = ranges
42  return (jsonmap, nruns, nlumis)
43 
def root2map(dir, ana, treename)
Definition: heppy_report.py:7
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
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

Variable Documentation

heppy_report.args

Definition at line 50 of file heppy_report.py.

heppy_report.default

Definition at line 47 of file heppy_report.py.

heppy_report.description

Definition at line 46 of file heppy_report.py.

Referenced by optutl::VariableMapCont._checkKey(), edm::eventsetup::looper.addFinderTo(), edm::eventsetup.addProviderTo(), edm::eventsetup::looper.addProviderTo(), edm::eventsetup::ComponentMaker< T, TComponent >.addTo(), DDTestDumpGeometry.analyze(), DDCMSDetector.analyze(), DDTestDumpFile.analyze(), edm.checkForModuleDependencyCorrectness(), ConfFitterBuilder< O >.ConfFitterBuilder(), ConfRecoBuilder< O >.ConfRecoBuilder(), sistrip::SpyEventMatcher.constructSource(), edm::eventsetup::ComponentMakerBaseHelper.createComponentDescription(), SiStripHistoId.createHistoId(), SiStripHistoId.createHistoLayer(), SiStripConfigDb.deviceAddress(), empty(), optutl::VariableMapCont.hasOption(), TFileDirectory.make(), edm::one::OutputModuleBase.moduleDescription(), ExceptionHandler.Notify(), ExceptionHandler.operator!=(), edm::OutputModuleCommunicatorT< T >.OutputModuleCommunicatorT(), CachingVariable.print(), optutl::CommandLineParser.printOptionValues(), edm::limited::OutputModuleBase.queue(), SiStripCondObjBuilderFromDb.setValuesCabling(), TwoObjectVariable< LHS, lLHS, RHS, lRHS, Calculator >.TwoObjectVariable(), edm.validateTopLevelParameterSets(), edm::OutputModule.wantAllEvents(), edm::global::OutputModuleBase.wantsGlobalLuminosityBlocks(), edm::OutputModuleCommunicatorT< T >.writeLumiAsync(), edm::OutputModuleCommunicatorT< T >.writeRunAsync(), cond::persistency::IGTTable.~IGTTable(), cond::persistency::ITagTable.~ITagTable(), cond::persistency::GLOBAL_TAG::Table.~Table(), and cond::persistency::TAG::Table.~Table().

heppy_report.dest

Definition at line 47 of file heppy_report.py.

heppy_report.help

Definition at line 47 of file heppy_report.py.

heppy_report.jmap

Definition at line 58 of file heppy_report.py.

heppy_report.lumis
heppy_report.oname
heppy_report.options

Definition at line 50 of file heppy_report.py.

heppy_report.parser

Definition at line 45 of file heppy_report.py.

heppy_report.runs

Definition at line 58 of file heppy_report.py.

heppy_report.summary

Definition at line 55 of file heppy_report.py.

Referenced by FilterSelection.acceptMap(), popcon::PopConSourceHandler< CastorPedestals >.add(), edmtest::DQMSummaryEventSetupAnalyzer.analyze(), RawDataConverter.analyze(), edmtest::FillInfoESAnalyzer.analyze(), edmtest::LHCInfoESAnalyzer.analyze(), edmtest::RunInfoESAnalyzer.analyze(), edmtest::RunSummaryESAnalyzer.analyze(), SiStripCommissioningSource.analyze(), NoiseRates.analyze(), HcalNoiseRates.analyze(), FFTJetPileupAnalyzer.analyze(), TrackerDpgAnalysis.analyze(), MagneticFieldFilter.beginRun(), APVCyclePhaseProducerFromL1TS.beginRun(), sistrip::FEDBuffer.checkSummary(), sistrip::FEDBufferBase.checkSummary(), MEtoMEComparitor.compare(), HltDiff.compare(), FedTimingHistograms.createSummaryHisto(), FedCablingHistograms.createSummaryHisto(), CommissioningHistograms.createSummaryHisto(), TrackerDpgAnalysis.delay(), FFTJetProducer.determinePileupDensityFromConfig(), FFTJetProducer.determinePileupDensityFromDB(), LA_Filler_Fitter.ensemble_summary(), RPCChamberQuality.fillMonitorElements(), edm::SystemTimeKeeper.fillTriggerTimingReport(), SiStripCommissioningRunTypeFilter.filter(), LogErrorFilter.filter(), CastorInvalidDataFilter.filter(), L1RCTProducer.getFedVectorFromOmds(), L1RCTProducer.getFedVectorFromRunInfo(), SummaryGenerator.histogram(), CommissioningHistograms.histogram(), HLTSummaryFilter.hltFilter(), main(), FilterSelection.print(), FilterSelection.printDetailledPrintoutHeader(), SiStripLorentzAngle.printSummary(), SiStripBackPlaneCorrection.printSummary(), SiStripPedestals.printSummary(), SiStripNoises.printSummary(), sistrip::RawToDigiModule.produce(), SiStripFineDelayHit.produce(), HBHENoiseFilterResultProducer.produce(), FFTJetPileupEstimator.produce(), L1RCTOmdsFedVectorProducer.produce(), reco::HcalNoiseInfoProducer.produce(), SiStripFineDelayHit.produceNoTracking(), L1TdeRCT.readFEDVector(), SiStripDQMHistoryHelper.sep(), sistrip::RawToDigiUnpacker.triggerFed(), sistrip::RawToDigiUnpacker.updateEventSummary(), sistrip::EnsembleCalibrationLA.write_ensembles_text(), SummaryOutputProducer.writeHistograms(), fftjetcms::AbsPileupCalculator.~AbsPileupCalculator(), and fftjetcms::EtaDependentPileup.~EtaDependentPileup().

heppy_report.usage

Definition at line 45 of file heppy_report.py.