Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:06:53

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("DQM")
0004 ###DQM Envirionment####################
0005 process.load("DQMServices.Core.DQM_cfg")
0006 process.load("DQMServices.Components.DQMEnvironment_cfi")
0007 process.load("DQM.BeamMonitor.BeamSpotProblemMonitor_cff")
0008 
0009 ####---Massage logger Services----####
0010 process.load('FWCore.MessageService.MessageLogger_cfi')
0011 process.MessageLogger.debugModules = ['BeamSpotProblemMonitor']
0012 process.MessageLogger.BeamSpotProblemMonitor = dict()
0013 process.MessageLogger.cerr.threshold = "INFO"
0014 
0015 
0016 #----------------------------
0017 # DQM Live Environment
0018 #-----------------------------
0019 process.load("DQM.Integration.test.environment_cfi")
0020 process.dqmEnv.subSystemFolder = 'BeamSpotProblemMonitor'
0021 
0022 import DQMServices.Components.DQMEnvironment_cfi
0023 process.load("DQM.Integration.test.inputsource_cfi")
0024 process.DQMEventStreamHttpReader.SelectEvents = cms.untracked.PSet(
0025     SelectEvents = cms.vstring('HLT*',
0026                                         'HLT_Jet*',
0027                                         'HLT_*Cosmic*',
0028                                         'HLT_HT*',
0029                                         'HLT_MinBias_*',
0030                                         'HLT_Physics*',
0031                                         'HLT_ZeroBias*'))
0032 
0033 #----Event to Analyze---------------
0034 process.maxEvents = cms.untracked.PSet(
0035     input = cms.untracked.int32(-1)
0036 )
0037 
0038 process.source = cms.Source("PoolSource",
0039     fileNames = cms.untracked.vstring(
0040   #RAW, Run2012A, MinBias Run 190782
0041   'file:/tmp/schauhan/Run190782MinmumBias/CAB7DEAE-B782-E111-8395-0030486733B4.root',
0042   'file:/tmp/schauhan/Run190782MinmumBias/8E834D27-B982-E111-A7B0-00215AEDFD98.root'
0043   #MCTest:QCD relval 8 TeV
0044   #'file:/tmp/schauhan/MCRelval52X/348A1DE4-0A7A-E111-892A-003048FFCC0A.root',
0045   #'file:/tmp/schauhan/MCRelval52X/4C132D2F-0F7A-E111-86C6-0018F3D09628.root',
0046   #'file:/tmp/schauhan/MCRelval52X/A019F59E-0E7A-E111-A37C-0018F3D09614.root'
0047   ##MCTest:QCD relval 7 TeV
0048   #'file:/tmp/schauhan/MCRelval44X/22C9A2AA-17E6-E011-BCE5-0018F3D09620.root',
0049   #'file:/tmp/schauhan/MCRelval44X/7E44063F-1BE6-E011-B2EA-001A928116CC.root',
0050   #'file:/tmp/schauhan/MCRelval44X/C09174A3-0EE6-E011-9145-003048678F74.root'
0051 
0052 
0053  ),
0054     skipBadFiles = cms.untracked.bool(True),  
0055 )
0056 
0057 
0058 #--------------------------
0059 # Filters
0060 #--------------------------
0061 process.load("HLTrigger.special.HLTTriggerTypeFilter_cfi")
0062 process.hltTriggerTypeFilter.SelectedTriggerType = 1
0063 
0064 #----------------------------
0065 # BeamMonitor
0066 #-----------------------------
0067 process.dqmBeamSpotProblemMonitor.OnlineMode        = True
0068 process.dqmBeamSpotProblemMonitor.AlarmONThreshold  = 10
0069 process.dqmBeamSpotProblemMonitor.AlarmOFFThreshold = 12
0070 
0071 #number of minimum cosmic trks to avoid false alarm
0072 process.dqmBeamSpotProblemMonitor.nCosmicTrk        = 10
0073 
0074 process.dqmBeamSpotProblemMonitor.doTest        = True
0075 
0076 #-------------------------------------------------
0077 # GEOMETRY
0078 #-------------------------------------------------
0079 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0080 
0081 #-----------------------------
0082 # Magnetic Field
0083 #-----------------------------
0084 process.load('Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff')
0085 ## Collision Reconstruction
0086 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0087 process.load("Configuration.EventContent.EventContent_cff")
0088 process.load("RecoTracker.TkTrackingRegions.GlobalTrackingRegion_cfi")
0089 process.load("Configuration.StandardSequences.Reconstruction_cff")
0090 process.load("RecoVertex.PrimaryVertexProducer.OfflinePixel3DPrimaryVertices_cfi")
0091 # Offline Beam Spot
0092 process.load("RecoVertex.BeamSpotProducer.BeamSpot_cff")
0093 
0094 
0095 
0096 
0097 
0098 
0099 #----------------------------           
0100 # Pixel-Tracks-Vertices Configuration            
0101 #----------------------------           
0102 
0103 process.pixelVertices.TkFilterParameters.minPt = process.pixelTracks.RegionFactoryPSet.RegionPSet.ptMin
0104 
0105 process.offlinePrimaryVertices.TrackLabel = cms.InputTag("pixelTracks")
0106 
0107 process.tracking_FirstStep  = cms.Sequence(    process.siPixelDigis* 
0108                                                process.offlineBeamSpot*
0109                                                process.siPixelClusters*
0110                                                process.siPixelRecHits*
0111                                                process.pixelTracks*
0112                                                process.pixelVertices
0113                                            )
0114 
0115 #--pixel tracking ends here-----
0116 
0117 from DQMServices.Core.DQMQualityTester import DQMQualityTester
0118 process.qTester = DQMQualityTester(
0119                                  qtList = cms.untracked.FileInPath('DQM/BeamMonitor/test/BeamSpotAvailableTest.xml'),
0120                                  prescaleFactor = cms.untracked.int32(1),                               
0121                                  testInEventloop = cms.untracked.bool(False),
0122                                  verboseQT =  cms.untracked.bool(True)                 
0123                                 )
0124 
0125 process.dqmcommon = cms.Sequence( process.qTester
0126                                  *process.dqmEnv
0127                                  *process.dqmSaver)
0128 
0129 process.monitor = cms.Sequence(process.dqmBeamSpotProblemMonitor
0130                                )
0131 
0132 
0133 # Setup DQM store parameters.
0134 process.DQMStore.verbose = 1
0135 process.DQM.collectorHost   = 'lxplus414.cern.ch'
0136 process.DQM.collectorPort   = 9190
0137 process.dqmSaver.dirName    = '.'
0138 process.dqmSaver.producer   = 'Playback'
0139 process.dqmSaver.convention = 'Online'
0140 process.dqmEnv.subSystemFolder = 'BeamSpotProblemMonitor'
0141 process.dqmSaver.saveByRun     = 1
0142 process.dqmSaver.saveAtJobEnd  = True
0143 
0144 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0145 process.GlobalTag.globaltag = 'GR_P_V32::All'
0146 
0147 
0148 process.options = cms.untracked.PSet(
0149     wantSummary = cms.untracked.bool(True)
0150 )
0151 
0152 # reduce verbosity
0153 process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(100)
0154 
0155 
0156 process.pp = cms.Path( 
0157                       process.scalersRawToDigi
0158                       *process.hltTriggerTypeFilter
0159                       *process.dqmcommon
0160                       *process.tracking_FirstStep
0161                       *process.monitor
0162                      )
0163 
0164 
0165 process.castorDigis.InputLabel = cms.InputTag("rawDataCollector")
0166 process.csctfDigis.producer = cms.InputTag("rawDataCollector")
0167 process.dttfDigis.DTTF_FED_Source = cms.InputTag("rawDataCollector")
0168 process.ecalDigis.InputLabel = cms.InputTag("rawDataCollector")
0169 process.ecalPreshowerDigis.sourceTag = cms.InputTag("rawDataCollector")
0170 process.gctDigis.inputLabel = cms.InputTag("rawDataCollector")
0171 process.gtDigis.DaqGtInputTag = cms.InputTag("rawDataCollector")
0172 process.gtEvmDigis.EvmGtInputTag = cms.InputTag("rawDataCollector")
0173 process.hcalDigis.InputLabel = cms.InputTag("rawDataCollector")
0174 process.muonCSCDigis.InputObjects = cms.InputTag("rawDataCollector")
0175 process.muonDTDigis.inputLabel = cms.InputTag("rawDataCollector")
0176 process.muonRPCDigis.InputLabel = cms.InputTag("rawDataCollector")
0177 process.scalersRawToDigi.scalersInputTag = cms.InputTag("rawDataCollector")
0178 process.siPixelDigis.InputLabel = cms.InputTag("rawDataCollector")
0179 process.siStripDigis.ProductLabel = cms.InputTag("rawDataCollector")