Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 10:07:36

0001 import FWCore.ParameterSet.Config as cms
0002 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0003 
0004 def efficSet(nameIn, titleIn, numeratorIn, denominatorIn, typeIn="eff"):
0005     pset = cms.PSet(name=cms.untracked.string(nameIn),
0006                     title=cms.untracked.string(titleIn), 
0007                     numerator=cms.untracked.string(numeratorIn), 
0008                     denominator=cms.untracked.string(denominatorIn),
0009                     type=cms.untracked.string(typeIn))
0010     return pset
0011 
0012 rpcRecHitSimRecoClient = DQMEDHarvester("RPCRecHitValidClient",
0013     subDir = cms.string("RPC/RPCRecHitV/SimVsReco"),
0014 )
0015 
0016 rpcRecHitPostValidation = DQMEDHarvester("DQMGenericClient",
0017     subDirs = cms.untracked.vstring("RPC/RPCRecHitV/SimVsReco",),
0018     #subDirs = cms.untracked.vstring("RPC/RPCRecHitV/SimVsReco",
0019     #                                "RPC/RPCRecHitV/SimVsDTExt",
0020     #                                "RPC/RPCRecHitV/SimVsCSCExt"),
0021     efficiency = cms.vstring(),
0022     resolution = cms.vstring(),
0023     efficiencyProfileSets = cms.untracked.VPSet(
0024         efficSet("Efficiency/Effic_wheel", "Barrel SimHit to RecHit matching efficiency;Wheel",
0025                  "Occupancy/MatchBarrelOccupancy_wheel", "Occupancy/RefHitBarrelOccupancy_wheel"),
0026         efficSet("Efficiency/Effic_station", "Barrel SimHit to RecHit matching efficiency;Station",
0027                  "Occupancy/MatchBarrelOccupancy_station", "Occupancy/RefHitBarrelOccupancy_station"),
0028         efficSet("Efficiency/Effic_disk", "Endcap SimHit to RecHit matching efficiency;Disk",
0029                  "Occupancy/MatchEndcapOccupancy_disk", "Occupancy/RefHitEndcapOccupancy_disk"),
0030     ),
0031     resolutionSets = cms.untracked.VPSet(
0032         cms.PSet(
0033             namePrefix = cms.untracked.string("Resolution/Res_wheel"),
0034             titlePrefix = cms.untracked.string("Wheel residual"),
0035             srcName = cms.untracked.string("Residual/Res_wheel_res")
0036         ),
0037         cms.PSet(
0038             namePrefix = cms.untracked.string("Resolution/Res_station"),
0039             titlePrefix = cms.untracked.string("Station residual"),
0040             srcName = cms.untracked.string("Residual/Res_station_res")
0041         ),
0042         cms.PSet(
0043             namePrefix = cms.untracked.string("Resolution/Res_disk"),
0044             titlePrefix = cms.untracked.string("Disk residual"),
0045             srcName = cms.untracked.string("Residual/Res_disk_res")
0046         ),
0047         cms.PSet(
0048             namePrefix = cms.untracked.string("Resolution/Pull_wheel"),
0049             titlePrefix = cms.untracked.string("Wheel pull"),
0050             srcName = cms.untracked.string("Residual/Pull_wheel_pull")
0051         ),
0052         cms.PSet(
0053             namePrefix = cms.untracked.string("Resolution/Pull_station"),
0054             titlePrefix = cms.untracked.string("Station pull"),
0055             srcName = cms.untracked.string("Residual/Pull_station_pull")
0056         ),
0057         cms.PSet(
0058             namePrefix = cms.untracked.string("Resolution/Pull_disk"),
0059             titlePrefix = cms.untracked.string("Disk pull"),
0060             srcName = cms.untracked.string("Residual/Pull_disk_pull")
0061         ),
0062     ),
0063     outputFileName = cms.untracked.string("")
0064 )
0065 
0066 rpcPointVsRecHitPostValidation = DQMEDHarvester("DQMGenericClient",
0067     subDirs = cms.untracked.vstring("RPC/RPCRecHitV/DTVsReco",
0068                                     "RPC/RPCRecHitV/CSCVsReco"),
0069 #                                    "RPC/RPCRecHitV/TrackVsReco"),
0070     efficiency = cms.vstring(),
0071     resolution = cms.vstring(),
0072     efficiencyProfileSets = cms.untracked.VPSet(
0073         efficSet("Efficiency/Effic_wheel", "Barrel RPCPoint to RecHit matching efficiency;Wheel",
0074                  "Occupancy/MatchBarrelOccupancy_wheel", "Occupancy/RefHitBarrelOccupancy_wheel"),
0075         efficSet("Efficiency/Effic_station", "Barrel RPCPoint to RecHit matching efficiency;Station",
0076                  "Occupancy/MatchBarrelOccupancy_station", "Occupancy/RefHitBarrelOccupancy_station"),
0077         efficSet("Efficiency/Effic_disk", "Endcap RPCPoint to RecHit matching efficiency;Disk",
0078                  "Occupancy/MatchEndcapOccupancy_disk", "Occupancy/RefHitEndcapOccupancy_disk"),
0079     ),
0080     resolutionSets = cms.untracked.VPSet(
0081         cms.PSet(
0082             namePrefix = cms.untracked.string("Resolution/Res_wheel"),
0083             titlePrefix = cms.untracked.string("Wheel residual"),
0084             srcName = cms.untracked.string("Residual/Res_wheel_res")
0085         ),
0086         cms.PSet(
0087             namePrefix = cms.untracked.string("Resolution/Res_station"),
0088             titlePrefix = cms.untracked.string("Station residual"),
0089             srcName = cms.untracked.string("Residual/Res_station_res")
0090         ),
0091         cms.PSet(
0092             namePrefix = cms.untracked.string("Resolution/Res_disk"),
0093             titlePrefix = cms.untracked.string("Disk residual"),
0094             srcName = cms.untracked.string("Residual/Res_disk_res")
0095         ),
0096         cms.PSet(
0097             namePrefix = cms.untracked.string("Resolution/Pull_wheel"),
0098             titlePrefix = cms.untracked.string("Wheel pull"),
0099             srcName = cms.untracked.string("Residual/Pull_wheel_pull")
0100         ),
0101         cms.PSet(
0102             namePrefix = cms.untracked.string("Resolution/Pull_station"),
0103             titlePrefix = cms.untracked.string("Station pull"),
0104             srcName = cms.untracked.string("Residual/Pull_station_pull")
0105         ),
0106         cms.PSet(
0107             namePrefix = cms.untracked.string("Resolution/Pull_disk"),
0108             titlePrefix = cms.untracked.string("Disk pull"),
0109             srcName = cms.untracked.string("Residual/Pull_disk_pull")
0110         ),
0111     ),
0112     outputFileName = cms.untracked.string("")
0113 )
0114 
0115 rpcRecHitPostValidation_step = cms.Sequence(rpcRecHitPostValidation+rpcRecHitSimRecoClient)
0116 rpcPointVsRecHitPostValidation_step = cms.Sequence(rpcPointVsRecHitPostValidation)