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.maxEvents = cms.untracked.PSet(
0009     input = cms.untracked.int32(-1)
0010 )
0011 
0012 process.source = cms.Source("NewEventStreamFileReader",
0013     fileNames = cms.untracked.vstring(
0014 
0015 'file:/lookarea_SM/Data.00130792.0001.Express.storageManager.00.0000.dat',
0016 'file:/lookarea_SM/Data.00130792.0021.Express.storageManager.01.0000.dat',
0017 'file:/lookarea_SM/Data.00130792.0041.Express.storageManager.02.0000.dat',
0018 'file:/lookarea_SM/Data.00130792.0061.Express.storageManager.03.0000.dat',
0019 'file:/lookarea_SM/Data.00130792.0081.Express.storageManager.04.0000.dat',
0020 'file:/lookarea_SM/Data.00130792.0101.Express.storageManager.05.0000.dat'
0021 
0022     )
0023 )
0024 #process.NewEventStreamFileReader.SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('HLT_MinBiasBSC','HLT_L1_BSC'))
0025 
0026 #--------------------------
0027 # Filters
0028 #--------------------------
0029 # HLT Filter
0030 process.load("HLTrigger.special.HLTTriggerTypeFilter_cfi")
0031 # 0=random, 1=physics, 2=calibration, 3=technical
0032 process.hltTriggerTypeFilter.SelectedTriggerType = 1
0033 
0034 # L1 Trigger Bit Selection (bit 40 and 41 for BSC trigger)
0035 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
0036 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
0037 process.hltLevel1GTSeed.L1TechTriggerSeeding = cms.bool(True)
0038 process.hltLevel1GTSeed.L1SeedsLogicalExpression = cms.string('40 OR 41')
0039 
0040 #----------------------------
0041 # DQM Live Environment
0042 #-----------------------------
0043 process.load("DQM.Integration.test.environment_cfi")
0044 process.dqmEnv.subSystemFolder = 'BeamMonitor'
0045 
0046 import DQMServices.Components.DQMEnvironment_cfi
0047 process.dqmEnvPixelLess = DQMServices.Components.DQMEnvironment_cfi.dqmEnv.clone()
0048 process.dqmEnvPixelLess.subSystemFolder = 'BeamMonitor_PixelLess'
0049 
0050 #----------------------------
0051 # BeamMonitor
0052 #-----------------------------
0053 process.load("DQM.BeamMonitor.BeamMonitor_cff")
0054 #process.load("DQM.BeamMonitor.BeamMonitor_Cosmics_cff")
0055 process.load("DQM.BeamMonitor.BeamMonitor_PixelLess_cff")
0056 process.load("DQM.BeamMonitor.BeamConditionsMonitor_cff")
0057 
0058 ####  SETUP TRACKING RECONSTRUCTION ####
0059 
0060 #-------------------------------------------------
0061 # GEOMETRY
0062 #-------------------------------------------------
0063 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0064 
0065 #-----------------------------
0066 # Magnetic Field
0067 #-----------------------------
0068 #process.load('Configuration/StandardSequences/MagneticField_38T_cff')
0069 process.load('Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff')
0070 
0071 #--------------------------
0072 # Calibration
0073 #--------------------------
0074 process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
0075 
0076 #-----------------------
0077 #  Reconstruction Modules
0078 #-----------------------
0079 ## Collision Reconstruction
0080 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0081 process.load("Configuration.StandardSequences.Reconstruction_cff")
0082 
0083 ## Cosmic Track Reconstruction
0084 process.load("RecoTracker.Configuration.RecoTrackerP5_cff")
0085 
0086 ## Pixelless Tracking
0087 process.load('RecoTracker/Configuration/RecoTrackerNotStandard_cff')
0088 process.MeasurementTracker.pixelClusterProducer = cms.string("")
0089 
0090 # Offline Beam Spot
0091 process.load("RecoVertex.BeamSpotProducer.BeamSpot_cff")
0092 
0093 ## Offline PrimaryVertices
0094 import RecoVertex.PrimaryVertexProducer.OfflinePrimaryVertices_cfi
0095 process.offlinePrimaryVertices = RecoVertex.PrimaryVertexProducer.OfflinePrimaryVertices_cfi.offlinePrimaryVertices.clone()
0096 ## Input track for PrimaryVertex reconstruction, uncomment the following line to use pixelLess tracks
0097 #process.offlinePrimaryVertices.TrackLabel = cms.InputTag("ctfPixelLess")
0098 
0099 #### END OF TRACKING RECONSTRUCTION ####
0100 
0101 # Change Beam Monitor variables
0102 process.dqmBeamMonitor.Debug = True
0103 process.dqmBeamMonitor.BeamFitter.Debug = True
0104 process.dqmBeamMonitor_pixelless.Debug = True
0105 process.dqmBeamMonitor_pixelless.BeamFitter.Debug = True
0106 process.dqmBeamMonitor.BeamFitter.WriteAscii = True
0107 process.dqmBeamMonitor.BeamFitter.AsciiFileName = '/nfshome0/yumiceva/BeamMonitorDQM/BeamFitResults.txt'
0108 process.dqmBeamMonitor.BeamFitter.WriteDIPAscii = True
0109 process.dqmBeamMonitor.BeamFitter.DIPFileName = '/nfshome0/yumiceva/BeamMonitorDQM/BeamFitResults.txt'
0110 #process.dqmBeamMonitor.BeamFitter.SaveFitResults = True
0111 process.dqmBeamMonitor.BeamFitter.OutputFileName = '/nfshome0/yumiceva/BeamMonitorDQM/BeamFitResults.root'
0112 
0113 #--------------------------
0114 # Scheduling
0115 #--------------------------
0116 process.phystrigger = cms.Sequence(process.hltTriggerTypeFilter*process.gtDigis*process.hltLevel1GTSeed)
0117 process.tracking = cms.Sequence(process.siPixelDigis*process.siStripDigis*process.trackerlocalreco*process.offlineBeamSpot*process.recopixelvertexing*process.ckftracks)
0118 process.monitor = cms.Sequence(process.dqmBeamMonitor*process.dqmEnv)
0119 process.tracking_pixelless = cms.Sequence(process.siPixelDigis*process.siStripDigis*process.trackerlocalreco*process.offlineBeamSpot*process.ctfTracksPixelLess)
0120 process.monitor_pixelless = cms.Sequence(process.dqmBeamMonitor_pixelless*process.dqmEnvPixelLess)
0121 ## Cosmic just for testing DQM
0122 process.tracking_cosmic = cms.Sequence(process.siPixelDigis*process.siStripDigis*process.trackerlocalreco*process.offlineBeamSpot*process.ctftracksP5)
0123 
0124 ## Cosmic
0125 process.monitor_cosmic = cms.Sequence(process.dqmBeamMonitor*process.dqmEnv)
0126 #process.offlinePrimaryVertices.TrackLabel = cms.InputTag("ctfWithMaterialTracksP5")
0127 
0128 ##FirstStep
0129 process.tracking_FirstStep = cms.Sequence(process.siPixelDigis*process.siStripDigis*process.trackerlocalreco*process.offlineBeamSpot*process.recopixelvertexing*process.firstStep)
0130 process.dqmBeamMonitor.BeamFitter.TrackCollection = cms.untracked.InputTag('firstStepTracksWithQuality')
0131 process.offlinePrimaryVertices.TrackLabel = cms.InputTag("firstStepTracksWithQuality")
0132 
0133 ## Change FirstStep default values
0134 # Step 0
0135 process.newSeedFromTriplets.RegionFactoryPSet.RegionPSet.ptMin = 1.2 ## default : 0.8
0136 process.newTrajectoryFilter.filterPset.minPt = 1.0 ## default : 0.6
0137 # Step 1
0138 process.newSeedFromPairs.RegionFactoryPSet.RegionPSet.ptMin = 1.2 ## default : 0.9
0139 process.stepOneTrajectoryFilter.filterPset.minPt = 1.0 ## default : 0.5
0140 
0141 process.p = cms.Path(process.gtDigis*process.tracking_FirstStep*process.offlinePrimaryVertices*process.monitor*process.dqmSaver)
0142 #process.p = cms.Path(process.tracking_cosmic*process.offlinePrimaryVertices*process.monitor_cosmic*process.dqmSaver)
0143 #process.p = cms.Path(process.tracking*process.offlinePrimaryVertices*process.monitor*process.dqmSaver)
0144 #process.p = cms.Path(process.phystrigger*process.tracking*process.offlinePrimaryVertices*process.monitor*process.dqmSaver)
0145 #process.p = cms.Path(process.phystrigger*process.tracking_pixelless*process.offlinePrimaryVertices*process.monitor_pixelless*process.dqmSaver)
0146 # For test
0147 process.dqmSaver.dirName = '.'
0148 #process.p = cms.Path(process.tracking*process.offlinePrimaryVertices*process.monitor*process.dqmSaver)
0149 
0150 ## summary
0151 #process.options = cms.untracked.PSet(
0152 #    wantSummary = cms.untracked.bool(True)
0153 #    )
0154 
0155