CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PrimaryVertexAnalyzer4PUSlimmed_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 selectedOfflinePrimaryVertices = cms.EDFilter("VertexSelector",
4  src = cms.InputTag('offlinePrimaryVertices'),
5  cut = cms.string("isValid & ndof > 4 & tracksSize > 0 & abs(z) <= 24 & abs(position.Rho) <= 2."),
6  filter = cms.bool(False)
7 )
8 
9 selectedOfflinePrimaryVerticesWithBS = selectedOfflinePrimaryVertices.clone()
10 selectedOfflinePrimaryVerticesWithBS.src = cms.InputTag('offlinePrimaryVerticesWithBS')
11 
12 #selectedPixelVertices = selectedOfflinePrimaryVertices.clone()
13 #selectedPixelVertices.src = cms.InputTag('pixelVertices')
14 
15 vertexAnalysis = cms.EDAnalyzer("PrimaryVertexAnalyzer4PUSlimmed",
16  use_only_charged_tracks = cms.untracked.bool(True),
17  verbose = cms.untracked.bool(False),
18  sigma_z_match = cms.untracked.double(3.0),
19  abs_z_match = cms.untracked.double(0.1),
20  root_folder = cms.untracked.string("Vertexing/PrimaryVertexV"),
21  recoTrackProducer = cms.untracked.InputTag("generalTracks"),
22  trackingParticleCollection = cms.untracked.InputTag("mix", "MergedTrackTruth"),
23  trackingVertexCollection = cms.untracked.InputTag("mix", "MergedTrackTruth"),
24  trackAssociatorMap = cms.untracked.InputTag("trackingParticleRecoTrackAsssociation"),
25  vertexAssociator = cms.untracked.InputTag("VertexAssociatorByPositionAndTracks"),
26  vertexRecoCollections = cms.VInputTag("offlinePrimaryVertices",
27  "offlinePrimaryVerticesWithBS",
28 # "pixelVertices",
29  "selectedOfflinePrimaryVertices",
30  "selectedOfflinePrimaryVerticesWithBS",
31 # "selectedPixelVertices"
32  ),
33 )
34 
35 vertexAnalysisSequence = cms.Sequence(cms.ignore(selectedOfflinePrimaryVertices)
36  * cms.ignore(selectedOfflinePrimaryVerticesWithBS)
37 # * cms.ignore(selectedPixelVertices)
38  * vertexAnalysis
39 )
40