Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:29:38

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("DQM.SiStripCommon.TkHistoMap_cff")
0026 # load TrackerTopology (needed for TkDetMap and TkHistoMap)
0027 process.load("Configuration.Geometry.GeometryExtended2017_cff")
0028 process.load("Geometry.TrackerGeometryBuilder.trackerParameters_cfi")
0029 process.trackerTopology = cms.ESProducer("TrackerTopologyEP")
0030 
0031 process.load("CondCore.CondDB.CondDB_cfi")
0032 process.tkVoltageMap = cms.EDAnalyzer( "SiStripDetVOffTkMapPlotter",
0033                                      process.CondDB,
0034 #                                      conditionDatabase = cms.string("frontier://FrontierProd/CMS_CONDITIONS"),
0035                                      conditionDatabase = cms.string("oracle://cms_orcoff_prep/CMS_CONDITIONS"),
0036                                      # Add the tag for plotting
0037                                      Tag = cms.string("SiStripDetVOff_test_1hr_prompt"),
0038                                      # Set the IOV to plot. Set to 0 if want to use a time string.
0039                                      IOV = cms.untracked.uint64(0),
0040                                      # Time format: "2002-01-20 23:59:59.000" (UTC). Setting IOV=0 and Time="" will get the last IOV.
0041                                      Time = cms.untracked.string("2016-03-20 00:00:00.000"),
0042                                      # Set the name of the output root file. Leave empty if do not want to save plots in a root file.
0043                                      outputFile = cms.untracked.string("tkMap.root")
0044                                      )
0045 
0046 process.p = cms.Path(process.tkVoltageMap)