CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_1/src/CalibTracker/SiStripLorentzAngle/python/SQLiteEnsembleGenerator_cfg.py

Go to the documentation of this file.
00001 #based on CalibTracker/SiStripESProducers/test/python/DummyCondDBWriter_SiStripLorentzAngle_cfg.py
00002 
00003 import FWCore.ParameterSet.Config as cms
00004 
00005 process = cms.Process("Builder")
00006 
00007 process.MessageLogger = cms.Service(
00008     "MessageLogger",
00009     debugModules = cms.untracked.vstring('siStripLorentzAngleDummyDBWriter'),
00010     threshold = cms.untracked.string('DEBUG'),
00011     destinations = cms.untracked.vstring('SQLiteGenerator.log')
00012 )
00013 
00014 process.maxEvents = cms.untracked.PSet(
00015     input = cms.untracked.int32(1)
00016 )
00017 process.source = cms.Source("EmptySource",
00018     numberEventsInRun = cms.untracked.uint32(1),
00019     firstRun = cms.untracked.uint32(1)
00020 )
00021 
00022 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
00023 
00024 process.load("CalibTracker.SiStripESProducers.fake.SiStripLorentzAngleFakeESSource_cfi")
00025 process.load("CalibTracker.SiStripESProducers.DBWriter.SiStripLorentzAngleDummyDBWriter_cfi")
00026 
00027 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
00028     connect = cms.string('sqlite_file:SiStripLorentzAngle_CalibrationEnsemble.db'),
00029     timetype = cms.untracked.string('runnumber'),    
00030     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
00031     DBParameters = cms.PSet(
00032         messageLevel = cms.untracked.int32(2),
00033         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
00034     ),
00035     
00036     toPut = cms.VPSet(cms.PSet(
00037         record = cms.string('SiStripLorentzAngleRcd'),
00038         tag = cms.string('SiStripLorentzAngle_CalibrationEnsemble_31X')
00039     ))
00040 )
00041 
00042 process.siStripLorentzAngleDummyDBWriter.record=process.PoolDBOutputService.toPut[0].record
00043 
00044 # Three possible generations:
00045 # - give two values = (min,max)                                                -> uniform distribution
00046 # - give one value and PerCent_Err != 0                                        -> gaussian distribution
00047 # - either give two equal values or a single value (pass an empty max vector)  -> fixed value
00048 
00049 BField = 3.8
00050 # TIB min and max
00051 process.SiStripLorentzAngleGenerator.TIB_EstimatedValuesMin = cms.vdouble(0.0/BField, 0.0/BField, 0.0/BField, 0.0/BField)
00052 process.SiStripLorentzAngleGenerator.TIB_EstimatedValuesMax = cms.vdouble(0.10/BField, 0.10/BField, 0.10/BField, 0.10/BField)
00053 # TIB errors
00054 process.SiStripLorentzAngleGenerator.TIB_PerCent_Errs       = cms.vdouble(0.,    0.,    0.,    0.)
00055 # TOB min and max
00056 process.SiStripLorentzAngleGenerator.TOB_EstimatedValuesMin = cms.vdouble(0.0/BField, 0.0/BField, 0.0/BField, 0.0/BField, 0.0/BField, 0.0/BField)
00057 process.SiStripLorentzAngleGenerator.TOB_EstimatedValuesMax = cms.vdouble(0.12/BField, 0.12/BField, 0.12/BField, 0.12/BField, 0.12/BField, 0.12/BField)
00058 # TOB errors
00059 process.SiStripLorentzAngleGenerator.TOB_PerCent_Errs       = cms.vdouble(0.,    0.,    0.,    0.,    0.,    0.)
00060 
00061 process.p1 = cms.Path(process.siStripLorentzAngleDummyDBWriter)
00062