Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:10:51

0001 from __future__ import print_function
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 from Configuration.Eras.Era_Run2_2018_pp_on_AA_cff import Run2_2018_pp_on_AA
0005 process = cms.Process("MUTRKDQM", Run2_2018_pp_on_AA)
0006 
0007 
0008 
0009 # Input source
0010 process.source = cms.Source("PoolSource",
0011     fileNames = cms.untracked.vstring('root://cmsxrootd.fnal.gov///store/data/Commissioning2018/Cosmics/RAW/v1/000/308/409/00000/8806755C-FC04-E811-9EAC-02163E0137B4.root'),
0012 #file:/eos/cms/store/express/Commissioning2019/ExpressCosmics/FEVT/Express-v1/000/331/571/00000/35501AC0-29E7-EA4C-AC1C-194D9B2F12D9.root'),
0013     secondaryFileNames = cms.untracked.vstring()
0014 )
0015 
0016     
0017 
0018 #----------------------------
0019 #### DQM Environment
0020 #----------------------------
0021 
0022 process.load("DQMServices.Components.DQMEnvironment_cfi")
0023 
0024 process.load("DQM.Integration.config.environment_cfi")
0025 
0026 #----------------------------
0027 # DQM Live Environment
0028 #-----------------------------
0029 
0030 dqmRunConfigDefaults = {
0031     'userarea': cms.PSet(
0032         type = cms.untracked.string("userarea"),
0033         collectorPort = cms.untracked.int32(9190),
0034         collectorHost = cms.untracked.string('lxplus748'),
0035     ),
0036 }
0037 
0038 
0039 dqmRunConfigType = "userarea"
0040 dqmRunConfig = dqmRunConfigDefaults[dqmRunConfigType]
0041 
0042 
0043 process.load("DQMServices.Core.DQMStore_cfi")
0044 
0045 process.DQM = cms.Service("DQM",
0046                   debug = cms.untracked.bool(False),
0047                   publishFrequency = cms.untracked.double(5.0),
0048                   collectorPort = dqmRunConfig.collectorPort,
0049                   collectorHost = dqmRunConfig.collectorHost,
0050                   filter = cms.untracked.string(''),
0051 )
0052 
0053 process.DQMMonitoringService = cms.Service("DQMMonitoringService")
0054 
0055 process.load("DQMServices.Components.DQMEventInfo_cfi")
0056 process.load("DQMServices.FileIO.DQMFileSaverOnline_cfi")
0057 
0058 
0059 #upload should be either a directory or a symlink for dqm gui destination
0060 process.dqmSaver.path = "." 
0061 process.dqmSaver.producer = 'MUTRKDQM'
0062 process.dqmSaver.backupLumiCount = 15
0063 
0064 TAG = "Muons"
0065 process.dqmEnv.subSystemFolder =TAG
0066 process.dqmSaver.tag = TAG 
0067 
0068 
0069 
0070 # Imports
0071 
0072 #-------------------------------------------------                             
0073 # GEOMETRY                                                                    
0074 #-------------------------------------------------  
0075 
0076 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0077 
0078 #-----------------------------                                                  
0079 # Magnetic Field                                                                
0080 #-----------------------------  
0081 
0082 process.load("Configuration.StandardSequences.MagneticField_cff")
0083 
0084 #-----------------------------                                                  
0085 # Cosmics muon reco sequence                                                    
0086 #-----------------------------  
0087 
0088 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0089 process.load("Configuration.StandardSequences.ReconstructionCosmics_cff")
0090 process.load("L1Trigger.Configuration.L1TRawToDigi_cff") 
0091 
0092 #-------------------------------------------------                             
0093 # GLOBALTAG                                                                    
0094 #-------------------------------------------------                              
0095 # Condition for P5 cluster                          
0096 
0097 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0098 from Configuration.AlCa.GlobalTag import GlobalTag as gtCustomise
0099 process.GlobalTag = gtCustomise(process.GlobalTag, 'auto:run2_data', '')
0100 
0101 
0102 # message logger
0103 process.MessageLogger = cms.Service("MessageLogger",
0104     cerr = cms.untracked.PSet(
0105         enable = cms.untracked.bool(False)
0106     ),
0107     cout = cms.untracked.PSet(
0108         enable = cms.untracked.bool(True),
0109         threshold = cms.untracked.string('DEBUG')
0110     )
0111 )
0112 
0113 process.dqmmodules = cms.Sequence(process.dqmEnv + process.dqmSaver)
0114 
0115 
0116 process.maxEvents = cms.untracked.PSet(
0117     input = cms.untracked.int32(100)
0118 )
0119 
0120 
0121 # output module
0122 #
0123 process.load("Configuration.EventContent.EventContentCosmics_cff")
0124 
0125 process.RECOoutput = cms.OutputModule("PoolOutputModule",
0126                                       outputCommands = process.RecoMuonRECO.outputCommands,                                                                                 fileName = cms.untracked.string('promptrecoCosmics.root') 
0127                                   )
0128 
0129 process.output = cms.EndPath(process.RECOoutput)
0130 
0131 
0132 
0133 #------------------------------------                                                                                                      
0134 # Cosmic muons reconstruction modules
0135 #------------------------------------
0136 
0137 #1 RAW-TO-DIGI 
0138 
0139 process.muRawToDigi = cms.Sequence(process.L1TRawToDigi +
0140                                    process.muonCSCDigis +
0141                                    process.muonDTDigis +
0142                                    process.muonRPCDigis +
0143                                    process.muonGEMDigis)
0144                                    
0145 
0146 #2 LOCAL RECO
0147 from RecoLocalMuon.Configuration.RecoLocalMuonCosmics_cff import *
0148 from RecoLocalMuon.RPCRecHit.rpcRecHits_cfi import *
0149 
0150 process.dtlocalreco = cms.Sequence(dt1DRecHits*dt4DSegments)
0151 process.csclocalreco = cms.Sequence(csc2DRecHits*cscSegments)
0152 process.muLocalRecoCosmics = cms.Sequence(process.dtlocalreco+process.csclocalreco+process.rpcRecHits)
0153 
0154 
0155 #3 STA RECO 
0156 
0157 from RecoMuon.MuonSeedGenerator.CosmicMuonSeedProducer_cfi import *
0158 from RecoMuon.CosmicMuonProducer.cosmicMuons_cff import *
0159 
0160 ##Reco Beam Spot from DB 
0161 from RecoVertex.BeamSpotProducer.BeamSpotFakeParameters_cfi import *
0162 process.beamspot = cms.EDAnalyzer("BeamSpotFromDB")
0163 process.offlineBeamSpot = cms.EDProducer("BeamSpotProducer")
0164 process.beampath = cms.Sequence(process.beamspot+process.offlineBeamSpot)
0165 
0166 process.muSTAreco = cms.Sequence(process.CosmicMuonSeed*cosmicMuons)
0167 
0168 
0169 #--------------------------
0170 # Filters
0171 #--------------------------
0172 # HLT Filter
0173 # 0=random, 1=physics, 2=calibration, 3=technical
0174 process.hltTriggerTypeFilter = cms.EDFilter("HLTTriggerTypeFilter",
0175     SelectedTriggerType = cms.int32(1)
0176 )
0177 
0178 
0179 # HLT trigger selection (HLT_ZeroBias)
0180 # modified for 0 Tesla HLT menu (no ZeroBias_*)
0181 process.load('HLTrigger.HLTfilters.hltHighLevel_cfi')
0182 process.hltHighLevel.HLTPaths = cms.vstring('HLT*Mu*','HLT_*Physics*')
0183 process.hltHighLevel.andOr = cms.bool(True)
0184 process.hltHighLevel.throw =  cms.bool(False)
0185 
0186 #-----------------------------                                                                                                                  
0187 # DQM monitor modules
0188 #----------------------------- 
0189 
0190 process.load("DQM.MuonMonitor.muonCosmicAnalyzer_cff")
0191 process.muonDQM = cms.Sequence(process.muonCosmicAnalyzer)
0192 
0193 
0194 #--------------------------
0195 # Scheduling
0196 #--------------------------
0197 
0198 process.allReco = cms.Sequence(process.muRawToDigi*process.muLocalRecoCosmics*process.beampath*process.muSTAreco)
0199 
0200 process.allDQM = cms.Sequence(process.muonDQM*process.dqmEnv*process.dqmSaver)
0201 
0202 
0203 process.allPaths = cms.Path(process.hltHighLevel * process.hltTriggerTypeFilter * process.allReco * process.allDQM)
0204 
0205 
0206 from DQM.Integration.config.online_customizations_cfi import *
0207 
0208 process = customise(process)
0209 
0210 
0211 #--------------------------
0212 # Service
0213 #--------------------------
0214 process.AdaptorConfig = cms.Service("AdaptorConfig")