Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:09:25

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("BeamMonitor")
0004 
0005 #----------------------------
0006 # Event Source
0007 #-----------------------------
0008 process.load("DQM.Integration.test.inputsource_cfi")
0009 #process.EventStreamHttpReader.SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('HLT_MinBiasBSC','HLT_L1_BSC'))
0010 
0011 #--------------------------
0012 # Filters
0013 #--------------------------
0014 # HLT Filter
0015 process.load("HLTrigger.special.HLTTriggerTypeFilter_cfi")
0016 # 0=random, 1=physics, 2=calibration, 3=technical
0017 process.hltTriggerTypeFilter.SelectedTriggerType = 1
0018 
0019 # L1 Trigger Bit Selection (bit 40 and 41 for BSC trigger)
0020 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
0021 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
0022 process.hltLevel1GTSeed.L1TechTriggerSeeding = cms.bool(True)
0023 process.hltLevel1GTSeed.L1SeedsLogicalExpression = cms.string('40 OR 41')
0024 
0025 #----------------------------
0026 # DQM Live Environment
0027 #-----------------------------
0028 process.load("DQM.Integration.test.environment_cfi")
0029 process.dqmEnv.subSystemFolder = 'BeamMonitor'
0030 
0031 import DQMServices.Components.DQMEnvironment_cfi
0032 process.dqmEnvPixelLess = DQMServices.Components.DQMEnvironment_cfi.dqmEnv.clone()
0033 process.dqmEnvPixelLess.subSystemFolder = 'BeamMonitor_PixelLess'
0034 
0035 #----------------------------
0036 # BeamMonitor
0037 #-----------------------------
0038 process.load("DQM.BeamMonitor.BeamMonitor_cff")
0039 process.load("DQM.BeamMonitor.BeamMonitor_PixelLess_cff")
0040 process.load("DQM.BeamMonitor.BeamConditionsMonitor_cff")
0041 
0042 ####  SETUP TRACKING RECONSTRUCTION ####
0043 
0044 #-------------------------------------------------
0045 # GEOMETRY
0046 #-------------------------------------------------
0047 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0048 
0049 #-----------------------------
0050 # Magnetic Field
0051 #-----------------------------
0052 #process.load('Configuration/StandardSequences/MagneticField_38T_cff')
0053 process.load('Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff')
0054 
0055 #--------------------------
0056 # Calibration
0057 #--------------------------
0058 process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
0059 
0060 #-----------------------
0061 #  Reconstruction Modules
0062 #-----------------------
0063 ## Collision Reconstruction
0064 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0065 process.load("Configuration.StandardSequences.Reconstruction_cff")
0066 
0067 ## Pixelless Tracking
0068 process.load('RecoTracker/Configuration/RecoTrackerNotStandard_cff')
0069 process.MeasurementTracker.pixelClusterProducer = cms.string("")
0070 
0071 # Offline Beam Spot
0072 process.load("RecoVertex.BeamSpotProducer.BeamSpot_cff")
0073 
0074 ## Offline PrimaryVertices
0075 import RecoVertex.PrimaryVertexProducer.OfflinePrimaryVertices_cfi
0076 process.offlinePrimaryVertices = RecoVertex.PrimaryVertexProducer.OfflinePrimaryVertices_cfi.offlinePrimaryVertices.clone()
0077 ## Input track for PrimaryVertex reconstruction, uncomment the following line to use pixelLess tracks
0078 #process.offlinePrimaryVertices.TrackLabel = cms.InputTag("ctfPixelLess")
0079 process.dqmBeamMonitor.BeamFitter.TrackCollection = cms.untracked.InputTag('firstStepTracksWithQuality')
0080 process.offlinePrimaryVertices.TrackLabel = cms.InputTag("firstStepTracksWithQuality")
0081 
0082 #### END OF TRACKING RECONSTRUCTION ####
0083 
0084 # Change Beam Monitor variables
0085 process.dqmBeamMonitor.BeamFitter.WriteAscii = True
0086 process.dqmBeamMonitor.BeamFitter.AsciiFileName = '/nfshome0/yumiceva/BeamMonitorDQM/BeamFitResults.txt'
0087 process.dqmBeamMonitor.BeamFitter.SaveFitResults = True
0088 process.dqmBeamMonitor.BeamFitter.OutputFileName = '/nfshome0/yumiceva/BeamMonitorDQM/BeamFitResults.root'
0089 
0090 #--------------------------
0091 # Scheduling
0092 #--------------------------
0093 process.phystrigger = cms.Sequence(process.hltTriggerTypeFilter*process.gtDigis*process.hltLevel1GTSeed)
0094 process.tracking = cms.Sequence(process.siPixelDigis*process.siStripDigis*process.trackerlocalreco*process.offlineBeamSpot*process.recopixelvertexing*process.ckftracks)
0095 process.monitor = cms.Sequence(process.dqmBeamMonitor*process.dqmEnv)
0096 process.tracking_pixelless = cms.Sequence(process.siPixelDigis*process.siStripDigis*process.trackerlocalreco*process.offlineBeamSpot*process.ctfTracksPixelLess)
0097 process.monitor_pixelless = cms.Sequence(process.dqmBeamMonitor_pixelless*process.dqmEnvPixelLess)
0098 process.tracking_FirstStep = cms.Sequence(process.siPixelDigis*process.siStripDigis*process.trackerlocalreco*process.offlineBeamSpot*process.recopixelvertexing*process.firstStep)
0099 
0100 process.p = cms.Path(process.gtDigis*process.tracking_FirstStep*process.offlinePrimaryVertices*process.monitor*process.dqmSaver)
0101 #process.p = cms.Path(process.gtDigis*process.tracking*process.offlinePrimaryVertices*process.monitor*process.dqmSaver)
0102 #process.p = cms.Path(process.phystrigger*process.tracking*process.offlinePrimaryVertices*process.monitor*process.dqmSaver)
0103 #process.p = cms.Path(process.phystrigger*process.tracking_pixelless*process.offlinePrimaryVertices*process.monitor_pixelless*process.dqmSaver)
0104