Public Member Functions | |
def | __init__ (self, cfg_ana, cfg_comp, looperName) |
def | beginLoop (self, setup) |
def | declareHandles (self) |
def | mindist (self, vertices) |
def | process (self, event) |
def | testGoodVertex (self, vertex) |
def | write (self, setup) |
Public Attributes | |
allVertices | |
count | |
doHists | |
pileup | |
Static Public Attributes | |
class_object | |
fixedWeight | |
verbose | |
vertexWeight | |
selects a list of good primary vertices, and optionally add a pile-up weight to MC events. The list of good primary vertices is put in event.goodVertices. if no good vertex is found, the process function returns False. The weight is put in event.vertexWeight, and is multiplied to the global event weight, event.eventWeight. Example: vertexAna = cfg.Analyzer( 'VertexAnalyzer', goodVertices = 'goodPVFilter', vertexWeight = 'vertexWeightFall112011AB', # uncomment the following line if you want a vertex weight = 1 (no weighting) # fixedWeight = 1, verbose = False ) If fixedWeight is set to None, the vertex weight is read from the EDM collection with module name 'vertexWeightFall112011AB'. Otherwise, the weight is set to fixedWeight. The vertex weight collection was at some point produced in the PAT+CMG step, and could directly be accessed from the PAT or CMG tuple. In the most recent versions of the PAT+CMG tuple, this collection is not present anymore, and an additional full framework process must be ran to produce this collection, so that this analyzer can read it. An example cfg to do that can be found here: http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/UserCode/CMG/CMGTools/H2TauTau/prod/vertexWeight2011_cfg.py?view=markup
Definition at line 10 of file VertexAnalyzer.py.
def objects.VertexAnalyzer.VertexAnalyzer.__init__ | ( | self, | |
cfg_ana, | |||
cfg_comp, | |||
looperName | |||
) |
Definition at line 45 of file VertexAnalyzer.py.
def objects.VertexAnalyzer.VertexAnalyzer.beginLoop | ( | self, | |
setup | |||
) |
Definition at line 91 of file VertexAnalyzer.py.
References Average.
def objects.VertexAnalyzer.VertexAnalyzer.declareHandles | ( | self | ) |
Definition at line 57 of file VertexAnalyzer.py.
References core.PileUpAnalyzer.PileUpAnalyzer.allVertices, objects.VertexAnalyzer.VertexAnalyzer.allVertices, analyzer.Analyzer.cfg_ana, objects.VertexAnalyzer.VertexAnalyzer.fixedWeight, core.Analyzer.Analyzer.handles, HTTP.RequestManager.handles, and core.Analyzer.Analyzer.mchandles.
def objects.VertexAnalyzer.VertexAnalyzer.mindist | ( | self, | |
vertices | |||
) |
Definition at line 159 of file VertexAnalyzer.py.
References funct.abs().
def objects.VertexAnalyzer.VertexAnalyzer.process | ( | self, | |
event | |||
) |
Definition at line 100 of file VertexAnalyzer.py.
References Clusterizer1DCommons.add(), analyzer.Analyzer.averages, analyzer.Analyzer.cfg_ana, core.PileUpAnalyzer.PileUpAnalyzer.doHists, objects.VertexAnalyzer.VertexAnalyzer.doHists, ALCARECOTkAlBeamHalo_cff.filter, objects.VertexAnalyzer.VertexAnalyzer.fixedWeight, core.Analyzer.Analyzer.handles, HTTP.RequestManager.handles, genParticles_cff.map, core.Analyzer.Analyzer.mchandles, core.Analyzer.Analyzer.readCollections(), objects.VertexAnalyzer.VertexAnalyzer.testGoodVertex(), core.SkimAnalyzerCount.SkimAnalyzerCount.verbose, VisualizationOptions.verbose, CSCTFanalyzer.verbose, L1TdeStage2EMTF.verbose, heppy::Davismt2.verbose, L1TStage2uGMTMuon.verbose, CalibratedPatElectronProducer.verbose, DQMGenericTnPClient.verbose, L1TStage2EMTF.verbose, dqmTnP::AbstractFitter.verbose, L1TStage2uGMT.verbose, L1TStage2MuonComp.verbose, L1TStage2RegionalMuonCandComp.verbose, CalibratedElectronProducer.verbose, confdbOfflineConverter.OfflineConverter.verbose, ElectronStudy.verbose, L1TStage2OMTF.verbose, MuonMillepedeAlgorithm.verbose, DeviationsFromFileSensor2D.verbose, L1TStage2BMTF.verbose, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.verbose, HIPAlignmentAlgorithm.verbose, L1TCaloLayer1.verbose, L1TCaloLayer1RawToDigi.verbose, L1TCaloLayer1Validator.verbose, FFTJetLookupTableESProducer< CT >.verbose, FFTJetCorrectionESProducer< CT >.verbose, o2olib.O2OJobMgr.verbose, objects.VertexAnalyzer.VertexAnalyzer.verbose, OpticalObject.verbose, objects.LeptonAnalyzer.LeptonAnalyzer.verbose, and HltDiff.verbose.
Referenced by ConfigBuilder.ConfigBuilder.addExtraStream(), ConfigBuilder.ConfigBuilder.completeInputCommand(), ConfigBuilder.ConfigBuilder.doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules.leave(), ConfigBuilder.ConfigBuilder.prepare(), ConfigBuilder.ConfigBuilder.prepare_ALCA(), ConfigBuilder.ConfigBuilder.prepare_DQM(), 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 objects.VertexAnalyzer.VertexAnalyzer.testGoodVertex | ( | self, | |
vertex | |||
) |
Definition at line 147 of file VertexAnalyzer.py.
References funct.abs().
Referenced by objects.VertexAnalyzer.VertexAnalyzer.process().
def objects.VertexAnalyzer.VertexAnalyzer.write | ( | self, | |
setup | |||
) |
Definition at line 167 of file VertexAnalyzer.py.
References core.PileUpAnalyzer.PileUpAnalyzer.doHists, and objects.VertexAnalyzer.VertexAnalyzer.doHists.
objects.VertexAnalyzer.VertexAnalyzer.allVertices |
Definition at line 55 of file VertexAnalyzer.py.
Referenced by objects.VertexAnalyzer.VertexAnalyzer.declareHandles().
|
static |
Definition at line 173 of file VertexAnalyzer.py.
objects.VertexAnalyzer.VertexAnalyzer.count |
Definition at line 95 of file VertexAnalyzer.py.
objects.VertexAnalyzer.VertexAnalyzer.doHists |
Definition at line 48 of file VertexAnalyzer.py.
Referenced by objects.VertexAnalyzer.VertexAnalyzer.process(), and objects.VertexAnalyzer.VertexAnalyzer.write().
|
static |
Definition at line 175 of file VertexAnalyzer.py.
Referenced by objects.VertexAnalyzer.VertexAnalyzer.declareHandles(), and objects.VertexAnalyzer.VertexAnalyzer.process().
objects.VertexAnalyzer.VertexAnalyzer.pileup |
Definition at line 52 of file VertexAnalyzer.py.
|
static |
Definition at line 176 of file VertexAnalyzer.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(), python.diffProv.difference.onefilemodules(), and objects.VertexAnalyzer.VertexAnalyzer.process().
|
static |
Definition at line 174 of file VertexAnalyzer.py.