Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 
0004 from Configuration.Eras.Era_Run2_2017_cff import Run2_2017
0005 process = cms.Process('PIXELDQMDEV',Run2_2017)
0006 
0007 process.MessageLogger = cms.Service("MessageLogger",
0008     debugModules = cms.untracked.vstring( 
0009                                          ),
0010     cout = cms.untracked.PSet(threshold = cms.untracked.string('ERROR')),
0011     destinations = cms.untracked.vstring('cout')
0012 )
0013 
0014 #----------------------------
0015 # Event Source
0016 #-----------------------------
0017 process.maxEvents = cms.untracked.PSet(
0018     input = cms.untracked.int32(-1)
0019 )
0020 
0021 # Input source
0022 # dataset /RelValMinBias_13/CMSSW_8_1_0_pre16-81X_upgrade2017_realistic_v22-v1/GEN-SIM-DIGI-RAW
0023 readFiles = cms.untracked.vstring()
0024 secFiles = cms.untracked.vstring() 
0025 process.source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
0026 readFiles.extend( [
0027 '/store/relval/CMSSW_8_1_0/RelValMinBias_13/GEN-SIM-DIGI-RAW/81X_upgrade2017_realistic_v26-v1/10000/02C9F429-AABA-E611-9AB8-0CC47A4D760A.root',
0028 '/store/relval/CMSSW_8_1_0/RelValMinBias_13/GEN-SIM-DIGI-RAW/81X_upgrade2017_realistic_v26-v1/10000/08ED9E2E-A4BA-E611-B1F0-0CC47A4D764C.root',
0029 '/store/relval/CMSSW_8_1_0/RelValMinBias_13/GEN-SIM-DIGI-RAW/81X_upgrade2017_realistic_v26-v1/10000/0A5CA0B2-A3BA-E611-8B9D-0CC47A7C345E.root',
0030 '/store/relval/CMSSW_8_1_0/RelValMinBias_13/GEN-SIM-DIGI-RAW/81X_upgrade2017_realistic_v26-v1/10000/22965EB6-A3BA-E611-A927-0025905A6092.root',
0031 '/store/relval/CMSSW_8_1_0/RelValMinBias_13/GEN-SIM-DIGI-RAW/81X_upgrade2017_realistic_v26-v1/10000/38BF2B36-A4BA-E611-85DE-0025905A60E4.root',
0032 '/store/relval/CMSSW_8_1_0/RelValMinBias_13/GEN-SIM-DIGI-RAW/81X_upgrade2017_realistic_v26-v1/10000/40C5B389-A6BA-E611-87D9-0025905A60A0.root',
0033 '/store/relval/CMSSW_8_1_0/RelValMinBias_13/GEN-SIM-DIGI-RAW/81X_upgrade2017_realistic_v26-v1/10000/4435E7D5-A3BA-E611-AE74-0CC47A4D76AC.root',
0034 '/store/relval/CMSSW_8_1_0/RelValMinBias_13/GEN-SIM-DIGI-RAW/81X_upgrade2017_realistic_v26-v1/10000/607BCDDD-A3BA-E611-A21E-0025905B858A.root',
0035 '/store/relval/CMSSW_8_1_0/RelValMinBias_13/GEN-SIM-DIGI-RAW/81X_upgrade2017_realistic_v26-v1/10000/6645C8D6-A3BA-E611-8749-0CC47A745250.root',
0036 '/store/relval/CMSSW_8_1_0/RelValMinBias_13/GEN-SIM-DIGI-RAW/81X_upgrade2017_realistic_v26-v1/10000/6C16DD35-A4BA-E611-A350-0025905AA9CC.root',
0037 '/store/relval/CMSSW_8_1_0/RelValMinBias_13/GEN-SIM-DIGI-RAW/81X_upgrade2017_realistic_v26-v1/10000/AA91A495-A5BA-E611-865A-0025905A60F8.root',
0038 '/store/relval/CMSSW_8_1_0/RelValMinBias_13/GEN-SIM-DIGI-RAW/81X_upgrade2017_realistic_v26-v1/10000/AE7345B6-A3BA-E611-8F22-0025905A6092.root',
0039 '/store/relval/CMSSW_8_1_0/RelValMinBias_13/GEN-SIM-DIGI-RAW/81X_upgrade2017_realistic_v26-v1/10000/BAE69AD7-A3BA-E611-BBC1-0025905B85B8.root',
0040 '/store/relval/CMSSW_8_1_0/RelValMinBias_13/GEN-SIM-DIGI-RAW/81X_upgrade2017_realistic_v26-v1/10000/C0D32B38-ABBA-E611-8006-0025905A608A.root',
0041 '/store/relval/CMSSW_8_1_0/RelValMinBias_13/GEN-SIM-DIGI-RAW/81X_upgrade2017_realistic_v26-v1/10000/C68CF5BB-A3BA-E611-8AD9-0025905A60E4.root',
0042 '/store/relval/CMSSW_8_1_0/RelValMinBias_13/GEN-SIM-DIGI-RAW/81X_upgrade2017_realistic_v26-v1/10000/CA653743-A3BA-E611-8801-0CC47A7C3404.root',
0043 '/store/relval/CMSSW_8_1_0/RelValMinBias_13/GEN-SIM-DIGI-RAW/81X_upgrade2017_realistic_v26-v1/10000/D4A381EF-AABA-E611-910D-0025905A60E4.root',
0044 '/store/relval/CMSSW_8_1_0/RelValMinBias_13/GEN-SIM-DIGI-RAW/81X_upgrade2017_realistic_v26-v1/10000/DC3FCE9F-AABA-E611-B436-0025905B85BA.root' ] );
0045 
0046 secFiles.extend( [
0047                ] )
0048 
0049 
0050 #----------------------------
0051 # DQM Environment
0052 #-----------------------------
0053 process.load("DQMServices.Components.DQMEnvironment_cfi")
0054 
0055 #----------------------------
0056 # DQM Live Environment
0057 #-----------------------------
0058 dqmRunConfigDefaults = {
0059     'userarea': cms.PSet(
0060         type = cms.untracked.string("userarea"),
0061         collectorPort = cms.untracked.int32(9190),
0062         collectorHost = cms.untracked.string('lxplus064'),
0063     ),
0064 }
0065 
0066 dqmRunConfigType = "userarea"
0067 dqmRunConfig = dqmRunConfigDefaults[dqmRunConfigType]
0068 
0069 process.load("DQMServices.Core.DQMStore_cfi")
0070 
0071 process.DQM = cms.Service("DQM",
0072                   debug = cms.untracked.bool(False),
0073                   publishFrequency = cms.untracked.double(5.0),
0074                   collectorPort = dqmRunConfig.collectorPort,
0075                   collectorHost = dqmRunConfig.collectorHost,
0076                   filter = cms.untracked.string(''),
0077 )
0078 
0079 process.DQMMonitoringService = cms.Service("DQMMonitoringService")
0080 
0081 process.load("DQMServices.Components.DQMEventInfo_cfi")
0082 process.load("DQMServices.FileIO.DQMFileSaverOnline_cfi")
0083 
0084 # upload should be either a directory or a symlink for dqm gui destination
0085 process.dqmSaver.path = "." 
0086 process.dqmSaver.producer = 'DQM'
0087 process.dqmSaver.backupLumiCount = 15
0088 
0089 TAG = "PixelPhase1"
0090 process.dqmEnv.subSystemFolder = TAG
0091 process.dqmSaver.tag = TAG
0092 
0093 #-----------------------------
0094 # Magnetic Field
0095 #-----------------------------
0096 # 3.8T field
0097 process.load('Configuration.StandardSequences.MagneticField_cff')
0098 
0099 #-------------------------------------------------
0100 # GEOMETRY
0101 #-------------------------------------------------
0102 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0103 
0104 #-------------------------------------------------
0105 # GLOBALTAG
0106 #-------------------------------------------------
0107 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0108 from Configuration.AlCa.GlobalTag import GlobalTag
0109 process.GlobalTag = GlobalTag(process.GlobalTag, '90X_upgrade2017_realistic_v0', '')
0110 
0111 #-----------------------
0112 #  Reconstruction Modules
0113 #-----------------------
0114 # Real data raw to digi
0115 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0116 #process.load("EventFilter.SiPixelRawToDigi.SiPixelRawToDigi_cfi")
0117 process.siPixelDigis.IncludeErrors = True
0118 
0119 # Local Reconstruction
0120 #process.load("RecoLocalTracker.SiPixelClusterizer.SiPixelClusterizer_cfi")
0121 
0122 process.load("Configuration.StandardSequences.Reconstruction_cff")
0123 process.load("Configuration.StandardSequences.RawToDigi_cff")
0124 process.load("Configuration.StandardSequences.L1Reco_cff") 
0125 
0126 #-----------------------
0127 #  Phase1 DQM
0128 #-----------------------
0129 
0130 
0131 
0132 # first, we load the global  defaults and overwrite what needs to be changed
0133 from DQM.SiPixelPhase1Common.HistogramManager_cfi import *
0134 DefaultHisto.enabled = True
0135 DefaultHisto.topFolderName = TAG 
0136 
0137 # maximum Lumisection number for trends. This is a hard limit, higher ends up in overflow.
0138 SiPixelPhase1Geometry.max_lumisection = 1000 
0139 # #LS per line in the "overlaid curves"
0140 SiPixelPhase1Geometry.onlineblock = 10 
0141 # number of lines
0142 SiPixelPhase1Geometry.n_onlineblocks = SiPixelPhase1Geometry.max_lumisection.value()/SiPixelPhase1Geometry.onlineblock.value()
0143 
0144 # then, we load the online config. This will overwrite more defaults, and e.g. configure for phase0 real data.
0145 process.load("DQM.SiPixelPhase1Config.SiPixelPhase1OnlineDQM_cff")
0146 process.load("DQM.SiPixelPhase1Config.SiPixelPhase1OfflineDQM_harvesting_cff")
0147 #process.load("RecoLocalTracker.SiPixelClusterizer.SiPixelClusterizer_cfi")
0148 # this also loads the plugins. After that, some values cannot be changed any more, since they were copied around.
0149 
0150 # Now change things back to Phase1 MC
0151 SiPixelPhase1Geometry.upgradePhase = 1
0152 
0153 
0154 #process.load('RecoTracker.Configuration.RecoTracker_cff')
0155 #    
0156 #    #process.newCombinedSeeds.seedCollections = cms.VInputTag(
0157 #    #    cms.InputTag('initialStepSeeds'),
0158 #    #    )
0159 #    
0160 #process.load('RecoTracker.FinalTrackSelectors.MergeTrackCollections_cff')
0161 #
0162 ##import RecoTracker.FinalTrackSelectors.earlyGeneralTracks_cfi
0163 #
0164 #process.load('RecoTracker.FinalTrackSelectors.earlyGeneralTracks_cfi')
0165 #
0166 #
0167 #
0168 #process.earlyGeneralTracks.hasSelector=cms.vint32(1)
0169 #process.earlyGeneralTracks.selectedTrackQuals = cms.VInputTag(
0170 #    #        cms.InputTag("initialStepSelector","initialStep"),
0171 #    cms.InputTag("initialStep"),
0172 #    )
0173 #process.earlyGeneralTracks.setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(0), pQual=cms.bool(True) ) )
0174 #
0175 #process.load("RecoTracker.IterativeTracking.iterativeTk_cff")
0176 #
0177 #process.iterTracking_FirstStep =cms.Sequence(
0178 #    process.InitialStep
0179 #    *process.earlyGeneralTracks
0180 #    )
0181 #
0182 #
0183 ##process.earlyGeneralTracks.TrackProducers = (
0184 ##    cms.InputTag('initialStepTracks'),
0185 ##    )
0186 #
0187 #process.RecoForDQM_LocalReco = cms.Sequence(process.siPixelDigis*process.siStripDigis*process.gtDigis*process.trackerlocalreco)#*process.gtEvmDigis)
0188 #
0189 
0190 #from DQM.SiPixelPhase1TrackResiduals.SiPixelPhase1TrackResiduals_cfi import *
0191 # Clusters ontrack/offtrack (also general tracks)
0192 #from DQM.SiPixelPhase1TrackClusters.SiPixelPhase1TrackClusters_cfi import *
0193 # Hit Efficiencies
0194 #from DQM.SiPixelPhase1TrackEfficiency.SiPixelPhase1TrackEfficiency_cfi import *
0195 
0196 process.siPixelDigis.InputLabel = cms.InputTag("rawDataCollector")
0197 process.SiPixelPhase1DigisAnalyzer.src = "siPixelDigis"
0198 process.SiPixelPhase1RawDataAnalyzer.src = "siPixelDigis"
0199 
0200 #process.RecoForDQM_TrkReco = cms.Sequence(process.offlineBeamSpot*process.MeasurementTrackerEventPreSplitting*process.siPixelClusterShapeCachePreSplitting*process.recopixelvertexing*process.InitialStepPreSplitting)
0201 # All plot configurations should go the the specific config files (for online and offline)
0202 # or to SiPixelPhase1OnlineDQM_cff (if online only). Refer to pixel_up_dqm_sourceclient-live_cfg.py
0203 # to see how things could be overwritten here (works the same in SiPixelPhase1OnlineDQM_cff).
0204 
0205 #--------------------------
0206 # Service
0207 #--------------------------
0208 process.AdaptorConfig = cms.Service("AdaptorConfig")
0209 
0210 #--------------------------
0211 # Scheduling
0212 #--------------------------
0213 process.DQMmodules = cms.Sequence(process.dqmEnv*process.dqmSaver)
0214 
0215 process.p = cms.Path(
0216   process.RawToDigi 
0217   * process.L1Reco 
0218   *    process.reconstruction
0219   #  process.siPixelDigis
0220   #* process.siPixelClusters
0221   * process.DQMmodules
0222   * process.siPixelPhase1OfflineDQM_source
0223   * process.siPixelPhase1OfflineDQM_harvesting
0224   * process.SiPixelPhase1GeometryDebugAnalyzer
0225   * process.SiPixelPhase1GeometryDebugHarvester
0226 )
0227