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 
0006 # load all appropriate modules:
0007 # get alignment conditions needed for geometry:
0008 process.load("Geometry.TrackerGeometryBuilder.idealForDigiTrackerGeometry_cff")
0009 process.load("Geometry.TrackerSimData.trackerSimGeometryXML_cfi")
0010 process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")
0011 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0012 process.load("Configuration.StandardSequences.MagneticField_cff")
0013 process.load("EventFilter.SiPixelRawToDigi.SiPixelRawToDigi_cfi")
0014 process.load("RecoLocalTracker.SiPixelRecHits.PixelCPEESProducers_cff")
0015 process.load("RecoLocalTracker.SiPixelRecHits.SiPixelRecHits_cfi")
0016 process.load("RecoLocalTracker.SiPixelClusterizer.SiPixelClusterizer_cfi")
0017 process.load("DQM.SiPixelMonitorRawData.SiPixelMonitorRawData_cfi")
0018 process.load("DQM.SiPixelMonitorDigi.SiPixelMonitorDigi_cfi")
0019 process.load("DQM.SiPixelMonitorCluster.SiPixelMonitorCluster_cfi")
0020 process.load("DQM.SiPixelMonitorRecHit.SiPixelMonitorRecHit_cfi")
0021 process.load("DQMServices.Core.DQM_cfg")
0022 process.load("DQMServices.Components.DQMEnvironment_cfi")
0023 process.load("CalibTracker.SiPixelTools.SiPixelErrorsCalibDigis_cfi")
0024 process.load("CalibTracker.SiPixelGainCalibration.SiPixelCalibDigiProducer_cfi")
0025 process.load("CalibTracker.SiPixelSCurveCalibration.SiPixelSCurveCalibrationAnalysis_cfi")
0026 process.load("CalibTracker.SiPixelIsAliveCalibration.SiPixelIsAliveCalibration_cfi")
0027 process.load("CalibTracker.SiPixelGainCalibration.SiPixelGainCalibrationAnalysis_cfi")
0028 
0029 # get the global tag with all cabling maps, alignment info, etc.
0030 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_noesprefer_cff")
0031 
0032 process.GlobalTag.connect = "frontier://FrontierProd/CMS_COND_21X_GLOBALTAG"
0033 process.GlobalTag.globaltag = "GTAG"
0034 
0035 
0036 # and access the calibration information:
0037 CALIBfrom CondCore.DBCommon.CondDBCommon_cfi import *
0038 #                                              
0039 CALIBprocess.siPixelCalibGlobalTag =  cms.ESSource("PoolDBESSource",
0040 CALIB                                              CondDBCommon,
0041 CALIB                                              connect = cms.string("oracle://cms_orcoff_prep/CMS_COND_PIXEL_COMM_21X"),
0042 CALIB                                              globaltag = cms.string("PIXELCALIB_01::TypeGLOBALCALIB"),
0043 CALIB                                              BlobStreamerName = cms.untracked.string("TBufferBlobStreamingService")
0044 CALIB                                              )
0045 CALIBprocess.siPixelCalibGlobalTag.DBParameters.authenticationPath = "/afs/cern.ch/cms/DB/conddb"
0046 
0047 process.esprefer_dbcalib = cms.ESPrefer("PoolDBESSource","GlobalTag")
0048 
0049 # this is needed by the gain calibration analyzer 
0050 process.load("CondTools.SiPixel.SiPixelGainCalibrationService_cfi")
0051 
0052 # the input file source
0053 process.source = cms.Source("PoolSource",
0054     debugFlag = cms.untracked.bool(True),
0055     debugVebosity = cms.untracked.uint32(1),
0056     ONEPARAM
0057     TWOPARAM
0058     fileNames = cms.untracked.vstring('FILENAME')
0059                             )
0060 
0061 
0062 process.maxEvents = cms.untracked.PSet(
0063 #    input = cms.untracked.int32(-1)
0064     input = cms.untracked.int32(-1)
0065 )
0066 
0067 # message logger
0068 process.MessageLogger = cms.Service("MessageLogger",
0069                                     debugModules = cms.untracked.vstring('siPixelDigis', 
0070                                                                          'SiPixelRawDataErrorSource',
0071                                                                          'SiPixelCalibProducer',
0072                                                                          'SiPixelDigiSource', 
0073                                                                          'SiPixelClusterSource', 
0074                                                                          'SiPixelRecHitSource', 
0075                                                                          'sipixelEDAClient'),
0076                                     TEXTFILE = cms.untracked.PSet(threshold = cms.untracked.string('ERROR')
0077                                                                            ),
0078                                     
0079 #                                   destinations = cms.untracked.vstring('TEXTFILE')
0080                                     )
0081 
0082 process.AdaptorConfig = cms.Service("AdaptorConfig")
0083 
0084 # DQM modules:
0085 process.sipixelEDAClient = DQMEDHarvester("SiPixelEDAClient",
0086     FileSaveFrequency = cms.untracked.int32(50),
0087     StaticUpdateFrequency = cms.untracked.int32(10)
0088 )
0089 
0090 from DQMServices.Core.DQMQualityTester import DQMQualityTester
0091 process.qTester = DQMQualityTester(
0092     qtList = cms.untracked.FileInPath('DQM/SiPixelMonitorClient/test/sipixel_qualitytest_config.xml'),
0093     QualityTestPrescaler = cms.untracked.int32(1),
0094     getQualityTestsFromFile = cms.untracked.bool(True)
0095 )
0096 
0097 process.ModuleWebRegistry = cms.Service("ModuleWebRegistry")
0098 
0099 # define all paths and sequences:
0100 process.Digis = cms.Sequence(process.siPixelDigis)
0101 process.Clusters = cms.Sequence(process.siPixelClusters)
0102 process.Calibration = cms.Sequence(process.siPixelCalibDigis*process.siPixelErrorsDigisToCalibDigis*process.siPixelGainCalibrationAnalysis*process.siPixelIsAliveCalibration*process.siPixelSCurveAnalysis)
0103 process.RAWmonitor = cms.Sequence(process.SiPixelRawDataErrorSource)
0104 process.DIGImonitor = cms.Sequence(process.SiPixelDigiSource)
0105 process.CLUmonitor = cms.Sequence(process.SiPixelClusterSource)
0106 process.HITmonitor = cms.Sequence(process.SiPixelRecHitSource)
0107 process.DQMmodules = cms.Sequence(process.qTester*process.dqmEnv*process.dqmSaver)
0108 process.p = cms.Path(process.DQMmodules*DIGISPOTCLUSPOTRECSPOTCDSPOTSCURVESPOTGAINSPOTPIXELSPOTRAWMONSPOTDIGMONSPOTCLUMONSPOTRECMONSPOTprocess.sipixelEDAClient)
0109 # choose one of these two:
0110 # online-style DQM (runs RECO)
0111 
0112 # offline-style DQM (reco in input file)
0113 #process.p = cms.Path(process.DQMmodules*process.DIGImonitor*process.sipixelEDAClient)
0114 
0115 # list of replace statements
0116 process.siPixelDigis.InputLabel = 'source'
0117 process.siPixelDigis.IncludeErrors = True
0118 process.SiPixelRawDataErrorSource.saveFile = False
0119 process.SiPixelRawDataErrorSource.isPIB = False
0120 process.SiPixelRawDataErrorSource.slowDown = False
0121 process.SiPixelDigiSource.saveFile = False
0122 process.SiPixelDigiSource.isPIB = False
0123 process.SiPixelDigiSource.slowDown = False
0124 process.SiPixelDigiSource.modOn = True
0125 process.SiPixelDigiSource.ladOn = False
0126 process.SiPixelDigiSource.layOn = False
0127 process.SiPixelDigiSource.phiOn = False
0128 process.SiPixelDigiSource.bladeOn = False
0129 process.SiPixelDigiSource.diskOn = False
0130 process.SiPixelDigiSource.ringOn = False
0131 process.SiPixelClusterSource.saveFile = False
0132 process.SiPixelClusterSource.modOn = True
0133 process.SiPixelClusterSource.ladOn = False
0134 process.SiPixelClusterSource.layOn = False
0135 process.SiPixelClusterSource.phiOn = False
0136 process.SiPixelClusterSource.bladeOn = False
0137 process.SiPixelClusterSource.diskOn = False
0138 process.SiPixelClusterSource.ringOn = False
0139 process.SiPixelRecHitSource.saveFile = False
0140 process.SiPixelRecHitSource.modOn = True
0141 process.SiPixelRecHitSource.ladOn = False
0142 process.SiPixelRecHitSource.layOn = False
0143 process.SiPixelRecHitSource.phiOn = False
0144 process.SiPixelRecHitSource.bladeOn = False
0145 process.SiPixelRecHitSource.ringOn = False
0146 process.SiPixelRecHitSource.diskOn = False
0147 process.DQM.collectorHost = ''
0148 process.dqmSaver.convention = 'Online'
0149 process.dqmSaver.producer = 'DQM'
0150 process.dqmEnv.subSystemFolder = 'Pixel'
0151 process.dqmSaver.dirName = '.'
0152 process.dqmSaver.saveByLumiSection = -1
0153 process.dqmSaver.saveByRun = 1
0154 process.dqmSaver.saveAtJobEnd = True
0155 process.siPixelIsAliveCalibration.DetSetVectorSiPixelCalibDigiTag = 'siPixelCalibDigis'
0156 process.siPixelSCurveAnalysis.DetSetVectorSiPixelCalibDigiTag = 'siPixelCalibDigis'
0157 process.siPixelGainCalibrationAnalysis.DetSetVectorSiPixelCalibDigiTag = 'siPixelCalibDigis'
0158 process.siPixelErrorsDigisToCalibDigis.SiPixelProducerLabelTag = 'siPixelCalibDigis'
0159 process.siPixelIsAliveCalibration.saveFile = False
0160 process.siPixelGainCalibrationAnalysis.saveFile = False
0161 process.siPixelSCurveAnalysis.saveFile = False
0162 process.siPixelErrorsDigisToCalibDigis.saveFile=False