Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:11:10

0001 import FWCore.ParameterSet.Config as cms
0002 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0003 
0004 process = cms.Process("SIPIXELDQM")
0005 process.load("Geometry.TrackerSimData.trackerSimGeometryXML_cfi")
0006 process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")
0007 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0008 process.load("Configuration.StandardSequences.MagneticField_cff")
0009 
0010 
0011 process.load("EventFilter.SiPixelRawToDigi.SiPixelRawToDigi_cfi")
0012 process.siPixelDigis.InputLabel = 'source'
0013 process.siPixelDigis.IncludeErrors = True
0014 
0015 process.load("RecoLocalTracker.SiPixelClusterizer.SiPixelClusterizer_cfi")
0016 
0017 process.load("RecoLocalTracker.SiPixelRecHits.SiPixelRecHits_cfi")
0018 process.load("RecoLocalTracker.SiPixelRecHits.PixelCPEESProducers_cff")
0019 
0020 process.load("DQM.SiPixelMonitorRawData.SiPixelMonitorRawData_cfi")
0021 process.SiPixelRawDataErrorSource.saveFile = False
0022 process.SiPixelRawDataErrorSource.isPIB = False
0023 process.SiPixelRawDataErrorSource.slowDown = False
0024 process.SiPixelRawDataErrorSource.reducedSet = False
0025 
0026 process.load("DQM.SiPixelMonitorDigi.SiPixelMonitorDigi_cfi")
0027 process.SiPixelDigiSource.saveFile = False
0028 process.SiPixelDigiSource.isPIB = False
0029 process.SiPixelDigiSource.slowDown = False
0030 process.SiPixelDigiSource.modOn = True
0031 process.SiPixelDigiSource.twoDimOn = True
0032 process.SiPixelDigiSource.hiRes = True
0033 process.SiPixelDigiSource.ladOn = False
0034 process.SiPixelDigiSource.layOn = False
0035 process.SiPixelDigiSource.phiOn = False
0036 process.SiPixelDigiSource.bladeOn = False
0037 process.SiPixelDigiSource.diskOn = False
0038 process.SiPixelDigiSource.ringOn = False
0039 
0040 process.load("DQM.SiPixelMonitorCluster.SiPixelMonitorCluster_cfi")
0041 process.SiPixelClusterSource.saveFile = False
0042 process.SiPixelClusterSource.isPIB = False
0043 process.SiPixelClusterSource.modOn = True
0044 process.SiPixelClusterSource.twoDimOn = True
0045 process.SiPixelClusterSource.reducedSet = False
0046 process.SiPixelClusterSource.ladOn = False
0047 process.SiPixelClusterSource.layOn = False
0048 process.SiPixelClusterSource.phiOn = False
0049 process.SiPixelClusterSource.bladeOn = False
0050 process.SiPixelClusterSource.diskOn = False
0051 process.SiPixelClusterSource.ringOn = False
0052 
0053 process.load("DQM.SiPixelMonitorRecHit.SiPixelMonitorRecHit_cfi")
0054 process.SiPixelRecHitSource.saveFile = False
0055 process.SiPixelRecHitSource.isPIB = False
0056 process.SiPixelRecHitSource.modOn = True
0057 process.SiPixelRecHitSource.twoDimOn = True
0058 process.SiPixelRecHitSource.ladOn = False
0059 process.SiPixelRecHitSource.layOn = False
0060 process.SiPixelRecHitSource.phiOn = False
0061 process.SiPixelRecHitSource.bladeOn = False
0062 process.SiPixelRecHitSource.ringOn = False
0063 process.SiPixelRecHitSource.diskOn = False
0064 
0065 process.load("CalibTracker.SiPixelTools.SiPixelErrorsCalibDigis_cfi")
0066 process.siPixelErrorsDigisToCalibDigis.saveFile=False
0067 process.siPixelErrorsDigisToCalibDigis.SiPixelProducerLabelTag = 'siPixelCalibDigis'
0068 process.load("CalibTracker.SiPixelGainCalibration.SiPixelCalibDigiProducer_cfi")
0069 process.load("CalibTracker.SiPixelSCurveCalibration.SiPixelSCurveCalibrationAnalysis_cfi")
0070 process.siPixelSCurveAnalysis.DetSetVectorSiPixelCalibDigiTag = 'siPixelCalibDigis'
0071 process.siPixelSCurveAnalysis.saveFile = False
0072 process.load("CalibTracker.SiPixelIsAliveCalibration.SiPixelIsAliveCalibration_cfi")
0073 process.siPixelIsAliveCalibration.DetSetVectorSiPixelCalibDigiTag = 'siPixelCalibDigis'
0074 process.siPixelIsAliveCalibration.saveFile = False
0075 process.load("CalibTracker.SiPixelGainCalibration.SiPixelGainCalibrationAnalysis_cfi")
0076 process.siPixelGainCalibrationAnalysis.DetSetVectorSiPixelCalibDigiTag = 'siPixelCalibDigis'
0077 process.siPixelGainCalibrationAnalysis.saveFile = False
0078 process.siPixelGainCalibrationAnalysis.savePixelLevelHists = False
0079 
0080 process.load("DQMServices.Core.DQM_cfg")
0081 
0082 process.load("DQMServices.Components.DQMEnvironment_cfi")
0083 
0084 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0085 process.GlobalTag.connect = "frontier://FrontierProd/CMS_COND_21X_GLOBALTAG"
0086 process.GlobalTag.globaltag = "CRAFT_V3P::All"
0087 
0088 from CondCore.DBCommon.CondDBCommon_cfi import *
0089 process.siPixelCalibGlobalTag =  cms.ESSource("PoolDBESSource",
0090                                               CondDBCommon,
0091                                               connect = cms.string("frontier://FrontierProd/CMS_COND_21X_PIXEL"),
0092                                               
0093                                               toGet = cms.VPSet(
0094                                                 cms.PSet(record = cms.string('SiPixelCalibConfigurationRcd'),
0095                                                 tag = cms.string('GLOBALCALIB_default'))
0096                                                 )
0097                                               )
0098 process.es_prefer_dbcalib = cms.ESPrefer('PoolDBESSource','GlobalTag')
0099 
0100 process.source = cms.Source("PoolSource",
0101     debugFlag = cms.untracked.bool(True),
0102     debugVebosity = cms.untracked.uint32(1),
0103                             ONEPARAM
0104                             TWOPARAM
0105     fileNames = cms.untracked.vstring(
0106     'FILENAME'
0107                           )
0108 )
0109 
0110 process.maxEvents = cms.untracked.PSet(
0111     input = cms.untracked.int32(-1)
0112 )
0113 process.MessageLogger = cms.Service("MessageLogger",
0114     TEXTFILE = cms.untracked.PSet(
0115         threshold = cms.untracked.string('ERROR')
0116     ),
0117     destinations = cms.untracked.vstring('TEXTFILE')
0118 )
0119 
0120 process.AdaptorConfig = cms.Service("AdaptorConfig")
0121 
0122 process.sipixelEDAClient = DQMEDHarvester("SiPixelEDAClient",
0123     EventOffsetForInit = cms.untracked.int32(10),
0124     ActionOnLumiSection = cms.untracked.bool(False),
0125     ActionOnRunEnd = cms.untracked.bool(True),
0126     HighResolutionOccupancy = cms.untracked.bool(True),
0127     NoiseRateCutValue = cms.untracked.double(-1.)
0128     
0129 )
0130 
0131 from DQMServices.Core.DQMQualityTester import DQMQualityTester
0132 process.qTester = DQMQualityTester(
0133     qtList = cms.untracked.FileInPath('DQM/SiPixelMonitorClient/test/sipixel_qualitytest_config.xml'),
0134     QualityTestPrescaler = cms.untracked.int32(1),
0135     getQualityTestsFromFile = cms.untracked.bool(True)
0136 )
0137 
0138 process.ModuleWebRegistry = cms.Service("ModuleWebRegistry")
0139 
0140 process.Reco = cms.Sequence(process.siPixelDigis)
0141 process.Calibration = cms.Sequence(process.siPixelCalibDigis*process.siPixelGainCalibrationAnalysis*process.siPixelIsAliveCalibration)
0142 process.RAWmonitor = cms.Sequence(process.SiPixelRawDataErrorSource)
0143 process.DIGImonitor = cms.Sequence(process.SiPixelDigiSource)
0144 process.CLUmonitor = cms.Sequence(process.SiPixelClusterSource)
0145 process.HITmonitor = cms.Sequence(process.SiPixelRecHitSource)
0146 process.DQMmodules = cms.Sequence(process.qTester*process.dqmEnv*process.dqmSaver)
0147 process.p = cms.Path(process.Reco*process.qTester*process.dqmEnv*process.Calibration*process.sipixelEDAClient*process.dqmSaver)
0148 
0149 # cms.Path(process.Reco*process.DQMmodules*process.Calibration*process.RAWmonitor*process.DIGImonitprocess.sipixelEDAClient)
0150 process.DQM.collectorHost = ''
0151 process.dqmSaver.convention = 'Online'
0152 process.dqmSaver.producer = 'DQM'
0153 process.dqmEnv.subSystemFolder = 'Pixel'
0154 process.dqmSaver.dirName = '.'
0155 process.dqmSaver.saveByLumiSection = -1
0156 process.dqmSaver.saveByRun = 1
0157 process.dqmSaver.saveAtJobEnd = True