Public Member Functions | |
def | __init__ |
def | loop |
def | process |
def | write |
Public Attributes | |
analyzers | |
cfg_comp | |
classes | |
event | |
events | |
firstEvent | |
iEvent | |
logger | |
name | |
nEvents | |
nPrint | |
outDir | |
setup | |
start_time | |
start_time_event | |
timeReport | |
Private Member Functions | |
def | _build |
def | _prepareOutput |
Creates a set of analyzers, and schedules the event processing.
def looper.Looper.__init__ | ( | self, | |
name, | |||
config, | |||
nEvents = None , |
|||
firstEvent = 0 , |
|||
nPrint = 0 , |
|||
timeReport = False , |
|||
quiet = False |
|||
) |
Handles the processing of an event sample. An Analyzer is built for each Config.Analyzer present in sequence. The Looper can then be used to process an event, or a collection of events. Parameters: name : name of the Looper, will be used as the output directory name config : process configuration information, see Config nEvents : number of events to process. Defaults to all. firstEvent : first event to process. Defaults to the first one. nPrint : number of events to print at the beginning
Definition at line 56 of file looper.py.
|
private |
Definition at line 121 of file looper.py.
References analyzer.Analyzer.cfg_comp, looper.Looper.cfg_comp, and looper.Looper.outDir.
|
private |
def looper.Looper.loop | ( | self | ) |
Loop on a given number of events. At the beginning of the loop, Analyzer.beginLoop is called for each Analyzer. At each event, self.process is called. At the end of the loop, Analyzer.endLoop is called.
Definition at line 142 of file looper.py.
References looper.Looper.analyzers, Config.Process.analyzers, analyzer.Analyzer.cfg_comp, looper.Looper.cfg_comp, generateEDF.LumiInfo.events, relval_steps.InputInfo.events, HitEff.events, ME::Header.events, looper.Looper.events, options.HLTProcessOptions.events, Printer.Printer.firstEvent, lhef::LHEReader.firstEvent, StudyHLT.firstEvent, looper.Looper.firstEvent, LeptonRecoSkim.firstEvent, SiStripMonitorPedestals.firstEvent, IsoTrackCalib.firstEvent, SiStripMonitorCluster.firstEvent, SiStripMonitorDigi.firstEvent, TriggerValidator.firstEvent, SiStripMonitorTrack.firstEvent, HiggsTo2GammaSkim.nEvents, HiggsToZZ4LeptonsSkim.nEvents, JGJFilter.nEvents, HiggsToZZ4LeptonsSkimEff.nEvents, MCDijetResonance.nEvents, EgammaProbeSelector.nEvents, QualityTester.nEvents, AlCaHcalNoiseProducer.nEvents, DTScalerInfoTask.nEvents, MCatNLOSource.nEvents, AlpgenHeader.nEvents, HeavyChHiggsToTauNuSkim.nEvents, DTLocalTriggerLutTask.nEvents, looper.Looper.nEvents, DTLocalTriggerBaseTask.nEvents, MuonIsolationDQM.nEvents, MatacqProducer::stats_t.nEvents, cscdqm::Configuration.nEvents, event.Event.setup, and looper.Looper.setup.
def looper.Looper.process | ( | self, | |
iEv | |||
) |
Run event processing for all analyzers in the sequence. This function is called by self.loop, but can also be called directly from the python interpreter, to jump to a given event.
Definition at line 211 of file looper.py.
References TB06Reco.event, TB06RecoH2.event, core.AutoHandle.AutoHandle.event, MuonPair.event, LHAupLesHouches.event, EcalPerEvtMatacqAnalyzer.event, WZInterestingEventSelector::event.event, EcalStatusAnalyzer.event, lhef::LHEProxy.event, HitEff.event, MCatNLOSource.event, EcalMatacqAnalyzer.event, looper.Looper.event, EcalTestPulseAnalyzer.event, EcalABAnalyzer.event, edm::service::SimpleMemoryCheck::SignificantEvent.event, EcalPerEvtLaserAnalyzer.event, EcalLaserAnalyzer.event, EcalLaserAnalyzer2.event, FastTimerService::Timing.event, FastTimerService::TimingPerProcess.event, FastTimerService::SummaryPlots.event, FastTimerService::SummaryPlotsPerProcess.event, FastTimerService::SummaryProfiles.event, FastTimerService::SummaryProfilesPerProcess.event, generateEDF.LumiInfo.events, relval_steps.InputInfo.events, HitEff.events, ME::Header.events, looper.Looper.events, options.HLTProcessOptions.events, event.Event.setup, and looper.Looper.setup.
Referenced by ConfigBuilder.ConfigBuilder.__init__(), ConfigBuilder.ConfigBuilder.addExtraStream(), ConfigBuilder.ConfigBuilder.anyOf(), ConfigBuilder.ConfigBuilder.completeInputCommand(), ConfigBuilder.ConfigBuilder.doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules.leave(), ConfigBuilder.ConfigBuilder.prepare(), ConfigBuilder.ConfigBuilder.prepare_ALCA(), ConfigBuilder.ConfigBuilder.prepare_DQM(), ConfigBuilder.ConfigBuilder.prepare_FASTSIM(), ConfigBuilder.ConfigBuilder.prepare_HARVESTING(), ConfigBuilder.ConfigBuilder.prepare_HLT(), ConfigBuilder.ConfigBuilder.prepare_LHE(), ConfigBuilder.ConfigBuilder.prepare_PATFILTER(), ConfigBuilder.ConfigBuilder.prepare_VALIDATION(), ConfigBuilder.ConfigBuilder.renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder.renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder.scheduleSequence().
def looper.Looper.write | ( | self | ) |
Writes all analyzers. See Analyzer.Write for more information.
Definition at line 235 of file looper.py.
References looper.Looper.analyzers, Config.Process.analyzers, event.Event.setup, and looper.Looper.setup.
looper.Looper.analyzers |
Definition at line 81 of file looper.py.
Referenced by looper.Looper.loop(), and looper.Looper.write().
looper.Looper.cfg_comp |
Definition at line 79 of file looper.py.
Referenced by looper.Looper._build(), core.AutoFillTreeProducer.AutoFillTreeProducer.fillCoreVariables(), looper.Looper.loop(), and JetAnalyzer.JetAnalyzer.process().
looper.Looper.event |
Definition at line 111 of file looper.py.
Referenced by Types.EventID.cppID(), and looper.Looper.process().
looper.Looper.events |
Definition at line 96 of file looper.py.
Referenced by eventsfwlite.Events.__getattr__(), eventsfwlite.Events.__init__(), looper.Looper.loop(), and looper.Looper.process().
looper.Looper.firstEvent |
Definition at line 83 of file looper.py.
Referenced by looper.Looper.loop().
looper.Looper.name |
Definition at line 70 of file looper.py.
Referenced by dirstructure.Directory.__create_pie_image(), dqm_interfaces.DirID.__eq__(), dirstructure.Directory.__get_full_path(), dirstructure.Comparison.__get_img_name(), dataset.Dataset.__getDataType(), dataset.Dataset.__getFileInfoList(), cuy.divideElement.__init__(), cuy.plotElement.__init__(), cuy.additionElement.__init__(), cuy.superimposeElement.__init__(), cuy.graphElement.__init__(), dirstructure.Comparison.__make_image(), dirstructure.Directory.__repr__(), dqm_interfaces.DirID.__repr__(), dirstructure.Comparison.__repr__(), config.CFG.__str__(), counter.Counter.__str__(), average.Average.__str__(), dirstructure.Directory.calcStats(), python.rootplot.utilities.Hist.divide(), python.rootplot.utilities.Hist.divide_wilson(), utils.StatisticalTest.get_status(), dataset.CMSDataset.getPrimaryDatasetEntries(), dataset.PrivateDataset.getPrimaryDatasetEntries(), VIDSelectorBase.VIDSelectorBase.initialize(), dirstructure.Directory.print_report(), dataset.BaseDataset.printInfo(), dataset.Dataset.printInfo(), python.rootplot.utilities.Hist.TGraph(), python.rootplot.utilities.Hist.TH1F(), Vispa.Views.PropertyView.Property.valueChanged(), counter.Counter.write(), and average.Average.write().
looper.Looper.nEvents |
Definition at line 82 of file looper.py.
Referenced by looper.Looper.loop().
looper.Looper.outDir |
Definition at line 71 of file looper.py.
Referenced by looper.Looper._build().
looper.Looper.setup |
Definition at line 119 of file looper.py.
Referenced by looper.Looper.loop(), looper.Looper.process(), and looper.Looper.write().
looper.Looper.start_time |
Definition at line 173 of file looper.py.
Referenced by progressbar.ProgressBar.__next__(), and progressbar.ProgressBar.update().