Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-20 22:54:27

0001 ########## Configuration ##########

0002 # if set to True, a file with logs will be produced.

0003 produce_logs = False
0004 
0005 # Source max processed events

0006 max_events = 1000000
0007 ###################################

0008 
0009 import FWCore.ParameterSet.Config as cms
0010 
0011 from input_files_reference_cff import input_files
0012 
0013 process = cms.Process('referenceDistributions')
0014 
0015 process.load('FWCore.MessageService.MessageLogger_cfi')
0016 process.load("CalibPPS.AlignmentGlobal.ppsAlignmentWorker_cfi")
0017 process.load("DQMServices.Core.DQMStore_cfi")
0018 
0019 # Message Logger

0020 if produce_logs:
0021     process.MessageLogger = cms.Service("MessageLogger",
0022         destinations = cms.untracked.vstring('run_distributions', 
0023                                             'cout'
0024                                             ),
0025         run_distributions = cms.untracked.PSet(
0026             threshold = cms.untracked.string("INFO")
0027         ),
0028         cout = cms.untracked.PSet(
0029             threshold = cms.untracked.string('WARNING')
0030         )
0031     )
0032 else:
0033     process.MessageLogger = cms.Service("MessageLogger",
0034         destinations = cms.untracked.vstring('cout'),
0035         cout = cms.untracked.PSet(
0036             threshold = cms.untracked.string('WARNING')
0037         )
0038     )
0039 
0040 # Source

0041 process.source = cms.Source("PoolSource",
0042     fileNames = input_files
0043 )
0044 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(max_events))
0045 
0046 # Event Setup

0047 from config_reference_cff import ppsAlignmentConfigESSource
0048 process.ppsAlignmentConfigESSource = ppsAlignmentConfigESSource
0049 
0050 # load DQM framework

0051 process.load("DQM.Integration.config.environment_cfi")
0052 process.dqmEnv.subSystemFolder = "CalibPPS"
0053 process.dqmSaver.path = ""
0054 process.dqmSaver.tag = "CalibPPS"
0055 
0056 # Worker config label (for ES product label)

0057 process.ppsAlignmentWorker.label = cms.string("reference")
0058 
0059 process.path = cms.Path(
0060     process.ppsAlignmentWorker
0061 )
0062 
0063 process.end_path = cms.EndPath(
0064     process.dqmSaver
0065 )
0066 
0067 process.schedule = cms.Schedule(
0068     process.path,
0069     process.end_path
0070 )