process = cms.Process("TESTHARV")

folder = "TestFolder/"

process.load('Configuration.StandardSequences.EDMtoMEAtRunEnd_cff')
process.load("DQMServices.Components.DQMFileSaver_cfi")

# Input source
process.source = cms.Source("PoolSource",
                            secondaryFileNames = cms.untracked.vstring(),
                            fileNames = cms.untracked.vstring('file:dqm_file1_oldf.root',
                                                              'file:dqm_file2_oldf.root'),
                            processingMode = cms.untracked.string('RunsAndLumis')
)

elements = c.createElements()

process.harvester = cms.EDAnalyzer("DummyHarvestingClient",
                                   folder   = cms.untracked.string(folder),
                                   elements = cms.untracked.VPSet(*elements),
                                   cumulateRuns = cms.untracked.bool(False),
                                   cumulateLumis = cms.untracked.bool(True))

process.eff = cms.EDAnalyzer("DQMGenericClient",
                             efficiency = cms.vstring("eff1 \'Eff1\' Bar0 Bar1"),
                             resolution = cms.vstring(),
                             subDirs = cms.untracked.vstring(folder))

process.dqmSaver.workflow = cms.untracked.string("/Test/File1_File2_oldf/DQM")
process.dqmSaver.saveByLumiSection = cms.untracked.int32(1)
process.dqmSaver.saveByRun = cms.untracked.int32(1)
Exemplo n.º 2
0
b = booking.BookingParams(sys.argv)
b.doCheck(testOnly=False)

process.load('Configuration.EventContent.EventContent_cff')
process.load('Configuration.StandardSequences.EndOfProcess_cff')

process.source = cms.Source(
    "EmptySource",
    numberEventsInRun=cms.untracked.uint32(100),
    firstLuminosityBlock=cms.untracked.uint32(1),
    firstEvent=cms.untracked.uint32(1),
    firstRun=cms.untracked.uint32(2),
    numberEventsInLuminosityBlock=cms.untracked.uint32(1))

elements = c.createElements()

process.filler = cms.EDAnalyzer(
    "DummyBookFillDQMStore",
    folder=cms.untracked.string("TestFolder/"),
    elements=cms.untracked.VPSet(*elements),
    fillRuns=cms.untracked.bool(True),
    fillLumis=cms.untracked.bool(True),
    book_at_constructor=cms.untracked.bool(b.getBookLogic('CTOR')),
    book_at_beginJob=cms.untracked.bool(b.getBookLogic('BJ')),
    book_at_beginRun=cms.untracked.bool(b.getBookLogic('BR')))

process.out = cms.OutputModule(
    "PoolOutputModule",
    splitLevel=cms.untracked.int32(0),
    outputCommands=process.DQMEventContent.outputCommands,