CMS 3D CMS Logo

PrimaryVertexAnalyzer4PUSlimmed_Client_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 def _resolPull(prefix):
4  return [
5  "{pfx}_ResolX_vs_PU '#sigma(x) vs PU' {pfx}_ResolX_vs_PU".format(pfx=prefix),
6  "{pfx}_ResolY_vs_PU '#sigma(y) vs PU' {pfx}_ResolY_vs_PU".format(pfx=prefix),
7  "{pfx}_ResolZ_vs_PU '#sigma(z) vs PU' {pfx}_ResolZ_vs_PU".format(pfx=prefix),
8  "{pfx}_ResolPt2_vs_PU '#sigma(p_{{T}}^{{2}}) vs PU' {pfx}_ResolPt2_vs_PU".format(pfx=prefix),
9  "{pfx}_PullX_vs_PU 'Pull x vs PU' {pfx}_PullX_vs_PU".format(pfx=prefix),
10  "{pfx}_PullY_vs_PU 'Pull y vs PU' {pfx}_PullY_vs_PU".format(pfx=prefix),
11  "{pfx}_PullZ_vs_PU 'Pull z vs PU' {pfx}_PullZ_vs_PU".format(pfx=prefix),
12 
13  "{pfx}_ResolX_vs_NumTracks '#sigma(x) vs NumTracks' {pfx}_ResolX_vs_NumTracks".format(pfx=prefix),
14  "{pfx}_ResolY_vs_NumTracks '#sigma(y) vs NumTracks' {pfx}_ResolY_vs_NumTracks".format(pfx=prefix),
15  "{pfx}_ResolZ_vs_NumTracks '#sigma(z) vs NumTracks' {pfx}_ResolZ_vs_NumTracks".format(pfx=prefix),
16  "{pfx}_ResolPt2_vs_NumTracks '#sigma(p_{{T}}^{{2}}) vs NumTracks' {pfx}_ResolPt2_vs_NumTracks".format(pfx=prefix),
17  "{pfx}_PullX_vs_NumTracks 'Pull x vs NumTracks' {pfx}_PullX_vs_NumTracks".format(pfx=prefix),
18  "{pfx}_PullY_vs_NumTracks 'Pull y vs NumTracks' {pfx}_PullY_vs_NumTracks".format(pfx=prefix),
19  "{pfx}_PullZ_vs_NumTracks 'Pull z vs NumTracks' {pfx}_PullZ_vs_NumTracks".format(pfx=prefix),
20 
21  "{pfx}_ResolX_vs_Z '#sigma(x) vs z' {pfx}_ResolX_vs_Z".format(pfx=prefix),
22  "{pfx}_ResolY_vs_Z '#sigma(y) vs z' {pfx}_ResolY_vs_Z".format(pfx=prefix),
23  "{pfx}_ResolZ_vs_Z '#sigma(z) vs z' {pfx}_ResolZ_vs_Z".format(pfx=prefix),
24  "{pfx}_ResolPt2_vs_Z '#sigma(p_{{T}}^{{2}}) vs z' {pfx}_ResolPt2_vs_Z".format(pfx=prefix),
25  "{pfx}_PullX_vs_Z 'Pull x vs z' {pfx}_PullX_vs_Z".format(pfx=prefix),
26  "{pfx}_PullY_vs_Z 'Pull y vs z' {pfx}_PullY_vs_Z".format(pfx=prefix),
27  "{pfx}_PullZ_vs_Z 'Pull z vs z' {pfx}_PullZ_vs_Z".format(pfx=prefix),
28 
29  "{pfx}_ResolX_vs_Pt '#sigma(x) vs p_{{T}}' {pfx}_ResolX_vs_Pt".format(pfx=prefix),
30  "{pfx}_ResolY_vs_Pt '#sigma(y) vs p_{{T}}' {pfx}_ResolY_vs_Pt".format(pfx=prefix),
31  "{pfx}_ResolZ_vs_Pt '#sigma(z) vs p_{{T}}' {pfx}_ResolZ_vs_Pt".format(pfx=prefix),
32  "{pfx}_ResolPt2_vs_Pt '#sigma(p_{{T}}^{{2}}) vs p_{{T}}' {pfx}_ResolZ_vs_Pt".format(pfx=prefix),
33  "{pfx}_PullX_vs_Pt 'Pull x vs p_{{T}}' {pfx}_PullX_vs_Pt".format(pfx=prefix),
34  "{pfx}_PullY_vs_Pt 'Pull y vs p_{{T}}' {pfx}_PullY_vs_Pt".format(pfx=prefix),
35  "{pfx}_PullZ_vs_Pt 'Pull z vs p_{{T}}' {pfx}_PullZ_vs_Pt".format(pfx=prefix),
36  ]
37 
38 
39 postProcessorVertex = cms.EDAnalyzer("DQMGenericClient",
40  subDirs = cms.untracked.vstring("Vertexing/PrimaryVertexV/*"),
41  efficiency = cms.vstring(
42  "effic_vs_NumVertices 'Efficiency vs NumVertices' GenAllAssoc2RecoMatched_NumVertices GenAllAssoc2Reco_NumVertices",
43  "effic_vs_Z 'Efficiency vs Z' GenAllAssoc2RecoMatched_Z GenAllAssoc2Reco_Z",
44  "effic_vs_R 'Efficiency vs R' GenAllAssoc2RecoMatched_R GenAllAssoc2Reco_R",
45  "effic_vs_Pt2 'Efficiency vs Sum p_{T}^{2}' GenAllAssoc2RecoMatched_Pt2 GenAllAssoc2Reco_Pt2",
46  "effic_vs_NumTracks 'Efficiency vs NumTracks' GenAllAssoc2RecoMatched_NumTracks GenAllAssoc2Reco_NumTracks",
47  "effic_vs_ClosestVertexInZ 'Efficiency vs ClosestVtx in Z' GenAllAssoc2RecoMatched_ClosestDistanceZ GenAllAssoc2Reco_ClosestDistanceZ",
48  "gen_duplicate_vs_ClosestVertexInZ 'Gen_Duplicate vs ClosestVtx in Z' GenAllAssoc2RecoMultiMatched_ClosestDistanceZ GenAllAssoc2Reco_ClosestDistanceZ",
49  "gen_duplicate_vs_NumVertices 'Gen_Duplicate vs NumVertices' GenAllAssoc2RecoMultiMatched_NumVertices GenAllAssoc2Reco_NumVertices",
50  "gen_duplicate_vs_Z 'Gen_Duplicate vs Z' GenAllAssoc2RecoMultiMatched_Z GenAllAssoc2Reco_Z",
51  "gen_duplicate_vs_R 'Gen_Duplicate vs R' GenAllAssoc2RecoMultiMatched_R GenAllAssoc2Reco_R",
52  "gen_duplicate_vs_Pt2 'Gen_Duplicate vs Sum p_{T}^{2}' GenAllAssoc2RecoMultiMatched_Pt2 GenAllAssoc2Reco_Pt2",
53  "gen_duplicate_vs_NumTracks 'Gen_Duplicate vs NumTracks' GenAllAssoc2RecoMultiMatched_NumTracks GenAllAssoc2Reco_NumTracks",
54  "gen_duplicate_vs_ClosestVertexInZ 'Gen_Duplicate vs ClosestVtx in Z' GenAllAssoc2RecoMultiMatched_ClosestDistanceZ GenAllAssoc2Reco_ClosestDistanceZ",
55  "merged_vs_NumVertices 'Merged vs NumVertices' RecoAllAssoc2GenMultiMatched_NumVertices RecoAllAssoc2Gen_NumVertices",
56  "merged_vs_PU 'Merged vs PU' RecoAllAssoc2GenMultiMatched_PU RecoAllAssoc2Gen_PU",
57  "merged_vs_Z 'Merged vs Z' RecoAllAssoc2GenMultiMatched_Z RecoAllAssoc2Gen_Z",
58  "merged_vs_R 'Merged vs R' RecoAllAssoc2GenMultiMatched_R RecoAllAssoc2Gen_R",
59  "merged_vs_Pt2 'Merged vs Sum p_{T}^{2}' RecoAllAssoc2GenMultiMatched_Pt2 RecoAllAssoc2Gen_Pt2",
60  "merged_vs_NumTracks 'Merged vs NumTracks' RecoAllAssoc2GenMultiMatched_NumTracks RecoAllAssoc2Gen_NumTracks",
61  "merged_vs_ClosestVertexInZ 'Merged vs ClosestVtx in Z' RecoAllAssoc2GenMultiMatched_ClosestDistanceZ RecoAllAssoc2GenSimForMerge_ClosestDistanceZ",
62  "fakerate_vs_NumVertices 'Fakerate vs NumVertices' RecoAllAssoc2GenMatched_NumVertices RecoAllAssoc2Gen_NumVertices fake",
63  "fakerate_vs_PU 'Fakerate vs PU' RecoAllAssoc2GenMatched_PU RecoAllAssoc2Gen_PU fake",
64  "fakerate_vs_Z 'Fakerate vs Z' RecoAllAssoc2GenMatched_Z RecoAllAssoc2Gen_Z fake",
65  "fakerate_vs_R 'Fakerate vs R' RecoAllAssoc2GenMatched_R RecoAllAssoc2Gen_R fake",
66  "fakerate_vs_Pt2 'Fakerate vs Sum p_{T}^{2}' RecoAllAssoc2GenMatched_Pt2 RecoAllAssoc2Gen_Pt2 fake",
67  "fakerate_vs_Ndof 'Fakerate vs Ndof' RecoAllAssoc2GenMatched_Ndof RecoAllAssoc2Gen_Ndof fake",
68  "fakerate_vs_NumTracks 'Fakerate vs NumTracks' RecoAllAssoc2GenMatched_NumTracks RecoAllAssoc2Gen_NumTracks fake",
69  "fakerate_vs_ClosestVertexInZ 'Fakerate vs ClosestVtx in Z' RecoAllAssoc2GenMatched_ClosestDistanceZ RecoAllAssoc2Gen_ClosestDistanceZ fake",
70  "fakerate_vs_Purity 'Fakerate vs Purity' RecoAllAssoc2GenMatched_Purity RecoAllAssoc2Gen_Purity fake",
71  "duplicate_vs_NumVertices 'Duplicate vs NumVertices' RecoAllAssoc2MultiMatchedGen_NumVertices RecoAllAssoc2Gen_NumVertices",
72  "duplicate_vs_PU 'Duplicate vs PU' RecoAllAssoc2MultiMatchedGen_PU RecoAllAssoc2Gen_PU",
73  "duplicate_vs_Z 'Duplicate vs Z' RecoAllAssoc2MultiMatchedGen_Z RecoAllAssoc2Gen_Z",
74  "duplicate_vs_R 'Duplicate vs R' RecoAllAssoc2MultiMatchedGen_R RecoAllAssoc2Gen_R",
75  "duplicate_vs_Pt2 'Duplicate vs Sum p_{T}^{2}' RecoAllAssoc2MultiMatchedGen_Pt2 RecoAllAssoc2Gen_Pt2",
76  "duplicate_vs_NumTracks 'Duplicate vs NumTracks' RecoAllAssoc2MultiMatchedGen_NumTracks RecoAllAssoc2Gen_NumTracks",
77  "duplicate_vs_ClosestVertexInZ 'Duplicate vs ClosestsVtx In Z' RecoAllAssoc2MultiMatchedGen_ClosestDistanceZ RecoAllAssoc2Gen_ClosestDistanceZ",
78 
79  "PV_effic_vs_Z 'PV reco+tag efficiency vs Z' GenPVAssoc2RecoPVMatched_Z GenPVAssoc2RecoPV_Z",
80  ),
81  resolution = cms.vstring(
82  _resolPull("RecoAllAssoc2GenMatched") +
83  _resolPull("RecoAllAssoc2GenMatchedMerged") +
84  _resolPull("RecoPVAssoc2GenPVMatched")
85  ),
86  outputFileName = cms.untracked.string(""),
87  verbose = cms.untracked.uint32(5)
88 )