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 ## DQM common
0005 process.load("DQMServices.Core.DQM_cfg")
0006 process.load("DQMServices.Components.DQMEnvironment_cfi")
0007 
0008 ## General common
0009 process.load('Configuration/StandardSequences/GeometryExtended_cff')
0010 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
0011 process.load("Configuration.StandardSequences.RawToDigi_Data_cff") ## For Real Data
0012 #process.load("Configuration.StandardSequences.RawToDigi_cff") ## For MC
0013 process.load("Configuration.StandardSequences.Reconstruction_cff")
0014 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0015 
0016 ## Pixel less tracking
0017 process.load('RecoTracker/Configuration/RecoTrackerNotStandard_cff')
0018 process.MeasurementTracker.pixelClusterProducer = cms.string("")
0019 
0020 ## BeamMonitor modules
0021 process.load("DQM.BeamMonitor.BeamConditionsMonitor_cff")
0022 process.load("DQM.BeamMonitor.BeamMonitor_cff")
0023 process.dqmBeamMonitor.Debug = True
0024 process.dqmBeamMonitor.BeamFitter.Debug = True
0025 process.load("DQM.BeamMonitor.BeamMonitor_PixelLess_cff")
0026 process.dqmBeamMonitor_pixelless.Debug = True
0027 process.dqmBeamMonitor_pixelless.BeamFitter.Debug = True
0028 
0029 process.dqmBeamMonitor.BeamFitter.WriteAscii = True
0030 process.dqmBeamMonitor.BeamFitter.AsciiFileName = 'BeamFitResults.txt'
0031 process.dqmBeamMonitor.BeamFitter.WriteDIPAscii = True
0032 process.dqmBeamMonitor.BeamFitter.DIPFileName = 'BeamFitResults.txt'
0033 process.dqmBeamMonitor.BeamFitter.SaveFitResults = False
0034 process.dqmBeamMonitor.BeamFitter.OutputFileName = 'BeamFitResults.root'
0035 
0036 ## Offline PrimaryVertices
0037 import RecoVertex.PrimaryVertexProducer.OfflinePrimaryVertices_cfi
0038 process.offlinePrimaryVertices = RecoVertex.PrimaryVertexProducer.OfflinePrimaryVertices_cfi.offlinePrimaryVertices.clone()
0039 
0040 ## DQM environment for pixelLess tracks
0041 import DQMServices.Components.DQMEnvironment_cfi
0042 process.dqmEnvPixelLess = DQMServices.Components.DQMEnvironment_cfi.dqmEnv.clone()
0043 process.dqmEnvPixelLess.subSystemFolder = 'BeamMonitor_PixelLess'
0044 ### conditions
0045 process.GlobalTag.globaltag = 'GR09_R_34X_V2::All'
0046 #process.GlobalTag.globaltag = 'MC_3XY_V21::All'
0047 
0048 #--------------------------
0049 # Filters
0050 #--------------------------
0051 # HLT Filter
0052 process.load("HLTrigger.special.HLTTriggerTypeFilter_cfi")
0053 # 0=random, 1=physics, 2=calibration, 3=technical
0054 process.hltTriggerTypeFilter.SelectedTriggerType = 1
0055 
0056 # L1 Trigger Bit Selection (bit 40 and 41 for BSC trigger)
0057 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
0058 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
0059 process.hltLevel1GTSeed.L1TechTriggerSeeding = cms.bool(True)
0060 process.hltLevel1GTSeed.L1SeedsLogicalExpression = cms.string('40 OR 41')
0061 
0062 
0063 process.maxEvents = cms.untracked.PSet(
0064     input = cms.untracked.int32(-1)
0065 )
0066 
0067 process.source = cms.Source("PoolSource",
0068     fileNames = cms.untracked.vstring(
0069 
0070 
0071     )
0072 )
0073 #process.source.lumisToProcess = cms.untracked.VLuminosityBlockRange('124024:2-124024:83')
0074 
0075 process.phystrigger = cms.Sequence(process.hltTriggerTypeFilter*process.gtDigis*process.hltLevel1GTSeed)
0076 process.pretracking_step = cms.Sequence(process.siPixelDigis*
0077                                         process.siStripDigis*
0078                                         process.trackerlocalreco*
0079                                         process.offlineBeamSpot
0080                                        )
0081 
0082 process.RecoForDQM = cms.Sequence(process.pretracking_step*process.recopixelvertexing*process.ckftracks)
0083 process.RecoForDQM_Pixelless = cms.Sequence(process.pretracking_step+process.ctfTracksPixelLess)
0084 process.RecoForDQM_ALL = cms.Sequence(process.pretracking_step+process.ckftracks+process.ctfTracksPixelLess)
0085 process.BeamMonitorDQM = cms.Sequence(process.dqmBeamMonitor+process.dqmEnv)
0086 process.BeamMonitorDQM_Pixelless = cms.Sequence(process.dqmBeamMonitor_pixelless+process.dqmEnvPixelLess)
0087 
0088 ## Change FirstStep default values
0089 # Step 0
0090 #process.newSeedFromTriplets.RegionFactoryPSet.RegionPSet.ptMin = 1.2 ## default : 0.8
0091 #process.newTrajectoryFilter.filterPset.minPt = 1.0 ## default : 0.6
0092 #process.GroupedCkfTrajectoryBuilder.maxCand = 3 ## default : 5
0093 #process.GroupedCkfTrajectoryBuilder.minNrOfHitsForRebuild = 6 ## default : 5
0094 
0095 # Step 1
0096 #process.newSeedFromPairs.RegionFactoryPSet.RegionPSet.ptMin = 1.2 ## default : 0.9
0097 #process.stepOneTrajectoryFilter.filterPset.minPt = 1.0 ## default : 0.5
0098 #process.stepOneCkfTrajectoryBuilder.maxCand = 3 ## default : 5
0099 #process.stepOneCkfTrajectoryBuilder.minNrOfHitsForRebuild = 6 ## default : 5
0100 
0101 process.RecoForDQM_FirstStep = cms.Sequence(process.pretracking_step*process.recopixelvertexing*process.firstStep)
0102 process.dqmBeamMonitor.BeamFitter.TrackCollection = cms.untracked.InputTag('firstStepTracksWithQuality')
0103 process.offlinePrimaryVertices.TrackLabel = cms.InputTag("firstStepTracksWithQuality")
0104 
0105 ## Input track for PrimaryVertex reconstruction, comment out the following line to use default generalTracks
0106 #process.offlinePrimaryVertices.TrackLabel = cms.InputTag("ctfPixelLess")
0107 
0108 ## FirstStep Tracking
0109 process.p = cms.Path(process.phystrigger*process.RecoForDQM_FirstStep*process.offlinePrimaryVertices*process.BeamMonitorDQM*process.dqmSaver)
0110 #process.p = cms.Path(process.RecoForDQM_FirstStep*process.offlinePrimaryVertices*process.BeamMonitorDQM*process.dqmSaver)
0111 
0112 ## Normal Tracking
0113 #process.p = cms.Path(process.phystrigger*process.RecoForDQM*process.offlinePrimaryVertices*process.BeamMonitorDQM*process.dqmSaver)
0114 #process.p = cms.Path(process.RecoForDQM*process.offlinePrimaryVertices*process.BeamMonitorDQM*process.dqmSaver)
0115 
0116 ## Pixelless Tracking
0117 #process.p = cms.Path(process.phystrigger*process.RecoForDQM_Pixelless*process.offlinePrimaryVertices*process.BeamMonitorDQM_Pixelless*process.dqmSaver)
0118 
0119 ## Both Tracking
0120 #process.p = cms.Path(process.phystrigger*process.RecoForDQM_ALL*process.offlinePrimaryVertices*process.BeamMonitorDQM+process.BeamMonitorDQM_Pixelless+process.dqmSaver)
0121 
0122 ## DQM settings
0123 process.DQMStore.verbose = 0
0124 process.DQM.collectorHost = 'cmslpc15.fnal.gov'
0125 process.DQM.collectorPort = 9190
0126 process.dqmSaver.dirName = '.'
0127 process.dqmSaver.producer = 'Playback'
0128 process.dqmSaver.convention = 'Online'
0129 process.dqmEnv.subSystemFolder = 'BeamMonitor'
0130 process.dqmSaver.saveByRun = 1
0131 process.dqmSaver.saveAtJobEnd = True
0132 
0133 ## summary
0134 process.options = cms.untracked.PSet(
0135     wantSummary = cms.untracked.bool(True)
0136     )
0137