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 # Path for a ROOT file with the histograms

0006 output_distributions = 'dqm_run_distributions_test.root'
0007 ###################################

0008 
0009 import FWCore.ParameterSet.Config as cms
0010 
0011 from input_files_cff import input_files
0012 
0013 process = cms.Process('testDistributions')
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(-1))
0045 
0046 # Event Setup

0047 from config_cff import ppsAlignmentConfigESSource
0048 process.ppsAlignmentConfigESSource = ppsAlignmentConfigESSource
0049 
0050 # Output for the histograms

0051 process.dqmOutput = cms.OutputModule("DQMRootOutputModule",
0052     fileName = cms.untracked.string(output_distributions)
0053 )
0054 
0055 process.path = cms.Path(
0056     process.ppsAlignmentWorker
0057 )
0058 
0059 process.end_path = cms.EndPath(
0060     process.dqmOutput
0061 )
0062 
0063 process.schedule = cms.Schedule(
0064     process.path,
0065     process.end_path
0066 )