Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:29:39

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("APVGAINBUILDER")
0004 process.MessageLogger = cms.Service("MessageLogger",
0005     cerr = cms.untracked.PSet(
0006         enable = cms.untracked.bool(False)
0007     ),
0008     cout = cms.untracked.PSet(
0009         enable = cms.untracked.bool(True)
0010     ),
0011     threshold = cms.untracked.string('INFO')
0012 )
0013 
0014 process.source = cms.Source("EmptySource",
0015     numberEventsInRun = cms.untracked.uint32(1),
0016     firstRun = cms.untracked.uint32(128408)
0017 )
0018 
0019 # process.source = cms.Source("EmptyIOVSource",
0020 #     firstValue = cms.uint64(128409),
0021 #     lastValue = cms.uint64(128409),
0022 #     timetype = cms.string('runnumber'),
0023 #     interval = cms.uint64(1)
0024 # )
0025 
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(1)
0028 )
0029 
0030 process.poolDBESSource = cms.ESSource("PoolDBESSource",
0031    BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0032    DBParameters = cms.PSet(
0033         messageLevel = cms.untracked.int32(2),
0034         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0035     ),
0036     timetype = cms.untracked.string('runnumber'),
0037     connect = cms.string('oracle://cms_orcoff_prod/CMS_COND_31X_STRIP'),
0038     toGet = cms.VPSet(cms.PSet(
0039         record = cms.string('SiStripApvGainRcd'),
0040         tag = cms.string('SiStripApvGain_GR10_v1_hlt')
0041     ))
0042 )
0043 
0044 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0045     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0046     DBParameters = cms.PSet(
0047         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0048     ),
0049     timetype = cms.untracked.string('runnumber'),
0050     connect = cms.string('sqlite_file:dbfile_gainFromDataCorrected070.db'),
0051     toPut = cms.VPSet(cms.PSet(
0052         record = cms.string('SiStripApvGainRcd2'),
0053         tag = cms.string('SiStripApvGain_gaussian')
0054     ))
0055 )
0056 
0057 process.load('Configuration.Geometry.GeometryExtended_cff')
0058 process.TrackerTopologyEP = cms.ESProducer("TrackerTopologyEP")
0059 process.load("Geometry.TrackerGeometryBuilder.trackerParameters_cfi")
0060 process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")
0061 process.trackerGeometry.applyAlignment = False
0062 
0063 process.prod = cms.EDAnalyzer("SiStripApvGainBuilderFromTag",
0064                             genMode = cms.string("gaussian"),
0065                             applyTuning = cms.bool(True),
0066 ### used if tuning is requested:
0067                             # TIB
0068                             correctTIB = cms.vdouble( 0.985,  1.,  1.,  1.),
0069                             # TID                         
0070                             correctTID = cms.vdouble( 0.957,  0.931,  0.971),
0071                             # TOB                         
0072                             correctTOB = cms.vdouble( 1.07,  1.08,  1.1,  1.07,  1.135,  1.135),
0073                             # TEC
0074                             correctTEC = cms.vdouble( 1.09,  1.075,  1.09,  1.06,  1.095,  1.06,  1.08),
0075 ### used if gaussian genMode is requested:                           
0076                             MeanGain = cms.double(1.),
0077                             SigmaGain = cms.double(0.07),
0078                             MinPositiveGain = cms.double(0.)
0079 )
0080 
0081 # process.print = cms.OutputModule("AsciiOutputModule")
0082 
0083 process.p = cms.Path(process.prod)
0084 # process.ep = cms.EndPath(process.print)
0085 
0086