File indexing completed on 2024-04-06 12:33:38
0001 import FWCore.ParameterSet.Config as cms
0002 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0003 from DQM.SiPixelPhase1Common.HistogramManager_cfi import *
0004
0005 SiPixelPhase1HitsTofR = DefaultHisto.clone(
0006 name = "tof_r",
0007 title = "Time of flight vs r",
0008 range_min = 0, range_max = 60, range_nbins = 2500,
0009 range_y_min = 0.0, range_y_max = 100.0, range_y_nbins = 100,
0010 xlabel = "r", ylabel = "Time of flight",
0011 topFolderName = "PixelPhase1V/Hits",
0012 dimensions = 2,
0013 specs = VPSet(
0014 Specification().groupBy("").save(),
0015 )
0016 )
0017
0018 SiPixelPhase1HitsEnergyLoss = DefaultHisto.clone(
0019 name = "eloss",
0020 title = "Energy loss",
0021 range_min = 0, range_max = 0.001, range_nbins = 100,
0022 xlabel = "Energy Loss",
0023 dimensions = 1,
0024 topFolderName = "PixelPhase1V/Hits",
0025 specs = VPSet(
0026 Specification().groupBy("PXBarrel/PXLayer").save(),
0027 Specification().groupBy("PXForward/PXDisk").save(),
0028 StandardSpecification2DProfile,
0029 )
0030 )
0031
0032 SiPixelPhase1HitsEntryExitX = DefaultHisto.clone(
0033 name = "entry_exit_x",
0034 title = "Entryx-Exitx",
0035 range_min = -0.03, range_max = 0.03, range_nbins = 100,
0036 xlabel = "",
0037 dimensions = 1,
0038 topFolderName = "PixelPhase1V/Hits",
0039 specs = VPSet(
0040 Specification().groupBy("PXBarrel/PXLayer").save(),
0041 Specification().groupBy("PXForward/PXDisk").save(),
0042 StandardSpecification2DProfile,
0043 )
0044 )
0045
0046 SiPixelPhase1HitsEntryExitY = SiPixelPhase1HitsEntryExitX.clone(
0047 name = "entry_exit_y",
0048 title = "Entryy-Exity",
0049 xlabel = "",
0050 range_min = -0.03, range_max = 0.03, range_nbins = 100,
0051 )
0052
0053 SiPixelPhase1HitsEntryExitZ = SiPixelPhase1HitsEntryExitX.clone(
0054 name = "entry_exit_z",
0055 title = "Entryz-Exitz",
0056 xlabel = "",
0057 range_min = 0.0, range_max = 0.05, range_nbins = 100,
0058 )
0059
0060 SiPixelPhase1HitsPosX = DefaultHisto.clone(
0061 name = "local_x",
0062 title = "X position of Hits",
0063 range_min = -3.5, range_max = 3.5, range_nbins = 100,
0064 xlabel = "Hit position X dimension",
0065 dimensions = 1,
0066 topFolderName = "PixelPhase1V/Hits",
0067 specs = VPSet(
0068 Specification().groupBy("PXBarrel/PXLayer").save(),
0069 Specification().groupBy("PXForward/PXDisk").save(),
0070 StandardSpecification2DProfile,
0071 )
0072 )
0073
0074 SiPixelPhase1HitsPosY = SiPixelPhase1HitsPosX.clone(
0075 name = "local_y",
0076 title = "Y position of Hits",
0077 xlabel = "Hit position Y dimension",
0078 range_min = -3.5, range_max = 3.5, range_nbins = 100,
0079 )
0080
0081 SiPixelPhase1HitsPosZ = SiPixelPhase1HitsPosX.clone(
0082 name = "local_z",
0083 title = "Z position of Hits",
0084 xlabel = "Hit position Z dimension",
0085 range_min = -0.05, range_max = 0.05, range_nbins = 100,
0086 )
0087
0088 SiPixelPhase1HitsPosPhi = SiPixelPhase1HitsPosX.clone(
0089 name = "local_phi",
0090 title = "Phi position of Hits",
0091 xlabel = "Hit position phi dimension",
0092 range_min = -3.5, range_max = 3.5, range_nbins = 100,
0093 )
0094
0095 SiPixelPhase1HitsPosEta = SiPixelPhase1HitsPosX.clone(
0096 name = "local_eta",
0097 title = "Eta position of Hits",
0098 xlabel = "Hit position Eta dimension",
0099 range_min = -0.1, range_max = 0.1, range_nbins = 100,
0100 )
0101
0102 SiPixelPhase1HitsEfficiencyTrack = DefaultHistoTrack.clone(
0103 name = "trackefficiency",
0104 title = "Track Efficiency (by hits)",
0105 xlabel = "#valid/(#valid+#missing)",
0106 dimensions = 1,
0107 topFolderName = "PixelPhase1V/Hits",
0108 specs = VPSet(
0109 StandardSpecification2DProfile,
0110 )
0111 )
0112
0113 SiPixelPhase1HitsConf = cms.VPSet(
0114 SiPixelPhase1HitsTofR,
0115 SiPixelPhase1HitsEnergyLoss,
0116 SiPixelPhase1HitsEntryExitX,
0117 SiPixelPhase1HitsEntryExitY,
0118 SiPixelPhase1HitsEntryExitZ,
0119 SiPixelPhase1HitsPosX,
0120 SiPixelPhase1HitsPosY,
0121 SiPixelPhase1HitsPosZ,
0122 SiPixelPhase1HitsPosPhi,
0123 SiPixelPhase1HitsPosEta,
0124 SiPixelPhase1HitsEfficiencyTrack,
0125 )
0126
0127 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0128 SiPixelPhase1HitsAnalyzerV = DQMEDAnalyzer('SiPixelPhase1HitsV',
0129 pixBarrelLowSrc = cms.InputTag("g4SimHits","TrackerHitsPixelBarrelLowTof"),
0130 pixBarrelHighSrc = cms.InputTag("g4SimHits","TrackerHitsPixelBarrelHighTof"),
0131 pixForwardLowSrc = cms.InputTag("g4SimHits","TrackerHitsPixelEndcapLowTof"),
0132 pixForwardHighSrc = cms.InputTag("g4SimHits","TrackerHitsPixelEndcapHighTof"),
0133
0134
0135 associateRecoTracks = cms.bool(True),
0136 tracksTag = cms.InputTag("generalTracks"),
0137 tpTag = cms.InputTag("mix","MergedTrackTruth"),
0138 trackAssociatorByHitsTag = cms.InputTag("quickTrackAssociatorByHits"),
0139 associateStrip = cms.bool(True),
0140 associatePixel = cms.bool(True),
0141 ROUList = cms.vstring('g4SimHitsTrackerHitsPixelBarrelLowTof',
0142 'g4SimHitsTrackerHitsPixelBarrelHighTof',
0143 'g4SimHitsTrackerHitsPixelEndcapLowTof',
0144 'g4SimHitsTrackerHitsPixelEndcapHighTof'),
0145
0146
0147 histograms = SiPixelPhase1HitsConf,
0148 geometry = SiPixelPhase1Geometry
0149 )
0150 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
0151 premix_stage2.toModify(SiPixelPhase1HitsAnalyzerV, tpTag = "mixData:MergedTrackTruth")
0152
0153 SiPixelPhase1HitsHarvesterV = DQMEDHarvester("SiPixelPhase1Harvester",
0154 histograms = SiPixelPhase1HitsConf,
0155 geometry = SiPixelPhase1Geometry
0156 )