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 11 of file VertexAnalyzer.py.
def objects.VertexAnalyzer.VertexAnalyzer.__init__ | ( | self, | |
cfg_ana, | |||
cfg_comp, | |||
looperName | |||
) |
Definition at line 46 of file VertexAnalyzer.py.
def objects.VertexAnalyzer.VertexAnalyzer.beginLoop | ( | self, | |
setup | |||
) |
Definition at line 92 of file VertexAnalyzer.py.
References Average.
def objects.VertexAnalyzer.VertexAnalyzer.declareHandles | ( | self | ) |
Definition at line 58 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 101 of file VertexAnalyzer.py.
References PVValHelper.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, sistrip::SpyUtilities.isValid(), core.Analyzer.Analyzer.mchandles, print(), core.Analyzer.Analyzer.readCollections(), objects.VertexAnalyzer.VertexAnalyzer.testGoodVertex(), core.SkimAnalyzerCount.SkimAnalyzerCount.verbose, VisualizationOptions.verbose, CSCTFanalyzer.verbose, L1TdeStage2EMTF.verbose, L1TStage2uGMTMuon.verbose, L1TStage2EMTF.verbose, L1TStage2RegionalShower.verbose, heppy::Davismt2.verbose, DQMGenericTnPClient.verbose, dqmTnP::AbstractFitter.verbose, L1TStage2OMTF.verbose, TritonService::FallbackOpts.verbose, DeviationsFromFileSensor2D.verbose, L1TStage2BMTF.verbose, confdbOfflineConverter.OfflineConverter.verbose, L1TStage2MuonComp.verbose, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.verbose, L1TStage2RegionalMuonCandComp.verbose, L1TCaloLayer1.verbose, L1TCaloLayer1RawToDigi.verbose, L1TCaloSummary.verbose, L1TCaloLayer1Validator.verbose, HIPAlignmentAlgorithm.verbose, FFTJetLookupTableESProducer< CT >.verbose, FFTJetCorrectionESProducer< CT >.verbose, BeamSpotDipServer.verbose, o2olib.O2OJobMgr.verbose, objects.VertexAnalyzer.VertexAnalyzer.verbose, L1TStage2uGTCaloLayer2Comp.verbose, OpticalObject.verbose, L1TdeStage2CaloLayer2.verbose, and HltDiff.verbose.
def objects.VertexAnalyzer.VertexAnalyzer.testGoodVertex | ( | self, | |
vertex | |||
) |
Definition at line 148 of file VertexAnalyzer.py.
References funct.abs().
Referenced by objects.VertexAnalyzer.VertexAnalyzer.process().
def objects.VertexAnalyzer.VertexAnalyzer.write | ( | self, | |
setup | |||
) |
Definition at line 168 of file VertexAnalyzer.py.
References core.PileUpAnalyzer.PileUpAnalyzer.doHists, and objects.VertexAnalyzer.VertexAnalyzer.doHists.
objects.VertexAnalyzer.VertexAnalyzer.allVertices |
Definition at line 56 of file VertexAnalyzer.py.
Referenced by objects.VertexAnalyzer.VertexAnalyzer.declareHandles().
objects.VertexAnalyzer.VertexAnalyzer.count |
Definition at line 96 of file VertexAnalyzer.py.
objects.VertexAnalyzer.VertexAnalyzer.doHists |
Definition at line 49 of file VertexAnalyzer.py.
Referenced by objects.VertexAnalyzer.VertexAnalyzer.process(), and objects.VertexAnalyzer.VertexAnalyzer.write().
objects.VertexAnalyzer.VertexAnalyzer.fixedWeight |
Definition at line 64 of file VertexAnalyzer.py.
|
static |
Definition at line 176 of file VertexAnalyzer.py.
Referenced by objects.VertexAnalyzer.VertexAnalyzer.process().
objects.VertexAnalyzer.VertexAnalyzer.pileup |
Definition at line 53 of file VertexAnalyzer.py.
|
static |
Definition at line 177 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 175 of file VertexAnalyzer.py.