Public Member Functions | |
def | __init__ (self, cfg_ana, cfg_comp, looperName) |
def | __str__ (self) |
def | beginLoop (self, setup) |
def | endLoop (self, setup) |
def | process (self, event) |
def | write (self, setup) |
Public Attributes | |
averages | |
beginLoopCalled | |
cfg_ana | |
cfg_comp | |
class_object | |
counters | |
dirName | |
instance_label | |
looperName | |
mainLogger | |
name | |
verbose | |
Base Analyzer class. Used in Looper. Your custom analyzers should inherit from this class
Definition at line 11 of file analyzer.py.
def analyzer.Analyzer.__init__ | ( | self, | |
cfg_ana, | |||
cfg_comp, | |||
looperName | |||
) |
Create an analyzer. Parameters (also stored as attributes for later use): cfg_ana: configuration parameters for this analyzer (e.g. a pt cut) cfg_comp: configuration parameters for the data or MC component (e.g. DYJets) looperName: name of the Looper which runs this analyzer. Attributes: dirName : analyzer directory, where you can write anything you want
Definition at line 17 of file analyzer.py.
def analyzer.Analyzer.__str__ | ( | self | ) |
A multipurpose printout. Should do the job for most analyzers.
Definition at line 75 of file analyzer.py.
References analyzer.Analyzer.averages, analyzer.Analyzer.cfg_ana, cms::cuda::AtomicPairCounter::Atomic2.counters, NMaxPerLumi.counters, analyzer.Analyzer.counters, HistogramManager.counters, cscdqm::ChamberCounterKeyType.counters, join(), genParticles_cff.map, and str.
def analyzer.Analyzer.beginLoop | ( | self, | |
setup | |||
) |
Automatically called by Looper, for all analyzers.
Definition at line 48 of file analyzer.py.
def analyzer.Analyzer.endLoop | ( | self, | |
setup | |||
) |
Automatically called by Looper, for all analyzers.
Definition at line 55 of file analyzer.py.
References info(), analyzer.Analyzer.mainLogger, and str.
def analyzer.Analyzer.process | ( | self, | |
event | |||
) |
Automatically called by Looper, for all analyzers. each analyzer in the sequence will be passed the same event instance. each analyzer can access, modify, and store event information, of any type.
Definition at line 62 of file analyzer.py.
References analyzer.Analyzer.cfg_ana, and edm.print().
def analyzer.Analyzer.write | ( | self, | |
setup | |||
) |
Called by Looper.write, for all analyzers. Just overload it if you have histograms to write.
Definition at line 69 of file analyzer.py.
References analyzer.Analyzer.averages, cms::cuda::AtomicPairCounter::Atomic2.counters, NMaxPerLumi.counters, analyzer.Analyzer.counters, HistogramManager.counters, cscdqm::ChamberCounterKeyType.counters, analyzer.Analyzer.dirName, and MuonIsolationDQM.dirName.
analyzer.Analyzer.averages |
Definition at line 51 of file analyzer.py.
Referenced by analyzer.Analyzer.__str__(), objects.VertexAnalyzer.VertexAnalyzer.beginLoop(), core.PileUpAnalyzer.PileUpAnalyzer.beginLoop(), objects.VertexAnalyzer.VertexAnalyzer.process(), core.PileUpAnalyzer.PileUpAnalyzer.process(), and analyzer.Analyzer.write().
analyzer.Analyzer.beginLoopCalled |
Definition at line 46 of file analyzer.py.
analyzer.Analyzer.cfg_ana |
Definition at line 32 of file analyzer.py.
Referenced by core.TriggerBitAnalyzer.TriggerBitAnalyzer.__init__(), core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.__init__(), objects.LeptonAnalyzer.LeptonAnalyzer.__init__(), objects.JetAnalyzer.JetAnalyzer.__init__(), analyzer.Analyzer.__str__(), objects.PhotonAnalyzer.PhotonAnalyzer.attachFootprintRemovedIsolation(), objects.LeptonAnalyzer.LeptonAnalyzer.attachMiniIsolation(), Histogrammer.Histogrammer.beginLoop(), DiLeptonAnalyzer.DiLeptonAnalyzer.beginLoop(), MetAnalyzer.MetAnalyzer.declareHandles(), objects.METAnalyzer.METAnalyzer.declareHandles(), MT2Analyzer.MT2Analyzer.declareHandles(), objects.PhotonAnalyzer.PhotonAnalyzer.declareHandles(), JetAnalyzer.JetAnalyzer.declareHandles(), objects.VertexAnalyzer.VertexAnalyzer.declareHandles(), objects.LeptonAnalyzer.LeptonAnalyzer.declareHandles(), objects.JetAnalyzer.JetAnalyzer.declareHandles(), core.AutoFillTreeProducer.AutoFillTreeProducer.declareVariables(), objects.LeptonAnalyzer.LeptonAnalyzer.makeAllElectrons(), objects.LeptonAnalyzer.LeptonAnalyzer.makeAllMuons(), objects.IsoTrackAnalyzer.IsoTrackAnalyzer.makeIsoTrack(), objects.LeptonAnalyzer.LeptonAnalyzer.makeLeptons(), gen.GeneratorAnalyzer.GeneratorAnalyzer.makeMCInfo(), gen.PDFWeightsAnalyzer.PDFWeightsAnalyzer.makePDFWeights(), objects.PhotonAnalyzer.PhotonAnalyzer.makePhotons(), objects.TauAnalyzer.TauAnalyzer.makeTaus(), objects.METAnalyzer.METAnalyzer.makeTkMETs(), objects.LeptonAnalyzer.LeptonAnalyzer.matchLeptons(), Filter.Filter.process(), core.Analyzer.Analyzer.process(), SimpleJetAnalyzer.SimpleJetAnalyzer.process(), gen.HiggsDecayModeAnalyzer.HiggsDecayModeAnalyzer.process(), core.EventSelector.EventSelector.process(), analyzer.Analyzer.process(), Matcher.Matcher.process(), JetAnalyzer.JetAnalyzer.process(), ResonanceBuilder.ResonanceBuilder.process(), DiLeptonAnalyzer.DiLeptonAnalyzer.process(), core.PileUpAnalyzer.PileUpAnalyzer.process(), objects.VertexAnalyzer.VertexAnalyzer.process(), objects.JetAnalyzer.JetAnalyzer.process(), core.AutoFillTreeProducer.AutoFillTreeProducer.process(), objects.PhotonAnalyzer.PhotonAnalyzer.process(), objects.LeptonAnalyzer.LeptonAnalyzer.process(), DiLeptonAnalyzer.DiLeptonAnalyzer.selectionSequence(), DiLeptonAnalyzer.DiLeptonAnalyzer.shiftEnergyScale(), DiLeptonAnalyzer.DiLeptonAnalyzer.testDeltaR(), JetAnalyzer.JetAnalyzer.testJet(), JetAnalyzer.JetAnalyzer.testJetID(), objects.JetAnalyzer.JetAnalyzer.testJetID(), objects.JetAnalyzer.JetAnalyzer.testJetNoID(), DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg1(), DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg1Iso(), DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg2(), DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg2Iso(), DiLeptonAnalyzer.DiLeptonAnalyzer.testMass(), and DiLeptonAnalyzer.DiLeptonAnalyzer.trigMatched().
analyzer.Analyzer.cfg_comp |
Definition at line 33 of file analyzer.py.
Referenced by objects.LeptonAnalyzer.LeptonAnalyzer.__init__(), core.JSONAnalyzer.JSONAnalyzer.__init__(), objects.JetAnalyzer.JetAnalyzer.__init__(), looper.Looper._build(), JetAnalyzer.JetAnalyzer.declareHandles(), objects.VertexAnalyzer.VertexAnalyzer.declareHandles(), core.AutoFillTreeProducer.AutoFillTreeProducer.declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer.fillCoreVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer.fillTree(), core.AutoFillTreeProducer.AutoFillTreeProducer.getPythonWrapper(), looper.Looper.loop(), gen.LHEAnalyzer.LHEAnalyzer.process(), SimpleJetAnalyzer.SimpleJetAnalyzer.process(), gen.LHEWeightAnalyzer.LHEWeightAnalyzer.process(), gen.HiggsDecayModeAnalyzer.HiggsDecayModeAnalyzer.process(), gen.GenHeavyFlavourAnalyzer.GenHeavyFlavourAnalyzer.process(), gen.PDFWeightsAnalyzer.PDFWeightsAnalyzer.process(), core.JSONAnalyzer.JSONAnalyzer.process(), core.SkimAnalyzerCount.SkimAnalyzerCount.process(), AlphaTAnalyzer.AlphaTAnalyzer.process(), JetAnalyzer.JetAnalyzer.process(), core.PileUpAnalyzer.PileUpAnalyzer.process(), objects.VertexAnalyzer.VertexAnalyzer.process(), objects.TauAnalyzer.TauAnalyzer.process(), gen.GeneratorAnalyzer.GeneratorAnalyzer.process(), objects.PhotonAnalyzer.PhotonAnalyzer.process(), objects.LeptonAnalyzer.LeptonAnalyzer.process(), core.Analyzer.Analyzer.readCollections(), DiLeptonAnalyzer.DiLeptonAnalyzer.selectionSequence(), JetAnalyzer.JetAnalyzer.testBJet(), and core.PileUpAnalyzer.PileUpAnalyzer.write().
analyzer.Analyzer.class_object |
Definition at line 28 of file analyzer.py.
Referenced by config.Analyzer.build_name(), and config.Service.build_name().
analyzer.Analyzer.counters |
Definition at line 50 of file analyzer.py.
Referenced by analyzer.Analyzer.__str__(), counter.Counters.__str__(), counter.Counters.addCounter(), objects.TauAnalyzer.TauAnalyzer.beginLoop(), core.SkimAnalyzerCount.SkimAnalyzerCount.beginLoop(), core.TriggerBitFilter.TriggerBitFilter.beginLoop(), RazorAnalyzer.RazorAnalyzer.beginLoop(), AlphaTAnalyzer.AlphaTAnalyzer.beginLoop(), objects.METAnalyzer.METAnalyzer.beginLoop(), core.JSONAnalyzer.JSONAnalyzer.beginLoop(), MT2Analyzer.MT2Analyzer.beginLoop(), DiLeptonAnalyzer.DiLeptonAnalyzer.beginLoop(), objects.PhotonAnalyzer.PhotonAnalyzer.beginLoop(), JetAnalyzer.JetAnalyzer.beginLoop(), objects.IsoTrackAnalyzer.IsoTrackAnalyzer.beginLoop(), objects.VertexAnalyzer.VertexAnalyzer.beginLoop(), objects.LeptonAnalyzer.LeptonAnalyzer.beginLoop(), counter.Counters.counter(), objects.PhotonAnalyzer.PhotonAnalyzer.makePhotons(), objects.TauAnalyzer.TauAnalyzer.makeTaus(), TriggerAnalyzer.TriggerAnalyzer.process(), JetAnalyzer.JetAnalyzer.process(), objects.LeptonAnalyzer.LeptonAnalyzer.process(), DiLeptonAnalyzer.DiLeptonAnalyzer.selectionSequence(), analyzer.Analyzer.write(), and counter.Counters.write().
analyzer.Analyzer.dirName |
Definition at line 36 of file analyzer.py.
Referenced by addOnTests.testit.run(), analyzer.Analyzer.write(), and core.JSONAnalyzer.JSONAnalyzer.write().
analyzer.Analyzer.instance_label |
Definition at line 29 of file analyzer.py.
Referenced by config.Analyzer.build_name(), config.Service.build_name(), Filter.Filter.process(), SimpleJetAnalyzer.SimpleJetAnalyzer.process(), and ResonanceBuilder.ResonanceBuilder.process().
analyzer.Analyzer.looperName |
Definition at line 34 of file analyzer.py.
analyzer.Analyzer.mainLogger |
Definition at line 44 of file analyzer.py.
Referenced by analyzer.Analyzer.endLoop().
analyzer.Analyzer.name |
Definition at line 30 of file analyzer.py.
Referenced by FWLite.ElectronMVAID.__call__(), dirstructure.Directory.__create_pie_image(), DisplayManager.DisplayManager.__del__(), dqm_interfaces.DirID.__eq__(), dirstructure.Directory.__get_full_path(), dirstructure.Comparison.__get_img_name(), dataset.Dataset.__getDataType(), dataset.Dataset.__getFileInfoList(), dirstructure.Comparison.__make_image(), dirstructure.Directory.__repr__(), dqm_interfaces.DirID.__repr__(), dirstructure.Comparison.__repr__(), config.Service.__setattr__(), config.CFG.__str__(), counter.Counter.__str__(), average.Average.__str__(), FWLite.WorkingPoints._reformat_cut_definitions(), dataset.CMSDataset.buildListOfFiles(), dataset.LocalDataset.buildListOfFiles(), dataset.CMSDataset.buildListOfFilesDBS(), dirstructure.Directory.calcStats(), validation.Sample.digest(), python.rootplot.utilities.Hist.divide(), python.rootplot.utilities.Hist.divide_wilson(), DisplayManager.DisplayManager.Draw(), utils.StatisticalTest.get_status(), production_tasks.Task.getname(), dataset.CMSDataset.getPrimaryDatasetEntries(), dataset.PrivateDataset.getPrimaryDatasetEntries(), VIDSelectorBase.VIDSelectorBase.initialize(), dirstructure.Directory.print_report(), dataset.BaseDataset.printInfo(), dataset.Dataset.printInfo(), production_tasks.MonitorJobs.run(), python.rootplot.utilities.Hist.TGraph(), python.rootplot.utilities.Hist.TH1F(), counter.Counter.write(), and average.Average.write().
analyzer.Analyzer.verbose |
Definition at line 31 of file analyzer.py.
Referenced by python.diff_provenance.difference.list_diff(), python.diffProv.difference.list_diff(), python.diff_provenance.difference.module_diff(), python.diffProv.difference.module_diff(), python.diff_provenance.difference.onefilemodules(), and python.diffProv.difference.onefilemodules().