Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:57:25

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 process.load("FWCore.MessageService.MessageLogger_cfi")
0005 
0006 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
0007 
0008 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0009 
0010 #process.load("CondCore.DBCommon.CondDBSetup_cfi")
0011 from CondCore.DBCommon.CondDBSetup_cfi import *
0012 
0013 process.source = cms.Source("EmptySource")
0014 
0015 process.maxEvents = cms.untracked.PSet(
0016     input = cms.untracked.int32(1)
0017 )
0018 process.tracker = cms.EDFilter("CreateSurveyRcds",
0019     inputGeom = cms.untracked.string('sqlite'),
0020     generatedRandom = cms.untracked.bool(False),
0021     generatedSimple = cms.untracked.bool(False),    
0022     simpleMis = cms.untracked.double(0.005)
0023 )
0024 
0025 process.uploader = cms.EDFilter("SurveyDBUploader",
0026     errorRcd = cms.string('TrackerSurveyErrorExtendedRcd'),
0027     valueRcd = cms.string('TrackerSurveyRcd')
0028 )
0029 
0030 # input
0031 # need a POOLORA input geometry if the input geom is "sqlite"
0032 # otherwise not needed
0033 process.trackerAlignment = cms.ESSource("PoolDBESSource",
0034                      CondDBSetup,
0035                      timetype = cms.string('runnumber'),
0036                      toGet = cms.VPSet(cms.PSet(
0037                                                 record = cms.string('TrackerAlignmentRcd'),
0038                                                 tag = cms.string('Alignments')
0039                                                 ), 
0040                                        cms.PSet(
0041                                                 record = cms.string('TrackerAlignmentErrorExtendedRcd'),
0042                                                 tag = cms.string('AlignmentErrorsExtended')
0043                                                 )),
0044                      connect = cms.string('sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/HIP/alignmentRcds/AllSurveyButTIBTIDGlobal_FPixBPix_wErrs_v2.db')
0045 )
0046 
0047 #process.es_prefer_trackerAlignment = cms.ESPrefer("PoolDBESSource","trackerAlignment")
0048 
0049 # output
0050 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0051     CondDBSetup,
0052     toPut = cms.VPSet(cms.PSet(
0053         record = cms.string('TrackerSurveyRcd'),
0054         tag = cms.string('valueTag')
0055     ), 
0056         cms.PSet(
0057             record = cms.string('TrackerSurveyErrorExtendedRcd'),
0058             tag = cms.string('errorTag')
0059         )),
0060     connect = cms.string('sqlite_file:test.db')
0061 )
0062 
0063 process.p = cms.Path(process.tracker*process.uploader)
0064 
0065