Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
import FWCore.ParameterSet.Config as cms

from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
digiMon = DQMEDAnalyzer('Phase2TrackerMonitorDigi',
                        Verbosity = cms.bool(False),
                        TopFolderName = cms.string("Ph2TkDigi"),
                        PixelPlotFillingFlag = cms.bool(False),
                        StandAloneClusteriserFlag = cms.bool(False),                    
                        InnerPixelDigiSource   = cms.InputTag("simSiPixelDigis","Pixel"),
                        OuterTrackerDigiSource = cms.InputTag("mix", "Tracker"),
                        GeometryType = cms.string('idealForDigi'),
                        NumberOfDigisPerDetH = cms.PSet(
                            Nbins = cms.int32(100),
                            xmin = cms.double(-0.5),
                            xmax = cms.double(99.5),
                            switch = cms.bool(True)
                        ),
                        DigiOccupancySH = cms.PSet(
                            Nbins = cms.int32(51),
                            xmin = cms.double(-0.001),
                            xmax = cms.double(0.05),
                            switch = cms.bool(True)
                        ),
                        DigiOccupancyPH = cms.PSet(
                            Nbins = cms.int32(51),
                            xmin = cms.double(-0.0001),
                            xmax = cms.double(0.005),
                            switch = cms.bool(True)
                        ),
                        ChargeXYMapH = cms.PSet(
                            Nxbins = cms.int32(450),
                            xmin   = cms.double(0.5),
                            xmax   = cms.double(450.5),
                            Nybins = cms.int32(1350),
                            ymin   = cms.double(0.5),
                            ymax   = cms.double(1350.5),
                            switch = cms.bool(True)
                        ),
                        PositionOfDigisSH = cms.PSet(
                            Nxbins = cms.int32(1016),
                            xmin   = cms.double(0.5),
                            xmax   = cms.double(1016.5),
                            Nybins = cms.int32(2),
                            ymin   = cms.double(0.5),
                            ymax   = cms.double(2.5),
                            switch = cms.bool(True)
                        ),
                        PositionOfDigisPH = cms.PSet(
                            Nxbins = cms.int32(960),
                            xmin   = cms.double(0.5),
                            xmax   = cms.double(960.5),
                            Nybins = cms.int32(32),
                            ymin   = cms.double(0.5),
                            ymax   = cms.double(32.5),
                            switch = cms.bool(True)
                        ),
                        EtaH = cms.PSet(
                            Nbins  = cms.int32(45),
                            xmin   = cms.double(-4.5),
                            xmax   = cms.double(4.5),
                            switch = cms.bool(True)
                        ),
                        DigiChargeH = cms.PSet(
                            Nbins = cms.int32(16),
                            xmin   = cms.double(-0.5),
                            xmax   = cms.double(15.5),
                            switch = cms.bool(True)
                        ), 
                        TotalNumberOfDigisPerLayerH = cms.PSet(
                            Nbins = cms.int32(5000),
                            xmin   = cms.double(0.0),
                            xmax   = cms.double(100000.0),
                            switch = cms.bool(True)
                        ),
                        NumberOfHitDetsPerLayerH = cms.PSet(
                            Nbins = cms.int32(500),
                            xmin   = cms.double(-0.5),
                            xmax   = cms.double(2499.5),
                            switch = cms.bool(True)
                        ),
                        NumberOfClustersPerDetH = cms.PSet(
                            Nbins = cms.int32(100),
                            xmin = cms.double(-0.5),
                            xmax = cms.double(99.5),
                            switch = cms.bool(True)
                        ),
                        ClusterWidthH = cms.PSet(
                            Nbins = cms.int32(16),
                            xmin   = cms.double(-0.5),
                            xmax   = cms.double(15.5),
                            switch = cms.bool(True)
                        ),
                        ClusterChargeH = cms.PSet(
                            Nbins = cms.int32(1024),
                            xmin   = cms.double(0.5),
                            xmax   = cms.double(1024.5),
                            switch = cms.bool(True)
                        ),  
                        ClusterPositionSH = cms.PSet(
                            Nxbins = cms.int32(1016),
                            xmin   = cms.double(0.5),
                            xmax   = cms.double(1016.5),
                            Nybins = cms.int32(2),
                            ymin   = cms.double(0.5),
                            ymax   = cms.double(2.5),
                            switch = cms.bool(True)
                        ),
                        ClusterPositionPH = cms.PSet(
                            Nxbins = cms.int32(1016),
                            xmin   = cms.double(0.5),
                            xmax   = cms.double(1016.5),
                            Nybins = cms.int32(32),
                            ymin   = cms.double(0.5),
                            ymax   = cms.double(32.5),
                            switch = cms.bool(True)
                        ),
                        XYPositionMapH = cms.PSet(
                            Nxbins = cms.int32(1250),
                            xmin   = cms.double(-1250.),
                            xmax   = cms.double(1250.),
                            Nybins = cms.int32(1250),
                            ymin   = cms.double(-1250.),
                            ymax   = cms.double(1250.),
                            switch = cms.bool(True)
                        ),
                        RZPositionMapH = cms.PSet(
                            Nxbins = cms.int32(3000),
                            xmin   = cms.double(-3000.),
                            xmax   = cms.double(3000.),
                            Nybins = cms.int32(1250),
                            ymin   = cms.double(0.),
                            ymax   = cms.double(1250.),
                            switch = cms.bool(True)
                        )
                    )

from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
premix_stage2.toModify(digiMon,
                       InnerPixelDigiSource = "mixData:Pixel",
                       OuterTrackerDigiSource="mixData:Tracker"
                                                                 )