File indexing completed on 2024-04-06 12:08:28
0001 import FWCore.ParameterSet.Config as cms
0002 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0003 from DQM.SiPixelPhase1Common.HistogramManager_cfi import *
0004 import DQM.SiPixelPhase1Common.TriggerEventFlag_cfi as trigger
0005
0006 SiPixelPhase1RecHitsNRecHits = DefaultHistoTrack.clone(
0007 name = "rechits",
0008 title = "RecHits",
0009 range_min = 0, range_max = 30, range_nbins = 30,
0010 xlabel = "rechits",
0011 dimensions = 0,
0012 specs = VPSet(
0013
0014 StandardSpecificationTrend_Num,
0015 Specification().groupBy("PXBarrel/Event")
0016 .reduce("COUNT")
0017 .groupBy("PXBarrel")
0018 .save(nbins=100, xmin=0, xmax=5000),
0019
0020 Specification().groupBy("PXForward/Event")
0021 .reduce("COUNT")
0022 .groupBy("PXForward")
0023 .save(nbins=100, xmin=0, xmax=5000),
0024
0025 Specification().groupBy("PXAll/Event")
0026 .reduce("COUNT")
0027 .groupBy("PXAll")
0028 .save(nbins=100, xmin=0, xmax=5000)
0029
0030 )
0031 )
0032
0033 SiPixelPhase1RecHitsClustX = DefaultHistoTrack.clone(
0034 name = "clustersize_x",
0035 title = "Cluster Size X (OnTrack)",
0036 range_min = 0, range_max = 50, range_nbins = 50,
0037 xlabel = "size[pixels]",
0038 dimensions = 1,
0039 specs = VPSet(
0040 StandardSpecification2DProfile
0041 )
0042 )
0043
0044 SiPixelPhase1RecHitsClustY = SiPixelPhase1RecHitsClustX.clone(
0045 name = "clustersize_y",
0046 title = "Cluster Size Y (OnTrack)",
0047 xlabel = "size[pixels]"
0048 )
0049
0050 SiPixelPhase1RecHitsErrorX = DefaultHistoTrack.clone(
0051 enabled=False,
0052 name = "rechiterror_x",
0053 title = "RecHit Error in X-direction",
0054 range_min = 0, range_max = 0.02, range_nbins = 100,
0055 xlabel = "X error",
0056 dimensions = 1,
0057 specs = VPSet(
0058 StandardSpecification2DProfile
0059 )
0060 )
0061
0062 SiPixelPhase1RecHitsErrorY = SiPixelPhase1RecHitsErrorX.clone(
0063 enabled=False,
0064 name = "rechiterror_y",
0065 title = "RecHit Error in Y-direction",
0066 xlabel = "Y error"
0067 )
0068
0069 SiPixelPhase1RecHitsPosition = DefaultHistoTrack.clone(
0070 enabled = False,
0071 name = "rechit_pos",
0072 title = "Position of RecHits on Module",
0073 range_min = -1, range_max = 1, range_nbins = 100,
0074 range_y_min = -4, range_y_max = 4, range_y_nbins = 100,
0075 xlabel = "x offset",
0076 ylabel = "y offset",
0077 dimensions = 2,
0078 specs = VPSet(
0079 Specification(PerModule).groupBy("PXBarrel/PXLayer/DetId").save(),
0080 Specification(PerModule).groupBy("PXForward/PXDisk/DetId").save(),
0081 )
0082 )
0083
0084 SiPixelPhase1RecHitsProb = DefaultHistoTrack.clone(
0085 name = "clusterprob",
0086 title = "Cluster Probability",
0087 xlabel = "log_10(Pr)",
0088 range_min = -10, range_max = 1, range_nbins = 50,
0089 dimensions = 1,
0090 specs = VPSet(
0091
0092 Specification().groupBy("PXBarrel/PXLayer").saveAll(),
0093 Specification().groupBy("PXForward/PXDisk").saveAll(),
0094 StandardSpecification2DProfile,
0095
0096 Specification().groupBy("PXBarrel/LumiBlock")
0097 .reduce("MEAN")
0098 .groupBy("PXBarrel", "EXTEND_X")
0099 .save(),
0100
0101 Specification().groupBy("PXForward/LumiBlock")
0102 .reduce("MEAN")
0103 .groupBy("PXForward", "EXTEND_X")
0104 .save(),
0105
0106 Specification(PerLayer1D).groupBy("PXBarrel/Shell/PXLayer").save(),
0107 Specification(PerLayer1D).groupBy("PXForward/HalfCylinder/PXRing/PXDisk").save()
0108 )
0109 )
0110
0111 SiPixelPhase1RecHitsOnEdge = DefaultHistoTrack.clone(
0112 name = "onedge",
0113 title = "OnEdge",
0114 range_min = 0, range_max = 30, range_nbins = 30,
0115 xlabel = "onedge",
0116 dimensions = 0,
0117 specs = VPSet(
0118
0119 StandardSpecificationTrend_Num,
0120 StandardSpecificationOccupancy,
0121 Specification().groupBy("PXBarrel/PXLayer/Event")
0122 .reduce("COUNT")
0123 .groupBy("PXBarrel/PXLayer/LumiBlock")
0124 .reduce("MEAN")
0125 .groupBy("PXBarrel/PXLayer","EXTEND_X")
0126 .save(),
0127 Specification().groupBy("PXForward/PXDisk/Event")
0128 .reduce("COUNT")
0129 .groupBy("PXForward/PXDisk/LumiBlock")
0130 .reduce("MEAN")
0131 .groupBy("PXForward/PXDisk","EXTEND_X")
0132 .save(),
0133 Specification().groupBy("PXBarrel/PXLayer/Event")
0134 .reduce("COUNT")
0135 .groupBy("PXBarrel/PXLayer/")
0136 .save(nbins=100, xmin=0, xmax=500),
0137 Specification().groupBy("PXBarrel/Event")
0138 .reduce("COUNT")
0139 .groupBy("PXBarrel")
0140 .save(nbins=100, xmin=0, xmax=500),
0141
0142 Specification().groupBy("PXForward/PXDisk/Event")
0143 .reduce("COUNT")
0144 .groupBy("PXForward/PXDisk/")
0145 .save(nbins=100, xmin=0, xmax=500),
0146 Specification().groupBy("PXForward/PXDisk/Event")
0147 .reduce("COUNT")
0148 .groupBy("PXForward")
0149 .save(nbins=100, xmin=0, xmax=500),
0150
0151 Specification().groupBy("PXAll/Event")
0152 .reduce("COUNT")
0153 .groupBy("PXAll")
0154 .save(nbins=100, xmin=0, xmax=500)
0155
0156 )
0157 )
0158
0159 SiPixelPhase1RecHitsOtherBad = DefaultHistoTrack.clone(
0160 name = "otherbad",
0161 title = "OtherBad",
0162 range_min = 0, range_max = 30, range_nbins = 30,
0163 xlabel = "otherbad",
0164 dimensions = 0,
0165 specs = VPSet(
0166
0167 StandardSpecificationTrend_Num,
0168 StandardSpecificationOccupancy,
0169 Specification().groupBy("PXBarrel/PXLayer/Event")
0170 .reduce("COUNT")
0171 .groupBy("PXBarrel/PXLayer/LumiBlock")
0172 .reduce("MEAN")
0173 .groupBy("PXBarrel/PXLayer","EXTEND_X")
0174 .save(),
0175 Specification().groupBy("PXForward/PXDisk/Event")
0176 .reduce("COUNT")
0177 .groupBy("PXForward/PXDisk/LumiBlock")
0178 .reduce("MEAN")
0179 .groupBy("PXForward/PXDisk","EXTEND_X")
0180 .save(),
0181 Specification().groupBy("PXBarrel/PXLayer/Event")
0182 .reduce("COUNT")
0183 .groupBy("PXBarrel/PXLayer/")
0184 .save(nbins=100, xmin=0, xmax=500),
0185 Specification().groupBy("PXBarrel/Event")
0186 .reduce("COUNT")
0187 .groupBy("PXBarrel")
0188 .save(nbins=100, xmin=0, xmax=500),
0189
0190 Specification().groupBy("PXForward/PXDisk/Event")
0191 .reduce("COUNT")
0192 .groupBy("PXForward/PXDisk/")
0193 .save(nbins=100, xmin=0, xmax=500),
0194 Specification().groupBy("PXForward/PXDisk/Event")
0195 .reduce("COUNT")
0196 .groupBy("PXForward")
0197 .save(nbins=100, xmin=0, xmax=500),
0198
0199 Specification().groupBy("PXAll/Event")
0200 .reduce("COUNT")
0201 .groupBy("PXAll")
0202 .save(nbins=100, xmin=0, xmax=500)
0203 )
0204 )
0205
0206 SiPixelPhase1RecHitsConf = cms.VPSet(
0207 SiPixelPhase1RecHitsNRecHits,
0208 SiPixelPhase1RecHitsClustX,
0209 SiPixelPhase1RecHitsClustY,
0210 SiPixelPhase1RecHitsErrorX,
0211 SiPixelPhase1RecHitsErrorY,
0212 SiPixelPhase1RecHitsPosition,
0213 SiPixelPhase1RecHitsProb,
0214 SiPixelPhase1RecHitsOnEdge,
0215 SiPixelPhase1RecHitsOtherBad,
0216 )
0217
0218 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0219 SiPixelPhase1RecHitsAnalyzer = DQMEDAnalyzer('SiPixelPhase1RecHits',
0220 src = cms.InputTag("generalTracks"),
0221 histograms = SiPixelPhase1RecHitsConf,
0222 geometry = SiPixelPhase1Geometry,
0223 onlyValidHits = cms.bool(False),
0224 triggerflags = trigger.SiPixelPhase1Triggers,
0225 VertexCut = cms.untracked.bool(True)
0226 )
0227
0228 SiPixelPhase1RecHitsHarvester = DQMEDHarvester("SiPixelPhase1Harvester",
0229 histograms = SiPixelPhase1RecHitsConf,
0230 geometry = SiPixelPhase1Geometry
0231 )