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 
0003 process = cms.Process("APVGAIN")
0004 
0005 process.MessageLogger = cms.Service("MessageLogger",
0006     cerr = cms.untracked.PSet(
0007         enable = cms.untracked.bool(False)
0008     ),
0009     cout = cms.untracked.PSet(
0010         enable = cms.untracked.bool(True),
0011         threshold = cms.untracked.string('INFO')
0012     )
0013 )
0014 
0015 
0016 process.maxEvents = cms.untracked.PSet(
0017     input = cms.untracked.int32(1)
0018 )
0019 
0020 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0021 from Configuration.AlCa.GlobalTag import GlobalTag
0022 process.GlobalTag = GlobalTag(process.GlobalTag, 'GR_P_V53', '')
0023 
0024 process.source = cms.Source("EmptyIOVSource",
0025     timetype   = cms.string('runnumber'),
0026     interval   = cms.uint64(1),
0027     firstValue = cms.uint64(251522),
0028     lastValue  = cms.uint64(251612)
0029 )
0030 
0031 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0032     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0033     DBParameters = cms.PSet(
0034         messageLevel = cms.untracked.int32(2),
0035         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0036     ),
0037     timetype = cms.untracked.string('runnumber'),
0038     connect = cms.string('sqlite_file:Gains_Sqlite.db'),
0039     toPut = cms.VPSet(cms.PSet(
0040         record = cms.string('SiStripApvGainRcd'),
0041         tag = cms.string('SiStripGainFromParticles')
0042     ))
0043 )
0044 
0045 
0046 process.SiStripCalibFromAscii = cms.EDAnalyzer("SiStripGainFromAsciiFile",
0047     InputFileName       = cms.string('Gains_ASCII.txt'),
0048     referenceValue      = cms.double(1.0),
0049 
0050     SinceAppendMode     = cms.bool(True),
0051     TimeFromEndRun      = cms.untracked.bool(True),
0052     IOVMode             = cms.string('Job'),
0053     Record              = cms.string('SiStripApvGainRcd'),
0054     doStoreOnDB         = cms.bool(True)
0055 )
0056 
0057 
0058 
0059 process.p = cms.Path(process.SiStripCalibFromAscii)