Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:15:09

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('quality', '', VarParsing.VarParsing.multiplicity.list, VarParsing.VarParsing.varType.string, '') 
0014 options.parseArguments()
0015 
0016 process = cms.Process("LutPlot")
0017 
0018 process.load("Configuration.Geometry.GeometryDB_cff")
0019 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0020 process.GlobalTag.globaltag = options.globaltag 
0021 
0022 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
0023 process.source = cms.Source("EmptySource")
0024 process.source.firstRun = cms.untracked.uint32(options.run)
0025 
0026 process.plot  = cms.EDAnalyzer("HcalLutAnalyzer",
0027     inputDir  = cms.string(options.inputDir),
0028     plotsDir  = cms.string(options.plotsDir),
0029     tags      = cms.vstring(options.tags),
0030     gains     = cms.vstring(options.gains),
0031     respcorrs = cms.vstring(options.respcorrs),
0032     pedestals = cms.vstring(options.pedestals),
0033     quality   = cms.vstring(options.quality),
0034     Zmin      = cms.double(0),
0035     Zmax      = cms.double(10),
0036     Ymin      = cms.double(0.7),
0037     Ymax      = cms.double(1.3),
0038     Pmin      = cms.double(0.9),
0039     Pmax      = cms.double(1.1),
0040 )
0041 process.p = cms.Path(process.plot)
0042