CMS 3D CMS Logo

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