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
import FWCore.ParameterSet.Config as cms
import os

process = cms.Process("summary")

process.MessageLogger = cms.Service("MessageLogger",
    cerr = cms.untracked.PSet(
        enable = cms.untracked.bool(False)
    ),
    cout = cms.untracked.PSet(
        enable = cms.untracked.bool(True),
        threshold = cms.untracked.string('DEBUG')
    ),
    debugModules = cms.untracked.vstring('*')
)

process.maxEvents = cms.untracked.PSet(
    input = cms.untracked.int32(1)
)
process.source = cms.Source("EmptySource",
    numberEventsInRun = cms.untracked.uint32(1),
    firstRun = cms.untracked.uint32(1)
)

process.load("CondCore.CondDB.CondDB_cfi")
process.load("CalibTracker.SiStripDCS.siStripDetVOffPrinter_cfi")
process.siStripDetVOffPrinter.tagName = "SiStripDetVOff_13hourDelay_v1_Validation"
process.siStripDetVOffPrinter.startTime = "2018.08.09 18:20:00"
process.siStripDetVOffPrinter.endTime   = "2018.08.09 22:14:00"

# process.DetVOffSummary = cms.EDAnalyzer( "SiStripDetVOffPrinter",
#                                          process.CondDB,
#                                          conditionDatabase = cms.string("frontier://FrontierProd/CMS_CONDITIONS"),
#                                          # Add the tag 
#                                          tagName = cms.string("SiStripDetVOff_1hourDelay_v1_Validation"),
#                                          # Start and end time
#                                          # Time format: "2002-01-20 23:59:59.000" (UTC).
#                                          startTime = cms.string("2018.08.09 18:20:00"),
#                                          endTime   = cms.string("2018.08.09 22:14:00"),
#                                          # Set output file name. Leave empty if do not want to dump HV/LV counts in a text file.
#                                          output = cms.string("PerModuleSummary.txt")
#                                          )

process.p = cms.Path(process.siStripDetVOffPrinter)