Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("HVTKMapsCreator")
0004 
0005 process.load("FWCore.MessageService.MessageLogger_cfi")
0006 
0007 process.MessageLogger.files.infos = cms.untracked.PSet(
0008     threshold = cms.untracked.string("INFO"),
0009     default = cms.untracked.PSet(
0010         limit = cms.untracked.int32(10000000)
0011     ),
0012     FwkReport = cms.untracked.PSet(
0013         reportEvery = cms.untracked.int32(10000)
0014     )
0015 )
0016 process.MessageLogger.cerr.threshold = cms.untracked.string("WARNING")
0017 
0018 
0019 process.source = cms.Source("EmptySource",
0020                             firstRun = cms.untracked.uint32(77777),
0021                             numberEventsInRun = cms.untracked.uint32(1)
0022                             )
0023 
0024 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) )
0025 
0026 process.load("DQM.SiStripCommon.TkHistoMap_cff")
0027 # load TrackerTopology (needed for TkDetMap and TkHistoMap)
0028 process.load("Configuration.Geometry.GeometryExtended2017_cff")
0029 process.load("Geometry.TrackerGeometryBuilder.trackerParameters_cfi")
0030 process.trackerTopology = cms.ESProducer("TrackerTopologyEP")
0031 
0032 #This is where we configure the input and output files for the LV/HV TkMaps we want to create
0033 #LV/HVStatusFile is a file that contains a list of all the 15148 Tracker DetIDs and for each of them a number 0=OFF 1=ON
0034 #LV/HVTkMapName is the file name for the png image of the TkMap to be produced
0035 #TODO: could add a parameter for the root file used to store the plot directly... currently root file is being overwritten
0036 process.TkVoltageMapCreator = cms.EDAnalyzer('TkVoltageMapCreator',
0037     LVStatusFile = cms.string("LV_FROM_Thu_Aug__5_21_54_19_2010_TO_Thu_Aug__5_23_01_47_2010.log"),
0038         #/afs/cern.ch/user/g/gbenelli/public/LV_FROM_Thu_Aug__5_05_15_05_2010_TO_Thu_Aug__5_05_17_32_2010.log"),
0039     LVTkMapName = cms.string("LV_FROM_Thu_Aug__5_21_54_19_2010_TO_Thu_Aug__5_23_01_47_2010.png"),
0040     HVStatusFile = cms.string("HV_FROM_Thu_Aug__5_21_54_19_2010_TO_Thu_Aug__5_23_01_47_2010.log"),
0041         #/afs/cern.ch/user/g/gbenelli/public/HV_FROM_Thu_Aug__5_05_15_05_2010_TO_Thu_Aug__5_05_17_32_2010.log"),
0042     HVTkMapName = cms.string("HV_FROM_Thu_Aug__5_21_54_19_2010_TO_Thu_Aug__5_23_01_47_2010.png")
0043 )
0044 
0045 process.p0 = cms.Path(process.TkVoltageMapCreator)