Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-23 02:29:41

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 process = cms.Process("BeamSpotDipServer")
0014 process.load("DQMServices.Core.DQM_cfg")
0015 
0016 # message logger
0017 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0018 process.MessageLogger.cerr = cms.untracked.PSet(
0019     threshold = cms.untracked.string('INFO'),
0020     default = cms.untracked.PSet(
0021        limit = cms.untracked.int32(1000)
0022     ),
0023     BeamSpotDipServer = cms.untracked.PSet(
0024         limit = cms.untracked.int32(1000)
0025     )
0026 )
0027 
0028 # source
0029 process.source = cms.Source("PoolSource",
0030   fileNames=cms.untracked.vstring(
0031     'file:/tmp/sikler/b.root' # lxplus7101
0032   )
0033 )
0034 
0035 process.maxEvents = cms.untracked.PSet(
0036   input = cms.untracked.int32(100)
0037 )
0038 
0039 # beamspot from database
0040 process.load("CondCore.CondDB.CondDB_cfi") 
0041 
0042 process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
0043 
0044 process.GlobalTag.toGet = cms.VPSet(
0045   cms.PSet(
0046     record = cms.string("BeamSpotOnlineLegacyObjectsRcd"),
0047     refreshTime = cms.uint64(1)
0048   ),
0049 )
0050 
0051 # module
0052 process.load("DQM.BeamMonitor.BeamSpotDipServer_cff")
0053 
0054 process.beamSpotDipServer.verbose = True
0055 process.beamSpotDipServer.testing = True
0056 
0057 process.beamSpotDipServer.readFromNFS = True
0058 process.beamSpotDipServer.sourceFile  = "../../../../../BeamFitResults.txt"
0059 process.beamSpotDipServer.sourceFile1 = "../../../../../TkStatus.txt"
0060 
0061 # process customizations
0062 from DQM.Integration.config.online_customizations_cfi import *
0063 process = customise(process)
0064 
0065 # path
0066 process.p = cms.Path( process.beamSpotDipServer )