File indexing completed on 2024-04-06 12:00:08
0001 import FWCore.ParameterSet.Config as cms
0002 import FWCore.ParameterSet.VarParsing as VarParsing
0003
0004 options = VarParsing.VarParsing('analysis')
0005 options.register('globaltag', '', VarParsing.VarParsing.multiplicity.singleton, VarParsing.VarParsing.varType.string, '')
0006 options.register('run', '', VarParsing.VarParsing.multiplicity.singleton, VarParsing.VarParsing.varType.int, '')
0007 options.register('inputDir', '', VarParsing.VarParsing.multiplicity.singleton, VarParsing.VarParsing.varType.string, '')
0008 options.register('plotsDir', '', VarParsing.VarParsing.multiplicity.singleton, VarParsing.VarParsing.varType.string, '')
0009 options.register('tags', '', VarParsing.VarParsing.multiplicity.list, VarParsing.VarParsing.varType.string, '')
0010 options.register('gains', '', VarParsing.VarParsing.multiplicity.list, VarParsing.VarParsing.varType.string, '')
0011 options.register('respcorrs', '', VarParsing.VarParsing.multiplicity.list, VarParsing.VarParsing.varType.string, '')
0012 options.register('pedestals', '', VarParsing.VarParsing.multiplicity.list, VarParsing.VarParsing.varType.string, '')
0013 options.register('effpedestals','', VarParsing.VarParsing.multiplicity.list, VarParsing.VarParsing.varType.string, '')
0014 options.register('quality', '', VarParsing.VarParsing.multiplicity.list, VarParsing.VarParsing.varType.string, '')
0015 options.parseArguments()
0016
0017 process = cms.Process("LutPlot")
0018
0019 process.load("Configuration.Geometry.GeometryDB_cff")
0020 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0021 process.GlobalTag.globaltag = options.globaltag
0022
0023 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
0024 process.source = cms.Source("EmptySource")
0025 process.source.firstRun = cms.untracked.uint32(options.run)
0026
0027 process.plot = cms.EDAnalyzer("HcalLutAnalyzer",
0028 inputDir = cms.string(options.inputDir),
0029 plotsDir = cms.string(options.plotsDir),
0030 tags = cms.vstring(options.tags),
0031 gains = cms.vstring(options.gains),
0032 respcorrs = cms.vstring(options.respcorrs),
0033 pedestals = cms.vstring(options.pedestals),
0034 effpedestals = cms.vstring(options.effpedestals),
0035 quality = cms.vstring(options.quality),
0036 Zmin = cms.double(0),
0037 Zmax = cms.double(10),
0038 Ymin = cms.double(0.7),
0039 Ymax = cms.double(1.3),
0040 Pmin = cms.double(0.9),
0041 Pmax = cms.double(1.1),
0042 )
0043 process.p = cms.Path(process.plot)
0044