Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:12:06

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 import FWCore.ParameterSet.VarParsing as VarParsing
0004 
0005 process = cms.Process("CALIB")
0006 
0007 options = VarParsing.VarParsing("analysis")
0008 
0009 options.register ('connectionString',
0010                   "",
0011                   VarParsing.VarParsing.multiplicity.singleton, # singleton or list
0012                   VarParsing.VarParsing.varType.string,          # string, int, or float
0013                   "connection string")
0014 options.register ('noiseTagName',
0015                   "",
0016                   VarParsing.VarParsing.multiplicity.singleton, # singleton or list
0017                   VarParsing.VarParsing.varType.string,          # string, int, or float
0018                   "noise tag name")
0019 options.register ('gainTagName',
0020                   "",
0021                   VarParsing.VarParsing.multiplicity.singleton, # singleton or list
0022                   VarParsing.VarParsing.varType.string,          # string, int, or float
0023                   "gain tag name")
0024 options.register ('firstRunNumber',
0025                   0,
0026                   VarParsing.VarParsing.multiplicity.singleton, # singleton or list
0027                   VarParsing.VarParsing.varType.int,          # string, int, or float
0028                   "first run number")
0029 options.register ('secondRunNumber',
0030                   0,
0031                   VarParsing.VarParsing.multiplicity.singleton, # singleton or list
0032                   VarParsing.VarParsing.varType.int,          # string, int, or float
0033                   "second run number")
0034 
0035 options.parseArguments()
0036 
0037 
0038 process.MessageLogger = cms.Service("MessageLogger",
0039                                     out = cms.untracked.PSet(threshold = cms.untracked.string('INFO')),
0040                                     cerr = cms.untracked.PSet(threshold = cms.untracked.string('WARNING')),
0041                                     destinations = cms.untracked.vstring('out','cerr')
0042                                     )
0043 
0044 process.source = cms.Source("EmptyIOVSource",
0045                             firstValue = cms.uint64(options.firstRunNumber),
0046                             lastValue = cms.uint64(options.secondRunNumber),
0047                             timetype = cms.string('runnumber'),
0048                             interval = cms.uint64(1)
0049                             )
0050 
0051 # the DB Geometry is NOT used because in this cfg only one tag is taken from the DB and no GT is used. To be fixed if this is a problem
0052 process.load('Configuration.Geometry.GeometryExtended_cff')
0053 process.TrackerTopologyEP = cms.ESProducer("TrackerTopologyEP")
0054 process.load("Geometry.TrackerGeometryBuilder.trackerParameters_cfi")
0055 
0056 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(-1))
0057 
0058 process.poolDBESSource = cms.ESSource(
0059                                       "PoolDBESSource",
0060                                       BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0061                                       DBParameters = cms.PSet(messageLevel = cms.untracked.int32(1), # it used to be 2
0062                                                               authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0063                                                               ),
0064                                       timetype = cms.untracked.string('runnumber'),
0065                                       connect = cms.string(options.connectionString),
0066                                       toGet = cms.VPSet(cms.PSet(record = cms.string('SiStripNoisesRcd'),
0067                                                                  tag = cms.string(options.noiseTagName)
0068                                                                  ),
0069                                                         cms.PSet(record = cms.string('SiStripApvGainRcd'),
0070                                                                  tag = cms.string(options.gainTagName)
0071                                                                  )
0072                                                         )
0073                                       )
0074 
0075 
0076 process.analysis = cms.EDAnalyzer("SiStripCorrelateNoise")
0077 
0078 
0079 process.p = cms.Path(process.analysis)
0080