Public Member Functions | |
def | __init__ |
def | beginLoop |
def | declareHandles |
def | mindist |
def | process |
def | testGoodVertex |
def | write |
Public Attributes | |
allVertices | |
count | |
doHists | |
fixedWeight | |
pileup | |
Static Public Attributes | |
int | fixedWeight = 1 |
verbose = False | |
vertexWeight = None, | |
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 81 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, core.AutoHandle.AutoHandle.handles, core.Analyzer.Analyzer.handles, and HTTP.RequestManager.handles.
def objects.VertexAnalyzer.VertexAnalyzer.mindist | ( | self, | |
vertices | |||
) |
def objects.VertexAnalyzer.VertexAnalyzer.process | ( | self, | |
event | |||
) |
Definition at line 90 of file VertexAnalyzer.py.
References Clusterizer1DCommons.add(), analyzer.Analyzer.averages, analyzer.Analyzer.cfg_ana, core.PileUpAnalyzer.PileUpAnalyzer.doHists, objects.VertexAnalyzer.VertexAnalyzer.doHists, alcazmumu_cfi.filter, objects.VertexAnalyzer.VertexAnalyzer.fixedWeight, core.AutoHandle.AutoHandle.handles, core.Analyzer.Analyzer.handles, HTTP.RequestManager.handles, python.multivaluedict.map(), core.Analyzer.Analyzer.mchandles, core.Analyzer.Analyzer.readCollections(), objects.VertexAnalyzer.VertexAnalyzer.testGoodVertex(), CSCTFanalyzer.verbose, heppy::Davismt2.verbose, CalibratedPatElectronProducer.verbose, DQMGenericTnPClient.verbose, dqmTnP::AbstractFitter.verbose, CalibratedElectronProducer.verbose, confdbOfflineConverter.OfflineConverter.verbose, ElectronStudy.verbose, MuonMillepedeAlgorithm.verbose, DeviationsFromFileSensor2D.verbose, HIPAlignmentAlgorithm.verbose, FFTJetLookupTableESProducer< CT >.verbose, FFTJetCorrectionESProducer< CT >.verbose, objects.VertexAnalyzer.VertexAnalyzer.verbose, and OpticalObject.verbose.
Referenced by ConfigBuilder.ConfigBuilder.addExtraStream(), ConfigBuilder.ConfigBuilder.completeInputCommand(), ConfigBuilder.ConfigBuilder.doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules.leave(), 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 135 of file VertexAnalyzer.py.
References funct.abs().
Referenced by objects.VertexAnalyzer.VertexAnalyzer.process().
def objects.VertexAnalyzer.VertexAnalyzer.write | ( | self, | |
setup | |||
) |
Definition at line 155 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().
objects.VertexAnalyzer.VertexAnalyzer.count |
Definition at line 85 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().
objects.VertexAnalyzer.VertexAnalyzer.fixedWeight |
Definition at line 63 of file VertexAnalyzer.py.
|
static |
Definition at line 163 of file VertexAnalyzer.py.
Referenced by objects.VertexAnalyzer.VertexAnalyzer.process().
objects.VertexAnalyzer.VertexAnalyzer.pileup |
Definition at line 52 of file VertexAnalyzer.py.
|
static |
Definition at line 164 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 162 of file VertexAnalyzer.py.