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 
0007 process.load("DQM.BeamMonitor.BeamMonitor_Pixel_cff")
0008 process.load("DQM.BeamMonitor.BeamMonitorBx_cff")
0009 process.load("DQM.BeamMonitor.BeamConditionsMonitor_cff")
0010 process.load("DQMServices.Components.DQMEnvironment_cfi")
0011 
0012 
0013 ####---Massage logger Services----####
0014 process.load('FWCore.MessageService.MessageLogger_cfi')
0015 process.MessageLogger.debugModules = ['dqmBeamMonitor']
0016 process.MessageLogger.BeamMonitor = dict()
0017 process.MessageLogger.cerr.threshold = "INFO"
0018 
0019 
0020 #----------------------------
0021 # DQM Live Environment
0022 #-----------------------------
0023 process.load("DQM.Integration.test.environment_cfi")
0024 process.dqmEnv.subSystemFolder = 'BeamMonitor'
0025 
0026 import DQMServices.Components.DQMEnvironment_cfi
0027 process.dqmEnvPixelLess = DQMServices.Components.DQMEnvironment_cfi.dqmEnv.clone()
0028 process.dqmEnvPixelLess.subSystemFolder = 'BeamMonitor_PixelLess'
0029 
0030 
0031 process.load("DQM.Integration.test.inputsource_cfi")
0032 process.EventStreamHttpReader.SelectEvents = cms.untracked.PSet(
0033     SelectEvents = cms.vstring('HLT_L1*',
0034                                'HLT_ZeroBias*',
0035                                'HLT_Jet*'))
0036 
0037 
0038 #----Event to Analyze---------------
0039 process.maxEvents = cms.untracked.PSet(
0040     input = cms.untracked.int32(20000)
0041 )
0042 
0043 process.source = cms.Source("PoolSource",
0044     fileNames = cms.untracked.vstring(
0045    #HighPU Fill 2011:Run 178203
0046    #'file:/tmp/schauhan/HighPUHPF/BC4C924F-4EF3-E011-B001-E0CB4E553651.root',
0047    #'file:/tmp/schauhan/HighPUHPF/B68B5DDB-4FF3-E011-AD2B-001D09F2B30B.root',
0048    #'file:/tmp/schauhan/HighPUHPF/284D89DB-4FF3-E011-9B4E-001D09F28EA3.root'   
0049    #'file:/tmp/schauhan/RAWRECO/88B58FFA-0B21-E111-958E-002618943905.root'
0050    #Run 177515, Normal 2011B run RAW file
0051    #'file:/tmp/schauhan/Run2011B_MinimumBias_RAW/1431D41F-E5EA-E011-8F71-001D09F291D2.root'
0052    #Run 177139, Normal 2011B run RAW file                              
0053    'file:/tmp/schauhan/Run2011B_MinimumBias_RAW/46A6F982-BDE7-E011-8172-BCAEC53296FF_177139_LS400_420.root'
0054    #Raw, 178208 highpileup
0055    #'file:/tmp/schauhan/HighPileUp_Run178208/A2CBA95C-60F3-E011-B4A5-001D09F251CC.root',
0056    #'file:/tmp/schauhan/HighPileUp_Run178208/BC9AC280-62F3-E011-B751-BCAEC518FF52.root',
0057    #'file:/tmp/schauhan/HighPileUp_Run178208/50455D75-62F3-E011-BF70-0015C5FDE067.root',
0058    #'file:/tmp/schauhan/HighPileUp_Run178208/30F48998-60F3-E011-80C0-003048CF99BA.root'
0059    #'file:/tmp/schauhan/HighPileUp_Run178208/EC9C9C74-62F3-E011-B0EE-0019B9F4A1D7.root'
0060 
0061  ),
0062     skipBadFiles = cms.untracked.bool(True),  
0063 )
0064 
0065 
0066 #--------------------------
0067 # Filters
0068 #--------------------------
0069 # HLT Filter
0070 process.load("HLTrigger.special.HLTTriggerTypeFilter_cfi")
0071 # 0=random, 1=physics, 2=calibration, 3=technical
0072 process.hltTriggerTypeFilter.SelectedTriggerType = 1
0073 
0074 #----------------------------
0075 # BeamMonitor
0076 #-----------------------------
0077 process.dqmBeamMonitor.OnlineMode        = True
0078 
0079 process.dqmBeamMonitor.resetEveryNLumi   = 5
0080 process.dqmBeamMonitor.resetPVEveryNLumi = 5
0081 process.dqmBeamMonitor.PVFitter.errorScale = 1.23
0082 
0083 process.dqmBeamMonitor.PVFitter.minNrVerticesForFit = 20
0084 
0085 
0086 
0087 
0088 #TriggerName for selecting pv for DIP
0089 process.dqmBeamMonitor.jetTrigger  = cms.untracked.vstring("HLT_L1",
0090                                                            "HLT_Act")
0091 
0092 process.dqmBeamMonitor.hltResults = cms.InputTag("TriggerResults","","HLT")
0093 #-------------------------------------------------
0094 # GEOMETRY
0095 #-------------------------------------------------
0096 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0097 
0098 #-----------------------------
0099 # Magnetic Field
0100 #-----------------------------
0101 process.load('Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff')
0102 
0103 
0104 
0105 #-----------------------
0106 #  Reconstruction Modules
0107 #-----------------------
0108 ## Collision Reconstruction
0109 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0110 process.load("Configuration.EventContent.EventContent_cff")
0111 process.load("RecoTracker.TkTrackingRegions.GlobalTrackingRegion_cfi")
0112 process.load("Configuration.StandardSequences.Reconstruction_cff")
0113 process.load("RecoVertex.PrimaryVertexProducer.OfflinePixel3DPrimaryVertices_cfi")
0114 
0115 # Offline Beam Spot
0116 process.load("RecoVertex.BeamSpotProducer.BeamSpot_cff")
0117 
0118 
0119 
0120 
0121 #----------------------------           
0122 # Pixel-Tracks-Vertices Configuration            
0123 #----------------------------           
0124 
0125 process.pixelVertices.TkFilterParameters.minPt = process.pixelTracks.RegionFactoryPSet.RegionPSet.ptMin
0126 
0127 process.offlinePrimaryVertices.TrackLabel = cms.InputTag("pixelTracks")
0128 
0129 process.tracking_FirstStep  = cms.Sequence(    process.siPixelDigis* 
0130                                                process.offlineBeamSpot*
0131                                                process.siPixelClusters*
0132                                                process.siPixelRecHits*
0133                                                process.pixelTracks*
0134                                                process.pixelVertices
0135                                            )
0136 
0137 #--pixel tracking ends here-----
0138 
0139 
0140 # Change Beam Monitor variables
0141 if process.dqmSaver.producer.value() is "Playback":
0142   process.dqmBeamMonitor.BeamFitter.WriteAscii = False
0143   process.dqmBeamMonitor.BeamFitter.AsciiFileName = 'BeamFitResults.txt'
0144   process.dqmBeamMonitor.BeamFitter.WriteDIPAscii = True
0145   process.dqmBeamMonitor.BeamFitter.DIPFileName = 'DIP_BeamFitResults.txt'
0146 else:
0147   process.dqmBeamMonitor.BeamFitter.WriteAscii = True
0148   process.dqmBeamMonitor.BeamFitter.AsciiFileName = 'BeamFitResults.txt'
0149   process.dqmBeamMonitor.BeamFitter.WriteDIPAscii = True
0150   process.dqmBeamMonitor.BeamFitter.DIPFileName = 'DIP_BeamFitResults.txt'
0151   process.dqmBeamMonitorBx.BeamFitter.WriteAscii = True
0152   process.dqmBeamMonitorBx.BeamFitter.AsciiFileName = 'BeamFitResults_Bx.txt'
0153 
0154 # 
0155 
0156 
0157 ## TKStatus
0158 process.dqmTKStatus = cms.EDAnalyzer("TKStatus",
0159         BeamFitter = cms.PSet(
0160         DIPFileName = process.dqmBeamMonitor.BeamFitter.DIPFileName
0161         )
0162 )
0163 
0164 
0165 
0166 process.dqmcommon = cms.Sequence(process.dqmEnv
0167                                  *process.dqmSaver)
0168 
0169 process.monitor = cms.Sequence(process.dqmBeamMonitor
0170                                )
0171 
0172 
0173 
0174 # Setup DQM store parameters.
0175 process.DQMStore.verbose = 1
0176 process.DQM.collectorHost   = 'lxplus414.cern.ch'
0177 process.DQM.collectorPort   = 9190
0178 process.dqmSaver.dirName    = '.'
0179 process.dqmSaver.producer   = 'Playback'
0180 process.dqmSaver.convention = 'Online'
0181 process.dqmEnv.subSystemFolder = 'BeamMonitor'
0182 process.dqmSaver.saveByRun     = 1
0183 process.dqmSaver.saveAtJobEnd  = True
0184 
0185 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0186 process.GlobalTag.globaltag = 'GR_R_52_V2::All'
0187 
0188 
0189 process.options = cms.untracked.PSet(
0190     wantSummary = cms.untracked.bool(True)
0191 )
0192 
0193 # reduce verbosity
0194 process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(1)
0195 
0196 
0197 process.pp = cms.Path( process.scalersRawToDigi
0198                       *process.onlineMetaDataDigis
0199                       *process.dqmTKStatus
0200                       *process.hltTriggerTypeFilter
0201                       *process.dqmcommon
0202                       *process.tracking_FirstStep
0203                       *process.monitor
0204                      )
0205 
0206 
0207 process.castorDigis.InputLabel = cms.InputTag("rawDataCollector")
0208 process.csctfDigis.producer = cms.InputTag("rawDataCollector")
0209 process.dttfDigis.DTTF_FED_Source = cms.InputTag("rawDataCollector")
0210 process.ecalDigis.InputLabel = cms.InputTag("rawDataCollector")
0211 process.ecalPreshowerDigis.sourceTag = cms.InputTag("rawDataCollector")
0212 process.gctDigis.inputLabel = cms.InputTag("rawDataCollector")
0213 process.gtDigis.DaqGtInputTag = cms.InputTag("rawDataCollector")
0214 process.gtEvmDigis.EvmGtInputTag = cms.InputTag("rawDataCollector")
0215 process.hcalDigis.InputLabel = cms.InputTag("rawDataCollector")
0216 process.muonCSCDigis.InputObjects = cms.InputTag("rawDataCollector")
0217 process.muonDTDigis.inputLabel = cms.InputTag("rawDataCollector")
0218 process.muonRPCDigis.InputLabel = cms.InputTag("rawDataCollector")
0219 process.scalersRawToDigi.scalersInputTag = cms.InputTag("rawDataCollector")
0220 process.siPixelDigis.InputLabel = cms.InputTag("rawDataCollector")
0221 process.siStripDigis.ProductLabel = cms.InputTag("rawDataCollector")
0222 
0223 
0224  
0225 #print process.dumpPython()