Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-03-14 23:57:21

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_cff")
0008 process.load("DQM.BeamMonitor.BeamMonitorBx_cff")
0009 process.load("DQM.BeamMonitor.BeamConditionsMonitor_cff")
0010 
0011 process.load("DQMServices.Components.DQMEnvironment_cfi")
0012 
0013 
0014 ####---Massage logger Services----####
0015 process.load('FWCore.MessageService.MessageLogger_cfi')
0016 process.MessageLogger.debugModules = ['dqmBeamMonitor']
0017 process.MessageLogger.BeamMonitor = dict()
0018 process.MessageLogger.cerr.threshold = "INFO"
0019 
0020 
0021 #----------------------------
0022 # DQM Live Environment
0023 #-----------------------------
0024 process.load("DQM.Integration.test.environment_cfi")
0025 process.dqmEnv.subSystemFolder = 'BeamMonitor'
0026 
0027 import DQMServices.Components.DQMEnvironment_cfi
0028 process.dqmEnvPixelLess = DQMServices.Components.DQMEnvironment_cfi.dqmEnv.clone()
0029 process.dqmEnvPixelLess.subSystemFolder = 'BeamMonitor_PixelLess'
0030 
0031 
0032 process.load("DQM.Integration.test.inputsource_cfi")
0033 process.EventStreamHttpReader.SelectEvents = cms.untracked.PSet(
0034     SelectEvents = cms.vstring('HLT_L1*','HLT_ZeroBias*','HLT_Jet*'))
0035 
0036 
0037 #######----Event to Analyze----########
0038 process.maxEvents = cms.untracked.PSet(
0039     input = cms.untracked.int32(11400)
0040 )
0041 
0042 process.source = cms.Source("PoolSource",
0043     fileNames = cms.untracked.vstring(
0044 
0045   #'file:/tmp/schauhan/HighPUHPF/BC4C924F-4EF3-E011-B001-E0CB4E553651.root',
0046   #'file:/tmp/schauhan/HighPUHPF/B68B5DDB-4FF3-E011-AD2B-001D09F2B30B.root',
0047   #'file:/tmp/schauhan/HighPUHPF/284D89DB-4FF3-E011-9B4E-001D09F28EA3.root'
0048   #RAW 177515
0049   #'file:/tmp/schauhan/Run2011B_MinimumBias_RAW/1431D41F-E5EA-E011-8F71-001D09F291D2.root'
0050   #Run 177139, Normal 2011B run RAW file                                                                                                             
0051   'file:/tmp/schauhan/Run2011B_MinimumBias_RAW/46A6F982-BDE7-E011-8172-BCAEC53296FF_177139_LS400_420.root'
0052   #Raw, 178208 highpileup
0053   # 'file:/tmp/schauhan/HighPileUp_Run178208/CC9E06A2-5CF3-E011-B1B5-001D09F25041.root'
0054  ),
0055     skipBadFiles = cms.untracked.bool(True),  
0056 )
0057 
0058 
0059 #--------------------------
0060 # Filters
0061 #--------------------------
0062 # HLT Filter
0063 process.load("HLTrigger.special.HLTTriggerTypeFilter_cfi")
0064 # 0=random, 1=physics, 2=calibration, 3=technical
0065 process.hltTriggerTypeFilter.SelectedTriggerType = 1
0066 
0067 #----------------------------
0068 # BeamMonitor
0069 #-----------------------------
0070 process.dqmBeamMonitor.OnlineMode        = True
0071 process.dqmBeamMonitor.resetEveryNLumi   = 5 
0072 process.dqmBeamMonitor.resetPVEveryNLumi = 5
0073 #process.dqmBeamMonitor.BeamFitter.MinimumInputTracks = 150
0074 
0075 # Set Lower if the bunches are low
0076 process.dqmBeamMonitorBx.fitEveryNLumi   = 30
0077 process.dqmBeamMonitorBx.resetEveryNLumi = 30
0078 
0079 #TriggerName for selecting pv for DIP
0080 process.dqmBeamMonitor.jetTrigger  = cms.untracked.vstring("HLT_L1",
0081                                                            "HLT_Act")
0082 
0083 process.dqmBeamMonitor.hltResults = cms.InputTag("TriggerResults","","HLT")
0084 #-------------------------------------------------
0085 # GEOMETRY
0086 #-------------------------------------------------
0087 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0088 
0089 #-----------------------------
0090 # Magnetic Field
0091 #-----------------------------
0092 process.load('Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff')
0093 
0094 
0095 
0096 #-----------------------
0097 #  Reconstruction Modules
0098 #-----------------------
0099 ## Collision Reconstruction
0100 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0101 process.load("Configuration.StandardSequences.Reconstruction_cff")
0102 process.load("RecoTracker.IterativeTracking.iterativeTk_cff")
0103 
0104 ## Pixelless Tracking
0105 process.load('RecoTracker/Configuration/RecoTrackerNotStandard_cff')
0106 process.MeasurementTracker.pixelClusterProducer = cms.string("")
0107 
0108 # Offline Beam Spot
0109 process.load("RecoVertex.BeamSpotProducer.BeamSpot_cff")
0110 
0111 ## Offline PrimaryVertices need to run later
0112 import RecoVertex.PrimaryVertexProducer.OfflinePrimaryVertices_cfi
0113 process.offlinePrimaryVertices = RecoVertex.PrimaryVertexProducer.OfflinePrimaryVertices_cfi.offlinePrimaryVertices.clone()
0114 
0115 #give input to fitter for newly defined tracks
0116 process.dqmBeamMonitor.BeamFitter.TrackCollection = cms.untracked.InputTag('generalTracksForDQM')
0117 process.dqmBeamMonitorBx.BeamFitter.TrackCollection = cms.untracked.InputTag('generalTracksForDQM')
0118 process.offlinePrimaryVertices.TrackLabel = cms.InputTag("generalTracksForDQM")
0119 
0120 
0121 
0122 process.initialStepSeeds.RegionFactoryPSet.ComponentName = 'GlobalRegionProducerFromBeamSpot' # was GlobalRegionProducer
0123 process.initialStepSeeds.RegionFactoryPSet.RegionPSet.beamSpot = cms.InputTag("offlineBeamSpot")
0124 
0125 
0126 #Reduced tracking steps goes in reco
0127 process.load("RecoTracker.FinalTrackSelectors.trackAlgoPriorityOrder")
0128 import RecoTracker.FinalTrackSelectors.trackListMerger_cfi
0129 process.generalTracksForDQM = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
0130     TrackProducers = (cms.InputTag('initialStepTracks'),
0131                       cms.InputTag('lowPtTripletStepTracks'),
0132                       cms.InputTag('pixelPairStepTracks')
0133                      ),
0134     hasSelector = cms.vint32(1,1,1),
0135     selectedTrackQuals = cms.VInputTag(cms.InputTag("initialStepSelector","initialStep"),
0136                                        cms.InputTag("lowPtTripletStepSelector","lowPtTripletStep"),
0137                                        cms.InputTag("pixelPairStepSelector","pixelPairStep")
0138                                         ),
0139     setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(0,1,2), pQual=cms.bool(True) )
0140                              ),
0141     copyExtras = True,
0142     makeReKeyedSeeds = cms.untracked.bool(False)
0143     ) 
0144 
0145 
0146 process.iterTracking = cms.Sequence(process.InitialStep
0147                                    *process.LowPtTripletStep
0148                                    *process.PixelPairStep       
0149                                    *process.generalTracksForDQM
0150                                   )
0151 
0152 process.tracking_FirstStep = cms.Sequence(process.siPixelDigis
0153                                          *process.siStripDigis
0154                                          *process.trackerlocalreco
0155                                          *process.offlineBeamSpot
0156                                          *process.recopixelvertexing
0157                                          *process.iterTracking)
0158 
0159 #New tracking sequence ends here
0160 
0161 
0162 
0163 ## Skip events with large clusters  
0164 #process.initialStepSeeds.ClusterCheckPSet.MaxNumberOfPixelClusters=10000
0165 #process.pixelPairStepSeeds.ClusterCheckPSet.MaxNumberOfPixelClusters=10000
0166 #process.lowPtTripletStepSeeds.ClusterCheckPSet.MaxNumberOfPixelClusters=2000
0167 
0168 
0169 
0170 # Change Beam Monitor variables
0171 if process.dqmSaver.producer.value() is "Playback":
0172   process.dqmBeamMonitor.BeamFitter.WriteAscii = False
0173   process.dqmBeamMonitor.BeamFitter.AsciiFileName = 'BeamFitResults.txt'
0174   process.dqmBeamMonitor.BeamFitter.WriteDIPAscii = True
0175   process.dqmBeamMonitor.BeamFitter.DIPFileName = 'DIP_BeamFitResults.txt'
0176 else:
0177   process.dqmBeamMonitor.BeamFitter.WriteAscii = True
0178   process.dqmBeamMonitor.BeamFitter.AsciiFileName = 'BeamFitResults.txt'
0179   process.dqmBeamMonitor.BeamFitter.WriteDIPAscii = True
0180   process.dqmBeamMonitor.BeamFitter.DIPFileName = 'DIP_BeamFitResults.txt'
0181   process.dqmBeamMonitorBx.BeamFitter.WriteAscii = True
0182   process.dqmBeamMonitorBx.BeamFitter.AsciiFileName = 'BeamFitResults_Bx.txt'
0183 
0184 process.dqmBeamMonitor.PVFitter.minNrVerticesForFit   = 20
0185 process.dqmBeamMonitorBx.PVFitter.minNrVerticesForFit = 20
0186 
0187 
0188 ## TKStatus
0189 process.dqmTKStatus = cms.EDAnalyzer("TKStatus",
0190         BeamFitter = cms.PSet(
0191         DIPFileName = process.dqmBeamMonitor.BeamFitter.DIPFileName
0192         )
0193 )
0194 
0195 
0196 
0197 process.dqmcommon = cms.Sequence(process.dqmEnv
0198                                  *process.dqmSaver)
0199 
0200 process.monitor = cms.Sequence(process.dqmBeamMonitor
0201                                )
0202 
0203 
0204 
0205 # Setup DQM store parameters.
0206 process.DQMStore.verbose = 1
0207 process.DQM.collectorHost   = 'lxplus414.cern.ch'
0208 process.DQM.collectorPort   = 9190
0209 process.dqmSaver.dirName    = '.'
0210 process.dqmSaver.producer   = 'Playback'
0211 process.dqmSaver.convention = 'Online'
0212 process.dqmEnv.subSystemFolder = 'BeamMonitor'
0213 process.dqmSaver.saveByRun     = 1
0214 process.dqmSaver.saveAtJobEnd  = True
0215 
0216 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0217 process.GlobalTag.globaltag = 'GR_R_52_V2::All'
0218 
0219 
0220 process.options = cms.untracked.PSet(
0221     wantSummary = cms.untracked.bool(True)
0222 )
0223 
0224 process.pp = cms.Path( process.scalersRawToDigi
0225                       *process.onlineMetaDataDigis
0226                       *process.dqmTKStatus
0227                       *process.hltTriggerTypeFilter
0228                       *process.dqmcommon
0229                       *process.tracking_FirstStep
0230                       *process.offlinePrimaryVertices
0231                       *process.monitor
0232                      )
0233 
0234 
0235 process.castorDigis.InputLabel = cms.InputTag("rawDataCollector")
0236 process.csctfDigis.producer = cms.InputTag("rawDataCollector")
0237 process.dttfDigis.DTTF_FED_Source = cms.InputTag("rawDataCollector")
0238 process.ecalDigis.InputLabel = cms.InputTag("rawDataCollector")
0239 process.ecalPreshowerDigis.sourceTag = cms.InputTag("rawDataCollector")
0240 process.gctDigis.inputLabel = cms.InputTag("rawDataCollector")
0241 process.gtDigis.DaqGtInputTag = cms.InputTag("rawDataCollector")
0242 process.gtEvmDigis.EvmGtInputTag = cms.InputTag("rawDataCollector")
0243 process.hcalDigis.InputLabel = cms.InputTag("rawDataCollector")
0244 process.muonCSCDigis.InputObjects = cms.InputTag("rawDataCollector")
0245 process.muonDTDigis.inputLabel = cms.InputTag("rawDataCollector")
0246 process.muonRPCDigis.InputLabel = cms.InputTag("rawDataCollector")
0247 process.scalersRawToDigi.scalersInputTag = cms.InputTag("rawDataCollector")
0248 process.siPixelDigis.InputLabel = cms.InputTag("rawDataCollector")
0249 process.siStripDigis.ProductLabel = cms.InputTag("rawDataCollector")
0250 
0251  
0252 #print process.dumpPython()