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 SiPixelPhase1TrackingParticleMass = DefaultHisto.clone(
0006 name = "mass",
0007 title = "Tracking Particle Mass",
0008 range_min = -1.0, range_max = 5.0, range_nbins = 100,
0009 xlabel = "Mass",
0010 dimensions = 1,
0011 topFolderName = "PixelPhase1V/TrackingParticle",
0012 specs = VPSet(
0013 Specification().groupBy("").save(),
0014 Specification().groupBy("PXBarrel").save(),
0015 Specification().groupBy("PXForward").save(),
0016 )
0017 )
0018
0019 SiPixelPhase1TrackingParticleCharge = SiPixelPhase1TrackingParticleMass.clone(
0020 name = "charge",
0021 title = "Tracking Particle Charge",
0022 range_min = -5, range_max = 5.0, range_nbins = 10,
0023 xlabel = "Charge",
0024 )
0025
0026 SiPixelPhase1TrackingParticleId = SiPixelPhase1TrackingParticleMass.clone(
0027 name = "id",
0028 title = "Tracking Particle Id",
0029 range_min = -5000, range_max = 5000, range_nbins = 500,
0030 xlabel = "PID",
0031 )
0032
0033 SiPixelPhase1TrackingParticleNhits = SiPixelPhase1TrackingParticleMass.clone(
0034 name = "charge",
0035 title = "Tracking Particle All Hits",
0036 range_min = -0.5, range_max = 199.5, range_nbins = 200,
0037 xlabel = "Total # Hits",
0038 )
0039
0040 SiPixelPhase1TrackingParticleMatched = SiPixelPhase1TrackingParticleMass.clone(
0041 name = "matched",
0042 title = "Tracking Particle Matched Hits",
0043 range_min = -0.5, range_max = 99.5, range_nbins = 100,
0044 xlabel = "Matched Hits",
0045 )
0046
0047 SiPixelPhase1TrackingParticlePt = SiPixelPhase1TrackingParticleMass.clone(
0048 name = "charge",
0049 title = "Tracking Particle Pt",
0050 range_min = 0, range_max = 100, range_nbins = 100,
0051 xlabel = "Pt",
0052 )
0053
0054 SiPixelPhase1TrackingParticlePhi = SiPixelPhase1TrackingParticleMass.clone(
0055 name = "phi",
0056 title = "Tracking Particle Phi",
0057 range_min = -4, range_max = 4, range_nbins = 100,
0058 xlabel = "Phi",
0059 )
0060
0061 SiPixelPhase1TrackingParticleEta = SiPixelPhase1TrackingParticleMass.clone(
0062 name = "eta",
0063 title = "Tracking Particle Eta",
0064 range_min = -7, range_max = 7, range_nbins = 100,
0065 xlabel = "Eta",
0066 )
0067
0068 SiPixelPhase1TrackingParticleVtx = SiPixelPhase1TrackingParticleMass.clone(
0069 name = "Vtx",
0070 title = "Tracking Particle VtxX",
0071 range_min = -100, range_max = 100, range_nbins = 100,
0072 xlabel = "VtxX",
0073 )
0074
0075 SiPixelPhase1TrackingParticleVty = SiPixelPhase1TrackingParticleMass.clone(
0076 name = "Vty",
0077 title = "Tracking Particle VtxY",
0078 range_min = -100, range_max = 100, range_nbins = 100,
0079 xlabel = "VtxY",
0080 )
0081
0082 SiPixelPhase1TrackingParticleVtz = SiPixelPhase1TrackingParticleMass.clone(
0083 name = "Vtz",
0084 title = "Tracking Particle VtxZ",
0085 range_min = -100, range_max = 100, range_nbins = 100,
0086 xlabel = "VtxZ",
0087 )
0088
0089 SiPixelPhase1TrackingParticleTip = SiPixelPhase1TrackingParticleMass.clone(
0090 name = "tip",
0091 title = "Tracking Particle tip",
0092 range_min = 0, range_max = 1000, range_nbins = 100,
0093 xlabel = "tip",
0094 )
0095
0096 SiPixelPhase1TrackingParticleLip = SiPixelPhase1TrackingParticleMass.clone(
0097 name = "lip",
0098 title = "Tracking Particle lip",
0099 range_min = 0, range_max = 1000, range_nbins = 100,
0100 xlabel = "lip",
0101 )
0102
0103 SiPixelPhase1TrackingParticleConf = cms.VPSet(
0104 SiPixelPhase1TrackingParticleMass,
0105 SiPixelPhase1TrackingParticleCharge,
0106 SiPixelPhase1TrackingParticleId,
0107 SiPixelPhase1TrackingParticleNhits,
0108 SiPixelPhase1TrackingParticleMatched,
0109 SiPixelPhase1TrackingParticlePt,
0110 SiPixelPhase1TrackingParticlePhi,
0111 SiPixelPhase1TrackingParticleEta,
0112 SiPixelPhase1TrackingParticleVtx,
0113 SiPixelPhase1TrackingParticleVty,
0114 SiPixelPhase1TrackingParticleVtz,
0115 SiPixelPhase1TrackingParticleTip,
0116 SiPixelPhase1TrackingParticleLip,
0117 )
0118
0119 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0120 SiPixelPhase1TrackingParticleAnalyzerV = DQMEDAnalyzer('SiPixelPhase1TrackingParticleV',
0121 src = cms.InputTag("mix","MergedTrackTruth"),
0122 simHitToken = cms.VInputTag(
0123 cms.InputTag( 'g4SimHits','TrackerHitsPixelBarrelLowTof'),
0124 cms.InputTag('g4SimHits','TrackerHitsPixelBarrelHighTof'),
0125 cms.InputTag('g4SimHits','TrackerHitsPixelEndcapLowTof'),
0126 cms.InputTag('g4SimHits','TrackerHitsPixelEndcapHighTof') ),
0127 histograms = SiPixelPhase1TrackingParticleConf,
0128 geometry = SiPixelPhase1Geometry
0129 )
0130 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
0131 premix_stage2.toModify(SiPixelPhase1TrackingParticleAnalyzerV, src = "mixData:MergedTrackTruth")
0132
0133 SiPixelPhase1TrackingParticleHarvesterV = DQMEDHarvester("SiPixelPhase1Harvester",
0134 histograms = SiPixelPhase1TrackingParticleConf,
0135 geometry = SiPixelPhase1Geometry
0136 )