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.
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  simG4 = cms.InputTag("g4SimHits"),
17  use_only_charged_tracks = cms.untracked.bool(True),
18  use_TP_associator = cms.untracked.bool(False),
19  verbose = cms.untracked.bool(False),
20  sigma_z_match = cms.untracked.double(3.0),
21  abs_z_match = cms.untracked.double(0.1),
22  root_folder = cms.untracked.string("Vertexing/PrimaryVertexV"),
23  recoTrackProducer = cms.untracked.string("generalTracks"),
24  vertexRecoCollections = cms.VInputTag("offlinePrimaryVertices",
25  "offlinePrimaryVerticesWithBS",
26 # "pixelVertices",
27  "selectedOfflinePrimaryVertices",
28  "selectedOfflinePrimaryVerticesWithBS",
29 # "selectedPixelVertices"
30  ),
31 )
32 
33 vertexAnalysisSequence = cms.Sequence(cms.ignore(selectedOfflinePrimaryVertices)
34  * cms.ignore(selectedOfflinePrimaryVerticesWithBS)
35 # * cms.ignore(selectedPixelVertices)
36  * vertexAnalysis
37 )