Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-03-08 02:27:15

0001 from __future__ import print_function
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 # copy log4cplus.properties from >script directory< to >local<
0005 import sys
0006 import os
0007 from shutil import copy
0008 configFile = os.path.dirname(sys.argv[1]) + "/log4cplus.properties"
0009 print("copying " + configFile + " to local")
0010 copy(configFile,".")
0011 
0012 #
0013 from Configuration.Eras.Era_Run3_cff import Run3
0014 process = cms.Process("BeamSpotDipServer", Run3)
0015 process.load("DQMServices.Core.DQM_cfg")
0016 
0017 # message logger
0018 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0019 process.MessageLogger.cerr = cms.untracked.PSet(
0020     threshold = cms.untracked.string('INFO'),
0021     default = cms.untracked.PSet(
0022        limit = cms.untracked.int32(100000)
0023     ),
0024     BeamSpotDipServer = cms.untracked.PSet(
0025         limit = cms.untracked.int32(100000)
0026     )
0027 )
0028 
0029 # input
0030 # for live online DQM in P5
0031 process.load("DQM.Integration.config.inputsource_cfi")
0032 # for testing in lxplus
0033 # process.load("DQM.Integration.config.fileinputsource_cfi")
0034 
0035 # beamspot from database
0036 process.load("CondCore.CondDB.CondDB_cfi")
0037 
0038 process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
0039 
0040 process.GlobalTag.toGet = cms.VPSet(
0041   cms.PSet(
0042     record = cms.string("BeamSpotOnlineLegacyObjectsRcd"),
0043     refreshTime = cms.uint64(1)
0044   ),
0045 )
0046 
0047 # module
0048 process.load("DQM.BeamMonitor.BeamSpotDipServer_cff")
0049 
0050 process.beamSpotDipServer.verbose = cms.untracked.bool(True)
0051 
0052 # process customizations included here
0053 from DQM.Integration.config.online_customizations_cfi import *
0054 process = customise(process)
0055 
0056 # monitoring
0057 process.DQMMonitoringService = cms.Service("DQMMonitoringService")
0058 
0059 # path
0060 process.p = cms.Path( process.beamSpotDipServer )
0061 print("Final Source settings:", process.source)
0062