Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:08:15

0001 import FWCore.ParameterSet.Config as cms
0002 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0003 
0004 process = cms.Process("SIPIXELDQM")
0005 process.load("IORawData.SiPixelInputSources.PixelSLinkDataInputSource_cfi")
0006 
0007 process.load("Geometry.TrackerSimData.trackerSimGeometryXML_cfi")
0008 
0009 process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")
0010 
0011 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0012 
0013 process.load("MagneticField.Engine.volumeBasedMagneticField_cfi")
0014 
0015 process.load("CondTools.SiPixel.SiPixelCalibConfiguration_cfi")
0016 
0017 process.load("CondTools.SiPixel.SiPixelGainCalibrationService_cfi")
0018 
0019 process.load("EventFilter.SiPixelRawToDigi.SiPixelRawToDigi_cfi")
0020 
0021 process.load("CalibTracker.SiPixelGainCalibration.SiPixelCalibDigiProducer_cfi")
0022 
0023 process.load("CalibTracker.SiPixelSCurveCalibration.SiPixelSCurveCalibrationAnalysis_cfi")
0024 
0025 process.load("CalibTracker.SiPixelIsAliveCalibration.SiPixelIsAliveCalibration_cfi")
0026 
0027 process.load("CalibTracker.SiPixelGainCalibration.SiPixelGainCalibrationAnalysis_cfi")
0028 
0029 process.load("RecoLocalTracker.SiPixelRecHits.SiPixelRecHits_cfi")
0030 
0031 process.load("DQM.SiPixelMonitorRawData.SiPixelMonitorRawData_cfi")
0032 
0033 process.load("DQM.SiPixelMonitorDigi.SiPixelMonitorDigi_cfi")
0034 
0035 process.load("DQMServices.Core.DQM_cfg")
0036 
0037 process.load("DQMServices.Components.DQMEnvironment_cfi")
0038 
0039 process.maxEvents = cms.untracked.PSet(
0040     input = cms.untracked.int32(-1)
0041 )
0042 process.MessageLogger = cms.Service("MessageLogger",
0043     cout = cms.untracked.PSet(
0044         threshold = cms.untracked.string('ERROR')
0045     ),
0046     destinations = cms.untracked.vstring('cout')
0047 )
0048 
0049 process.AdaptorConfig = cms.Service("AdaptorConfig")
0050 
0051 process.sipixelEDAClient = DQMEDHarvester("SiPixelEDAClient",
0052     StaticUpdateFrequency = cms.untracked.int32(10),
0053     OutputFilePath = cms.untracked.string('.'),
0054 )
0055 
0056 process.preScaler = cms.EDFilter("Prescaler",
0057     prescaleFactor = cms.int32(1)
0058 )
0059 
0060 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0061 process.dqmEnv = DQMEDAnalyzer('DQMEventInfo',
0062     subSystemFolder = cms.untracked.string('Pixel'),
0063     eventInfoFolder = cms.untracked.string('EventInfo')
0064 )
0065 
0066 process.dqmSaver = cms.EDAnalyzer("DQMFileSaver",
0067     prescaleEvt = cms.untracked.int32(-1),
0068     producer = cms.untracked.string('DQM'),
0069     workflow = cms.untracked.string('/A/B/C'),
0070     prescaleLS = cms.untracked.int32(-1),
0071     saveAtJobEnd = cms.untracked.bool(False),
0072     fileName = cms.untracked.string('Pixel'),
0073     environment = cms.untracked.string('Online'),
0074     saveAtRunEnd = cms.untracked.bool(True),
0075     prescaleTime = cms.untracked.int32(-1),
0076     dirName = cms.untracked.string('.')
0077 )
0078 
0079 process.ModuleWebRegistry = cms.Service("ModuleWebRegistry")
0080 
0081 process.DigiReco = cms.Sequence(process.siPixelDigis)
0082 process.CalibAnalysis = cms.Sequence(process.siPixelCalibDigis*process.siPixelSCurveAnalysis*process.siPixelGainCalibrationAnalysis*process.siPixelIsAliveCalibration)
0083 process.RAWmonitor = cms.Sequence(process.SiPixelRawDataErrorSource)
0084 process.DIGImonitor = cms.Sequence(process.SiPixelDigiSource)
0085 process.DQMmodules = cms.Sequence(process.dqmEnv*process.dqmSaver)
0086 process.p = cms.Path(process.DigiReco*process.CalibAnalysis*process.RAWmonitor*process.DIGImonitor*process.sipixelEDAClient*process.DQMmodules)
0087 process.PixelSLinkDataInputSource.fileNames = ['rfio:/castor/cern.ch/cms/store/TAC/PIXEL/FPIX/HC-Z1/SCurve_35_340.dmp']
0088 process.sipixelcalib_essource.toGet = cms.VPSet(cms.PSet(
0089     record = cms.string('SiPixelCalibConfigurationRcd'),
0090     tag = cms.string('SCurve_340')
0091 ), 
0092     cms.PSet(
0093         record = cms.string('SiPixelFedCablingMapRcd'),
0094         tag = cms.string('SiPixelFedCablingMap_v12')
0095     ))
0096 process.siPixelDigis.InputLabel = 'source'
0097 process.siPixelDigis.IncludeErrors = True
0098 process.siPixelIsAliveCalibration.DetSetVectorSiPixelCalibDigiTag = 'siPixelCalibDigis'
0099 process.siPixelSCurveAnalysis.DetSetVectorSiPixelCalibDigiTag = 'siPixelCalibDigis'
0100 process.siPixelGainCalibrationAnalysis.DetSetVectorSiPixelCalibDigiTag = 'siPixelCalibDigis'
0101 process.siPixelIsAliveCalibration.saveFile = False
0102 process.siPixelGainCalibrationAnalysis.saveFile = False
0103 process.siPixelSCurveAnalysis.saveFile = False
0104 process.DQM.collectorHost = ''
0105 process.dqmSaver.convention = 'Online'
0106 process.dqmSaver.producer = 'DQM'
0107 process.dqmEnv.subSystemFolder = 'Pixel'
0108 process.dqmSaver.saveByLumiSection = -1
0109 process.dqmSaver.saveByRun = 1
0110