CMS 3D CMS Logo

postValidation_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 efficSet(nameIn, titleIn, numeratorIn, denominatorIn, typeIn="eff"):
5  pset = cms.PSet(name=cms.untracked.string(nameIn),
6  title=cms.untracked.string(titleIn),
7  numerator=cms.untracked.string(numeratorIn),
8  denominator=cms.untracked.string(denominatorIn),
9  type=cms.untracked.string(typeIn))
10  return pset
11 
12 rpcRecHitSimRecoClient = DQMEDHarvester("RPCRecHitValidClient",
13  subDir = cms.string("RPC/RPCRecHitV/SimVsReco"),
14 )
15 
16 rpcRecHitPostValidation = DQMEDHarvester("DQMGenericClient",
17  subDirs = cms.untracked.vstring("RPC/RPCRecHitV/SimVsReco",),
18  #subDirs = cms.untracked.vstring("RPC/RPCRecHitV/SimVsReco",
19  # "RPC/RPCRecHitV/SimVsDTExt",
20  # "RPC/RPCRecHitV/SimVsCSCExt"),
21  efficiency = cms.vstring(),
22  resolution = cms.vstring(),
23  efficiencyProfileSets = cms.untracked.VPSet(
24  efficSet("Efficiency/Effic_wheel", "Barrel SimHit to RecHit matching efficiency;Wheel",
25  "Occupancy/MatchBarrelOccupancy_wheel", "Occupancy/RefHitBarrelOccupancy_wheel"),
26  efficSet("Efficiency/Effic_station", "Barrel SimHit to RecHit matching efficiency;Station",
27  "Occupancy/MatchBarrelOccupancy_station", "Occupancy/RefHitBarrelOccupancy_station"),
28  efficSet("Efficiency/Effic_disk", "Endcap SimHit to RecHit matching efficiency;Disk",
29  "Occupancy/MatchEndcapOccupancy_disk", "Occupancy/RefHitEndcapOccupancy_disk"),
30  ),
31  resolutionSets = cms.untracked.VPSet(
32  cms.PSet(
33  namePrefix = cms.untracked.string("Resolution/Res_wheel"),
34  titlePrefix = cms.untracked.string("Wheel residual"),
35  srcName = cms.untracked.string("Residual/Res_wheel_res")
36  ),
37  cms.PSet(
38  namePrefix = cms.untracked.string("Resolution/Res_station"),
39  titlePrefix = cms.untracked.string("Station residual"),
40  srcName = cms.untracked.string("Residual/Res_station_res")
41  ),
42  cms.PSet(
43  namePrefix = cms.untracked.string("Resolution/Res_disk"),
44  titlePrefix = cms.untracked.string("Disk residual"),
45  srcName = cms.untracked.string("Residual/Res_disk_res")
46  ),
47  cms.PSet(
48  namePrefix = cms.untracked.string("Resolution/Pull_wheel"),
49  titlePrefix = cms.untracked.string("Wheel pull"),
50  srcName = cms.untracked.string("Residual/Pull_wheel_pull")
51  ),
52  cms.PSet(
53  namePrefix = cms.untracked.string("Resolution/Pull_station"),
54  titlePrefix = cms.untracked.string("Station pull"),
55  srcName = cms.untracked.string("Residual/Pull_station_pull")
56  ),
57  cms.PSet(
58  namePrefix = cms.untracked.string("Resolution/Pull_disk"),
59  titlePrefix = cms.untracked.string("Disk pull"),
60  srcName = cms.untracked.string("Residual/Pull_disk_pull")
61  ),
62  ),
63  outputFileName = cms.untracked.string("")
64 )
65 
66 rpcPointVsRecHitPostValidation = DQMEDHarvester("DQMGenericClient",
67  subDirs = cms.untracked.vstring("RPC/RPCRecHitV/DTVsReco",
68  "RPC/RPCRecHitV/CSCVsReco"),
69 # "RPC/RPCRecHitV/TrackVsReco"),
70  efficiency = cms.vstring(),
71  resolution = cms.vstring(),
72  efficiencyProfileSets = cms.untracked.VPSet(
73  efficSet("Efficiency/Effic_wheel", "Barrel RPCPoint to RecHit matching efficiency;Wheel",
74  "Occupancy/MatchBarrelOccupancy_wheel", "Occupancy/RefHitBarrelOccupancy_wheel"),
75  efficSet("Efficiency/Effic_station", "Barrel RPCPoint to RecHit matching efficiency;Station",
76  "Occupancy/MatchBarrelOccupancy_station", "Occupancy/RefHitBarrelOccupancy_station"),
77  efficSet("Efficiency/Effic_disk", "Endcap RPCPoint to RecHit matching efficiency;Disk",
78  "Occupancy/MatchEndcapOccupancy_disk", "Occupancy/RefHitEndcapOccupancy_disk"),
79  ),
80  resolutionSets = cms.untracked.VPSet(
81  cms.PSet(
82  namePrefix = cms.untracked.string("Resolution/Res_wheel"),
83  titlePrefix = cms.untracked.string("Wheel residual"),
84  srcName = cms.untracked.string("Residual/Res_wheel_res")
85  ),
86  cms.PSet(
87  namePrefix = cms.untracked.string("Resolution/Res_station"),
88  titlePrefix = cms.untracked.string("Station residual"),
89  srcName = cms.untracked.string("Residual/Res_station_res")
90  ),
91  cms.PSet(
92  namePrefix = cms.untracked.string("Resolution/Res_disk"),
93  titlePrefix = cms.untracked.string("Disk residual"),
94  srcName = cms.untracked.string("Residual/Res_disk_res")
95  ),
96  cms.PSet(
97  namePrefix = cms.untracked.string("Resolution/Pull_wheel"),
98  titlePrefix = cms.untracked.string("Wheel pull"),
99  srcName = cms.untracked.string("Residual/Pull_wheel_pull")
100  ),
101  cms.PSet(
102  namePrefix = cms.untracked.string("Resolution/Pull_station"),
103  titlePrefix = cms.untracked.string("Station pull"),
104  srcName = cms.untracked.string("Residual/Pull_station_pull")
105  ),
106  cms.PSet(
107  namePrefix = cms.untracked.string("Resolution/Pull_disk"),
108  titlePrefix = cms.untracked.string("Disk pull"),
109  srcName = cms.untracked.string("Residual/Pull_disk_pull")
110  ),
111  ),
112  outputFileName = cms.untracked.string("")
113 )
114 
115 rpcRecHitPostValidation_step = cms.Sequence(rpcRecHitPostValidation+rpcRecHitSimRecoClient)
116 rpcPointVsRecHitPostValidation_step = cms.Sequence(rpcPointVsRecHitPostValidation)
def efficSet(nameIn, titleIn, numeratorIn, denominatorIn, typeIn="eff")