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 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 PVValHelper.add(), Average, analyzer.Analyzer.averages, CSCSPEvent.counters(), cms::cuda::AtomicPairCounter::Atomic2.counters, NMaxPerLumi.counters, analyzer.Analyzer.counters, HistogramManager.counters, counter.Counters.counters, and cscdqm::ChamberCounterKeyType.counters.
def objects.VertexAnalyzer.VertexAnalyzer.declareHandles | ( | self | ) |
Definition at line 58 of file VertexAnalyzer.py.
References core.PileUpAnalyzer.PileUpAnalyzer.allVertices, objects.VertexAnalyzer.VertexAnalyzer.allVertices, analyzer.Analyzer.cfg_ana, analyzer.Analyzer.cfg_comp, looper.Looper.cfg_comp, objects.VertexAnalyzer.VertexAnalyzer.fixedWeight, core.AutoHandle.AutoHandle.handles, core.Analyzer.Analyzer.handles, HTTP.RequestManager.handles, and core.Analyzer.Analyzer.mchandles.
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, analyzer.Analyzer.cfg_comp, looper.Looper.cfg_comp, TmCcu.count, TmModule.count, TmApvPair.count, AbstractHistogram.count, core.SkimAnalyzerCount.SkimAnalyzerCount.count, core.TriggerBitFilter.TriggerBitFilter.count, edm::BranchToCount.count, edm::ErrorSummaryEntry.count, edm::messagelogger::ErrorSummaryEntry.count, TmPsu.count, MatrixInjector.MatrixInjector.count, core.JSONAnalyzer.JSONAnalyzer.count, ValidationMisalignedTracker.count, SiPixelDataQuality.count, SiStripDetSummary::Values.count, SiPixelInformationExtractor.count, objects.VertexAnalyzer.VertexAnalyzer.count, edm::service::SimpleMemoryCheck::SignificantEvent.count, TriggerDiff.count, core.PileUpAnalyzer.PileUpAnalyzer.doHists, objects.VertexAnalyzer.VertexAnalyzer.doHists, ALCARECOTkAlBeamHalo_cff.filter, objects.VertexAnalyzer.VertexAnalyzer.fixedWeight, core.AutoHandle.AutoHandle.handles, core.Analyzer.Analyzer.handles, HTTP.RequestManager.handles, sistrip::SpyUtilities.isValid(), genParticles_cff.map, core.Analyzer.Analyzer.mchandles, objects.VertexAnalyzer.VertexAnalyzer.pileup, 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, L1TStage2MuonComp.verbose, confdbOfflineConverter.OfflineConverter.verbose, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.verbose, L1TStage2RegionalMuonCandComp.verbose, L1TCaloLayer1.verbose, L1TCaloSummary.verbose, L1TCaloLayer1RawToDigi.verbose, HIPAlignmentAlgorithm.verbose, L1TCaloLayer1Validator.verbose, FFTJetLookupTableESProducer< CT >.verbose, FFTJetCorrectionESProducer< CT >.verbose, BeamSpotDipServer.verbose, o2olib.O2OJobMgr.verbose, objects.VertexAnalyzer.VertexAnalyzer.verbose, L1TStage2uGTCaloLayer2Comp.verbose, OpticalObject.verbose, L1TdeStage2CaloLayer2.verbose, objects.LeptonAnalyzer.LeptonAnalyzer.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, objects.VertexAnalyzer.VertexAnalyzer.doHists, and objects.VertexAnalyzer.VertexAnalyzer.pileup.
objects.VertexAnalyzer.VertexAnalyzer.allVertices |
Definition at line 56 of file VertexAnalyzer.py.
Referenced by objects.VertexAnalyzer.VertexAnalyzer.declareHandles().
|
static |
Definition at line 174 of file VertexAnalyzer.py.
Referenced by config.Analyzer.build_name(), and config.Service.build_name().
objects.VertexAnalyzer.VertexAnalyzer.count |
Definition at line 96 of file VertexAnalyzer.py.
Referenced by objects.VertexAnalyzer.VertexAnalyzer.process().
objects.VertexAnalyzer.VertexAnalyzer.doHists |
Definition at line 49 of file VertexAnalyzer.py.
Referenced by objects.VertexAnalyzer.VertexAnalyzer.process(), and objects.VertexAnalyzer.VertexAnalyzer.write().
|
static |
Definition at line 176 of file VertexAnalyzer.py.
Referenced by objects.VertexAnalyzer.VertexAnalyzer.declareHandles(), and objects.VertexAnalyzer.VertexAnalyzer.process().
objects.VertexAnalyzer.VertexAnalyzer.pileup |
Definition at line 53 of file VertexAnalyzer.py.
Referenced by objects.VertexAnalyzer.VertexAnalyzer.process(), and objects.VertexAnalyzer.VertexAnalyzer.write().
|
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.