Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #based on CalibTracker/SiStripESProducers/test/python/DummyCondDBWriter_SiStripLorentzAngle_cfg.py
0002 
0003 import FWCore.ParameterSet.Config as cms
0004 
0005 process = cms.Process("Builder")
0006 
0007 process.MessageLogger = cms.Service("MessageLogger",
0008     cerr = cms.untracked.PSet(
0009         enable = cms.untracked.bool(False)
0010     ),
0011     debugModules = cms.untracked.vstring('siStripLorentzAngleDummyDBWriter'),
0012     files = cms.untracked.PSet(
0013         SQLiteGenerator = cms.untracked.PSet(
0014 
0015         )
0016     ),
0017     threshold = cms.untracked.string('DEBUG')
0018 )
0019 
0020 process.maxEvents = cms.untracked.PSet(
0021     input = cms.untracked.int32(1)
0022 )
0023 process.source = cms.Source("EmptySource",
0024     numberEventsInRun = cms.untracked.uint32(1),
0025     firstRun = cms.untracked.uint32(1)
0026 )
0027 
0028 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
0029 
0030 process.load("CalibTracker.SiStripESProducers.fake.SiStripLorentzAngleFakeESSource_cfi")
0031 process.load("CalibTracker.SiStripESProducers.DBWriter.SiStripLorentzAngleDummyDBWriter_cfi")
0032 
0033 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0034     connect = cms.string('sqlite_file:SiStripLorentzAngle_CalibrationEnsemble.db'),
0035     timetype = cms.untracked.string('runnumber'),    
0036     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0037     DBParameters = cms.PSet(
0038         messageLevel = cms.untracked.int32(2),
0039         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0040     ),
0041     
0042     toPut = cms.VPSet(cms.PSet(
0043         record = cms.string('SiStripLorentzAngleRcd'),
0044         tag = cms.string('SiStripLorentzAngle_CalibrationEnsemble_31X')
0045     ))
0046 )
0047 
0048 process.siStripLorentzAngleDummyDBWriter.record=process.PoolDBOutputService.toPut[0].record
0049 
0050 # Three possible generations:
0051 # - give two values = (min,max)                                                -> uniform distribution
0052 # - give one value and PerCent_Err != 0                                        -> gaussian distribution
0053 # - either give two equal values or a single value (pass an empty max vector)  -> fixed value
0054 
0055 BField = 3.8
0056 from CalibTracker.SiStripESProducers.fake.SiStripLorentzAngleFakeESSource_cfi import siStripLorentzAngleFakeESSource
0057 # TIB min and max
0058 siStripLorentzAngleFakeESSource.TIB_EstimatedValuesMin = cms.vdouble(0.0/BField, 0.0/BField, 0.0/BField, 0.0/BField)
0059 siStripLorentzAngleFakeESSource.TIB_EstimatedValuesMax = cms.vdouble(0.10/BField, 0.10/BField, 0.10/BField, 0.10/BField)
0060 # TIB errors
0061 siStripLorentzAngleFakeESSource.TIB_PerCent_Errs       = cms.vdouble(0.,    0.,    0.,    0.)
0062 # TOB min and max
0063 siStripLorentzAngleFakeESSource.TOB_EstimatedValuesMin = cms.vdouble(0.0/BField, 0.0/BField, 0.0/BField, 0.0/BField, 0.0/BField, 0.0/BField)
0064 siStripLorentzAngleFakeESSource.TOB_EstimatedValuesMax = cms.vdouble(0.12/BField, 0.12/BField, 0.12/BField, 0.12/BField, 0.12/BField, 0.12/BField)
0065 # TOB errors
0066 siStripLorentzAngleFakeESSource.TOB_PerCent_Errs       = cms.vdouble(0.,    0.,    0.,    0.,    0.,    0.)
0067 
0068 process.p1 = cms.Path(process.siStripLorentzAngleDummyDBWriter)
0069