Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:14:54

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("NOISEGAINBUILDER")
0004 process.MessageLogger = cms.Service("MessageLogger",
0005     threshold = cms.untracked.string('INFO'),
0006     destinations = cms.untracked.vstring('cout')
0007 )
0008 
0009 process.source = cms.Source("EmptySource",
0010     numberEventsInRun = cms.untracked.uint32(1),
0011     firstRun = cms.untracked.uint32(128408)
0012 )
0013 
0014 process.maxEvents = cms.untracked.PSet(
0015     input = cms.untracked.int32(1)
0016 )
0017 
0018 process.poolDBESSource = cms.ESSource("PoolDBESSource",
0019    BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0020    DBParameters = cms.PSet(
0021         messageLevel = cms.untracked.int32(2),
0022         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0023     ),
0024     timetype = cms.untracked.string('runnumber'),
0025     # connect = cms.string('oracle://cms_orcoff_prod/CMS_COND_31X_STRIP'),
0026     connect = cms.string('sqlite_file:dbfile.db'),
0027     toGet = cms.VPSet(cms.PSet(
0028         record = cms.string('SiStripApvGainRcd'),
0029         # tag = cms.string('SiStripApvGain_GR10_v1_hlt')
0030         # tag = cms.string('SiStripApvGain_default')
0031         tag = cms.string('SiStripApvGain_Ideal_31X')
0032     ))
0033 )
0034 
0035 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0036     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0037     DBParameters = cms.PSet(
0038         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0039     ),
0040     timetype = cms.untracked.string('runnumber'),
0041     connect = cms.string('sqlite_file:dbfile.db'),
0042     toPut = cms.VPSet(cms.PSet(
0043         record = cms.string('SiStripNoisesRcd'),
0044         tag = cms.string('SiStripNoiseNormalizedWithIdealGain')
0045     ))
0046 )
0047 
0048 process.load('Configuration.Geometry.GeometryExtended_cff')
0049 process.TrackerTopologyEP = cms.ESProducer("TrackerTopologyEP")
0050 process.load("Geometry.TrackerGeometryBuilder.trackerParameters_cfi")
0051 process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")
0052 process.trackerGeometry.applyAlignment = False
0053 
0054 from SimTracker.SiStripDigitizer.SiStripDigi_cfi import *
0055 process.prod = cms.EDFilter("SiStripNoiseNormalizedWithApvGainBuilder",
0056                             printDebug = cms.untracked.uint32(5),
0057                                                                           
0058                             StripLengthMode = cms.bool(True),
0059 
0060                             #relevant if striplenght mode is chosen
0061                             # standard value for deconvolution mode is 51. For peak mode 38.8.
0062                             # standard value for deconvolution mode is 630. For peak mode  414.
0063                             
0064                             # TIB
0065                             NoiseStripLengthSlopeTIB = cms.vdouble( 51.0,  51.0,  51.0,  51.0),
0066                             NoiseStripLengthQuoteTIB = cms.vdouble(630.0, 630.0, 630.0, 630.0),
0067                             # TID                         
0068                             NoiseStripLengthSlopeTID = cms.vdouble( 51.0,  51.0,  51.0),
0069                             NoiseStripLengthQuoteTID = cms.vdouble(630.0, 630.0, 630.0),
0070                             # TOB                         
0071                             NoiseStripLengthSlopeTOB = cms.vdouble( 51.0,  51.0,  51.0,  51.0,  51.0,  51.0),
0072                             NoiseStripLengthQuoteTOB = cms.vdouble(630.0, 630.0, 630.0, 630.0, 630.0, 630.0),
0073                             # TEC
0074                             NoiseStripLengthSlopeTEC = cms.vdouble( 51.0,  51.0,  51.0,  51.0,  51.0,  51.0,  51.0),
0075                             NoiseStripLengthQuoteTEC = cms.vdouble(630.0, 630.0, 630.0, 630.0, 630.0, 630.0, 630.0),
0076                             
0077                             #electronPerAdc = cms.double(1.0),
0078                             electronPerAdc = simSiStripDigis.electronPerAdc,
0079 
0080                             #relevant if random mode is chosen
0081                             # TIB
0082                             MeanNoiseTIB  = cms.vdouble(4.0, 4.0, 4.0, 4.0),
0083                             SigmaNoiseTIB = cms.vdouble(0.5, 0.5, 0.5, 0.5),
0084                             # TID
0085                             MeanNoiseTID  = cms.vdouble(4.0, 4.0, 4.0),
0086                             SigmaNoiseTID = cms.vdouble(0.5, 0.5, 0.5),
0087                             # TOB
0088                             MeanNoiseTOB  = cms.vdouble(4.0, 4.0, 4.0, 4.0, 4.0, 4.0),
0089                             SigmaNoiseTOB = cms.vdouble(0.5, 0.5, 0.5, 0.5, 0.5, 0.5),
0090                             # TEC
0091                             MeanNoiseTEC  = cms.vdouble(4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0),
0092                             SigmaNoiseTEC = cms.vdouble(0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5),
0093                             
0094                             MinPositiveNoise = cms.double(0.1)
0095 )
0096 
0097 process.p = cms.Path(process.prod)
0098 
0099