Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 import os
0003 
0004 process = cms.Process("plot")
0005 
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 process.maxEvents = cms.untracked.PSet(
0018     input = cms.untracked.int32(1)
0019 )
0020 process.source = cms.Source("EmptySource",
0021     numberEventsInRun = cms.untracked.uint32(1),
0022     firstRun = cms.untracked.uint32(1)
0023 )
0024 
0025 process.load('Configuration.Geometry.GeometryExtended2018_cff')
0026 
0027 process.load("CondCore.CondDB.CondDB_cfi")
0028 process.tkVoltageTrend = cms.EDAnalyzer( "SiStripDetVOffTrendPlotter",
0029                                      process.CondDB,
0030                                      conditionDatabase = cms.string("frontier://FrontierProd/CMS_CONDITIONS"),
0031 #                                     conditionDatabase = cms.string("oracle://cms_orcoff_prep/CMS_CONDITIONS"),
0032                                      # Add the tags for plotting
0033                                      plotTags = cms.vstring("SiStripDetVOff_1hourDelay_v1_Validation", "SiStripDetVOff_13hourDelay_v1_Validation", "SiStripDetVOff_v7_prompt"),
0034                                      # Set the time interval for the plots, e.g., put 48 if you want to plot the trend in the last 48 hours.
0035                                      # Set timeInterval to non-positive values if you want to put start and end time by hand.
0036                                      timeInterval = cms.int32(72),
0037                                      # Start and end time for plotting. Only used if timeInterval is non-positive.
0038                                      # Time format: "2002-01-20 23:59:59.000" (UTC).
0039                                      startTime = cms.untracked.string("2016-01-01 00:00:00.000"),
0040                                      endTime   = cms.untracked.string("2016-01-02 00:00:00.000"),
0041                                      # Set the name of the output plot files. Will use the timestamps if left empty.
0042                                      outputPlot = cms.untracked.string("last.png"),
0043                                      # Set output root file name. Leave empty if do not want to save plots in a root file.
0044                                      outputRootFile = cms.untracked.string(""),
0045                                      # Set output CSV file name. Leave empty if do not want to dump HV/LV counts in a CSV file.
0046                                      outputCSV = cms.untracked.string("last.csv")
0047                                      )
0048 
0049 process.p = cms.Path(process.tkVoltageTrend)