Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:34:27

0001 import FWCore.ParameterSet.Config as cms
0002 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0003 from DQM.SiPixelPhase1Common.HistogramManager_cfi import *
0004 
0005 SiPixelPhase1RecHitsInTimeEvents = DefaultHisto.clone(
0006   name = "in_time_bunch",
0007   title = "Events (in-time bunch)",
0008   range_min = 0, range_max = 10, range_nbins = 10,
0009   xlabel = "number of in-time rechits events",
0010   dimensions = 1,
0011   topFolderName = "PixelPhase1V/RecHits",
0012   specs = VPSet(
0013     Specification().groupBy("PXBarrel").save(),
0014     Specification().groupBy("PXForward").save(),
0015     Specification().groupBy("PXBarrel/PXLayer").save(),
0016     Specification().groupBy("PXForward/PXDisk").save(),
0017     StandardSpecification2DProfile,
0018   )
0019 )
0020 
0021 SiPixelPhase1RecHitsOutTimeEvents = DefaultHisto.clone(
0022   name = "out_time_bunch",
0023   title = "Events (out-time bunch)",
0024   range_min = 0, range_max = 10, range_nbins = 10,
0025   xlabel = "number of out-time rechit events",
0026   dimensions = 1,
0027   topFolderName = "PixelPhase1V/RecHits",
0028   specs = VPSet(
0029     Specification().groupBy("PXBarrel").save(),
0030     Specification().groupBy("PXForward").save(),
0031     Specification().groupBy("PXBarrel/PXLayer").save(),
0032     Specification().groupBy("PXForward/PXDisk").save(),
0033     StandardSpecification2DProfile,
0034   )
0035 )
0036 
0037 
0038 SiPixelPhase1RecHitsNSimHits = DefaultHisto.clone(
0039   name = "nsimhits",
0040   title = "SimHits",
0041   range_min = 0, range_max = 100, range_nbins = 100,
0042   xlabel = "sim hit event number in event",
0043   dimensions = 1,
0044   topFolderName = "PixelPhase1V/RecHits",
0045   specs = VPSet(
0046     Specification().groupBy("PXBarrel/PXLayer").save(),
0047     Specification().groupBy("PXForward/PXDisk").save(),
0048     StandardSpecification2DProfile,
0049   )
0050 )
0051 
0052 SiPixelPhase1RecHitsPosX = DefaultHisto.clone(
0053   name = "rechit_x",
0054   title = "X position of RecHits",
0055   range_min = -2., range_max = 2., range_nbins = 80,
0056   xlabel = "RecHit position X dimension",
0057   dimensions = 1,
0058   topFolderName = "PixelPhase1V/RecHits",
0059   specs = VPSet(
0060     Specification().groupBy("PXBarrel").save(),
0061     Specification().groupBy("PXForward").save(),
0062     Specification().groupBy("PXBarrel/PXLayer").save(),
0063     Specification().groupBy("PXForward/PXDisk").save(),
0064     StandardSpecification2DProfile,
0065   )
0066 )
0067 
0068 SiPixelPhase1RecHitsPosY = SiPixelPhase1RecHitsPosX.clone(
0069   name = "rechit_y",
0070   title = "Y position of RecHits",
0071   xlabel = "RecHit position Y dimension",
0072   range_min = -4., range_max = 4., range_nbins = 80,
0073 )
0074 
0075 SiPixelPhase1RecHitsResX = DefaultHisto.clone(
0076   name = "res_x",
0077   title = "X resolution of RecHits",
0078   range_min = -200., range_max = 200., range_nbins = 200,
0079   xlabel = "RecHit resolution X dimension",
0080   dimensions = 1,
0081   topFolderName = "PixelPhase1V/RecHits",
0082   specs = VPSet(
0083     Specification().groupBy("PXBarrel").save(),
0084     Specification().groupBy("PXForward").save(),
0085     Specification().groupBy("PXBarrel/PXLayer").save(),
0086     Specification().groupBy("PXForward/PXDisk").save(),
0087     StandardSpecification2DProfile,
0088   )
0089 )
0090 
0091 SiPixelPhase1RecHitsResY = SiPixelPhase1RecHitsResX.clone(
0092   name = "res_y",
0093   title = "Y resolution of RecHits",
0094   xlabel = "RecHit resolution Y dimension"
0095 )
0096 
0097 SiPixelPhase1RecHitsErrorX = DefaultHisto.clone(
0098   name = "rechiterror_x",
0099   title = "RecHit Error in X-direction",
0100   range_min = 0, range_max = 0.02, range_nbins = 100,
0101   xlabel = "X error",
0102   dimensions = 1,
0103   topFolderName = "PixelPhase1V/RecHits",
0104   specs = VPSet(
0105     Specification().groupBy("").save(),
0106     Specification().groupBy("PXBarrel/PXLayer").save(),
0107     Specification().groupBy("PXForward/PXDisk").save(),
0108     StandardSpecification2DProfile,
0109   )
0110 )
0111 
0112 SiPixelPhase1RecHitsErrorY = SiPixelPhase1RecHitsErrorX.clone(
0113   name = "rechiterror_y",
0114   title = "RecHit Error in Y-direction",
0115   xlabel = "Y error"
0116 )
0117 
0118 SiPixelPhase1RecHitsPullX = DefaultHisto.clone(
0119   name = "pull_x",
0120   title = "RecHit Pull in X-direction",
0121   range_min = -10., range_max = 10., range_nbins = 100,
0122   xlabel = "X Pull",
0123   dimensions = 1,
0124   topFolderName = "PixelPhase1V/RecHits",
0125   specs = VPSet(
0126     Specification().groupBy("PXBarrel/PXLayer").save(),
0127     Specification().groupBy("PXForward/PXDisk").save(),
0128     StandardSpecification2DProfile,
0129   )
0130 )
0131 
0132 SiPixelPhase1RecHitsPullY = SiPixelPhase1RecHitsPullX.clone(
0133   name = "pull_y",
0134   title = "RecHit Pull in Y-direction",
0135   xlabel = "Y Pull"
0136 )
0137 
0138 SiPixelPhase1RecHitsConf = cms.VPSet(
0139   SiPixelPhase1RecHitsInTimeEvents,
0140   SiPixelPhase1RecHitsOutTimeEvents,
0141   SiPixelPhase1RecHitsNSimHits,
0142   SiPixelPhase1RecHitsPosX,
0143   SiPixelPhase1RecHitsPosY,
0144   SiPixelPhase1RecHitsResX,
0145   SiPixelPhase1RecHitsResY,
0146   SiPixelPhase1RecHitsErrorX,
0147   SiPixelPhase1RecHitsErrorY,
0148   SiPixelPhase1RecHitsPullX,
0149   SiPixelPhase1RecHitsPullY,
0150 )
0151 
0152 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0153 SiPixelPhase1RecHitsAnalyzerV = DQMEDAnalyzer('SiPixelPhase1RecHitsV',
0154         src = cms.InputTag("siPixelRecHits"),
0155         # Track assoc. parameters
0156         associatePixel = cms.bool(True),
0157         ROUList = cms.vstring('g4SimHitsTrackerHitsPixelBarrelLowTof', 
0158             'g4SimHitsTrackerHitsPixelBarrelHighTof', 
0159             'g4SimHitsTrackerHitsPixelEndcapLowTof', 
0160             'g4SimHitsTrackerHitsPixelEndcapHighTof'),
0161         associateStrip = cms.bool(False),
0162         associateRecoTracks = cms.bool(False),
0163         pixelSimLinkSrc = cms.InputTag("simSiPixelDigis"),
0164         stripSimLinkSrc = cms.InputTag("simSiStripDigis"),
0165         histograms = SiPixelPhase1RecHitsConf,
0166         geometry = SiPixelPhase1Geometry
0167 )
0168 
0169 SiPixelPhase1RecHitsHarvesterV = DQMEDHarvester("SiPixelPhase1Harvester",
0170         histograms = SiPixelPhase1RecHitsConf,
0171         geometry = SiPixelPhase1Geometry
0172 )
0173