Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:59:52

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("Demo")
0004 
0005 process.load("FWCore.MessageService.MessageLogger_cfi")
0006 process.MessageLogger = cms.Service("MessageLogger",
0007     cerr = cms.untracked.PSet(
0008         enable = cms.untracked.bool(False)
0009     ),
0010     cout = cms.untracked.PSet(
0011         enable = cms.untracked.bool(True),
0012         threshold = cms.untracked.string('DEBUG')
0013     ),
0014     debugModules = cms.untracked.vstring('*')
0015 )
0016 
0017 # How to use the EmptyIOVSource:
0018 # the EmptyIOVSource will generate N events with a given interval.
0019 # the N events must be specified in the maxEvents as usual but the
0020 # first value, last value, timetype (runnumber, timestamp or lumiid) must be specified
0021 # in the EmptyIOVSource configuration block. It will then generate events with the given
0022 # interval.
0023 # To generate one event per run in a given range of runs you should then use:
0024 # - first - last value as the run range
0025 # - interval == 1 (means move of one run unit at a time)
0026 # - maxEvents = lastValue - firstValue (so that there is one event per run
0027 # otherwise it will stop before completing the range or it will go beyond (to infinity).
0028 
0029 process.maxEvents = cms.untracked.PSet(
0030     input = cms.untracked.int32(5)
0031 )
0032 process.source = cms.Source("EmptyIOVSource",
0033     timetype   = cms.string('runnumber'),
0034     firstValue = cms.uint64(97),
0035     lastValue  = cms.uint64(102),
0036     interval = cms.uint64(1)
0037 )
0038 
0039 #process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0040 #
0041 #process.source = cms.Source("PoolSource",
0042 #    # replace 'myfile.root' with the source file you want to use
0043 #    fileNames = cms.untracked.vstring(
0044 #        'file:myfile.root'
0045 #    )
0046 #)
0047 
0048 process.load("CalibTracker.SiStripESProducers.fake.Phase2TrackerConfigurableCablingESSource_cfi")
0049 
0050 process.demo = cms.EDAnalyzer('CheckPhase2Cabling')
0051 
0052 process.p = cms.Path(process.demo)