Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101

# This configuration tests the lumisToProcess and eventsToSkip
# parameters of the PoolSource.

import FWCore.ParameterSet.Config as cms

process = cms.Process("MERGE")
process.MessageLogger.cerr.FwkReport.reportEvery = 1000
process.MessageLogger.cerr.threshold = 'ERROR'

import FWCore.Framework.test.cmsExceptionsFatalOption_cff
process.options = cms.untracked.PSet(
  Rethrow = FWCore.Framework.test.cmsExceptionsFatalOption_cff.Rethrow
)

from IOPool.Input.modules import PoolSource
process.source = PoolSource(
    fileNames = [
        'file:testRunMerge1.root', 
        'file:testRunMerge2.root', 
        'file:testRunMerge3.root',
        'file:testRunMerge4.root',
        'file:testRunMerge5.root'
    ]
    , lumisToProcess = [
        '11:2',
        '15:2-15:8',
        '19:2-20:2',
        '21:4'
    ]
    , eventsToSkip = [
        '19:4:6-19:4:8',
        '21:3:8'
    ]
    , duplicateCheckMode = 'checkEachRealDataFile'
)

from FWCore.Integration.modules import ThingWithMergeProducer
process.thingWithMergeProducer = ThingWithMergeProducer()

from FWCore.Framework.modules import RunLumiEventAnalyzer
process.test = RunLumiEventAnalyzer(
    verbose = True,
    expectedRunLumiEvents = [
11, 0, 0,
11, 2, 0,
11, 2, 1,
11, 2, 2,
11, 2, 3,
11, 2, 0,
11, 0, 0,
15, 0, 0,
15, 2, 0,
15, 2, 1,
15, 2, 2,
15, 2, 3,
15, 2, 0,
15, 3, 0,
15, 3, 4,
15, 3, 5,
15, 3, 6,
15, 3, 0,
15, 4, 0,
15, 4, 7,
15, 4, 8,
15, 4, 9,
15, 4, 0,
15, 0, 0,
19, 0, 0,
19, 2, 0,
19, 2, 1,
19, 2, 2,
19, 2, 3,
19, 2, 0,
19, 3, 0,
19, 3, 4,
19, 3, 5,
19, 3, 6,
19, 3, 0,
19, 4, 0,
19, 4, 9,
19, 4, 0,
19, 0, 0,
20, 0, 0,
20, 2, 0,
20, 2, 1,
20, 2, 2,
20, 2, 3,
20, 2, 0,
20, 0, 0,
21, 0, 0,
21, 4, 0,
21, 4, 7,
21, 4, 8,
21, 4, 9,
21, 4, 0,
21, 0, 0
]
)

process.path1 = cms.Path(process.thingWithMergeProducer + process.test)