Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("DQMOnlineRealData")
0004 
0005 process.MessageLogger = cms.Service("MessageLogger",
0006     debugModules = cms.untracked.vstring('SiStripZeroSuppression', 
0007         'SiStripMonitorDigi', 
0008         'SiStripMonitorCluster', 
0009         'SiStripMonitorTrackSim', 
0010         'MonitorTrackResidualsSim',
0011     'Timing'),
0012     cout = cms.untracked.PSet(
0013         threshold = cms.untracked.string('ERROR')
0014     ),
0015     destinations = cms.untracked.vstring('cout')
0016 )
0017 #process.MessageLogger = cms.Service("MessageLogger",
0018 #    debugModules = cms.untracked.vstring("Timing"),
0019 #    cout = cms.untracked.PSet(threshold = cms.untracked.string('INFO')),
0020 #    destinations = cms.untracked.vstring('cout')
0021 #    #destinations = cms.untracked.vstring("detailedInfo"),
0022 #    #detailedInfo = cms.untracked.PSet(threshold = cms.untracked.string('INFO'))
0023 #)
0024 #process.Timing = cms.Service("Timing")
0025 #-------------------------------------------------
0026 # Magnetic Field
0027 #-------------------------------------------------
0028 # 0T field
0029 #process.load("Configuration.StandardSequences.MagneticField_0T_cff")
0030 # 3.8T field 
0031 #process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0032 process.load("Configuration.StandardSequences.MagneticField_cff")
0033 #process.prefer("VolumeBasedMagneticFieldESProducer")
0034 
0035 #-------------------------------------------------
0036 # Geometry
0037 #-------------------------------------------------
0038 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0039 
0040 #-------------------------------------------------
0041 # Calibration
0042 #-------------------------------------------------
0043 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0044 process.GlobalTag.globaltag = "CRAFT09_R_V3::All"
0045 
0046 #If Frontier is used in xdaq environment use the following service
0047 #process.SiteLocalConfigService = cms.Service("SiteLocalConfigService")
0048 #-----------------------
0049 # Reconstruction Modules
0050 #-----------------------
0051 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0052 process.load("Configuration.StandardSequences.ReconstructionCosmics_cff")
0053 
0054 process.RecoForDQM_RealData_Cosmics = cms.Sequence(
0055     process.siPixelDigis*
0056     process.siStripDigis*
0057     process.trackerlocalreco*
0058     process.offlineBeamSpot*
0059     process.ctftracksP5
0060 )
0061 
0062 #--------------------------
0063 # DQM
0064 #--------------------------
0065 ## Source
0066 process.load("DQM.SiStripMonitorClient.SiStripSourceConfigP5_cff")
0067 
0068 process.SiStripSources_Common = cms.Sequence(
0069     #process.siStripFEDCheck*
0070     process.siStripFEDMonitor*
0071     process.SiStripMonitorDigi*
0072     process.SiStripMonitorClusterReal
0073 )
0074 process.SiStripSources_Cosmics = cms.Sequence(
0075     process.SiStripMonitorTrack_ckf*
0076     process.MonitorTrackResiduals_ckf*
0077     process.TrackMon_ckf
0078 )
0079 
0080 ## Client
0081 process.load("DQM.SiStripMonitorClient.SiStripClientConfigP5_cff")
0082 process.SiStripAnalyser.StaticUpdateFrequency = cms.untracked.int32(-1)
0083 process.SiStripAnalyser.GlobalStatusFilling = cms.untracked.int32(2)
0084 process.SiStripAnalyser.TkMapCreationFrequency = cms.untracked.int32(-1)
0085 process.SiStripAnalyser.ShiftReportFrequency = cms.untracked.int32(-1)
0086 process.SiStripAnalyser.PrintFaultyModuleList = cms.untracked.bool(True)
0087 
0088 process.SiStripClients = cms.Sequence(
0089         process.SiStripAnalyser
0090 )
0091 #----------------------------
0092 # DQM Environment
0093 #-----------------------------
0094 process.load("DQMServices.Core.DQM_cfg")
0095 process.DQM.filter = '^SiStrip(/[^/]+){0,5}$'
0096 
0097 process.load("DQMServices.Components.DQMEnvironment_cfi")
0098 
0099 #--------------------------
0100 # Quality Test
0101 #--------------------------
0102 from DQMServices.Core.DQMQualityTester import DQMQualityTester
0103 process.qTester = DQMQualityTester(
0104     qtList = cms.untracked.FileInPath('DQM/SiStripMonitorClient/data/sistrip_qualitytest_config.xml'),
0105     prescaleFactor = cms.untracked.int32(1),                               
0106     getQualityTestsFromFile = cms.untracked.bool(True)
0107 )
0108 #----------------------------
0109 # DQM Playback Environment
0110 #-----------------------------
0111 process.load("DQM.Integration.test.environment_playback_cfi")
0112 process.dqmEnv.subSystemFolder    = "SiStrip"
0113 process.dqmSaver.saveByMinute     = 120
0114 process.dqmSaver.dirName  = cms.untracked.string(".")
0115 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0116 process.dqmEnvTr = DQMEDAnalyzer('DQMEventInfo',
0117                        subSystemFolder = cms.untracked.string('Tracking'),
0118                        eventRateWindow = cms.untracked.double(0.5),
0119                        eventInfoFolder = cms.untracked.string('EventInfo')
0120                    )
0121 
0122 process.DQMCommon = cms.Sequence(
0123     process.qTester*
0124         process.dqmEnv*
0125         process.dqmEnvTr*
0126         process.dqmSaver
0127 )
0128 
0129 #----------------------------
0130 # Scheduling
0131 #-----------------------------
0132 process.p = cms.Path(
0133     process.RecoForDQM_RealData_Cosmics*
0134     process.DQMCommon*
0135     process.SiStripSources_Common*
0136     process.SiStripSources_Cosmics*
0137     process.SiStripClients
0138 )
0139 
0140 process.AdaptorConfig = cms.Service("AdaptorConfig")
0141 
0142 #-------------------------
0143 # Input Events
0144 #-------------------------
0145 process.source = cms.Source("PoolSource",
0146     fileNames = cms.untracked.vstring(
0147 ## CRAFT09
0148        '/store/data/CRAFT09/Cosmics/RAW/v1/000/110/998/001404E1-0F8A-DE11-ADB3-000423D99EEE.root',
0149        '/store/data/CRAFT09/Cosmics/RAW/v1/000/110/998/002174A8-E989-DE11-8B4D-000423D6CA42.root'
0150     )
0151 )
0152 
0153 process.maxEvents = cms.untracked.PSet(
0154     input = cms.untracked.int32(-1)
0155 )