File indexing completed on 2025-04-17 02:41:46
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
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
0031
0032
0033 process.trackerAlignment = cms.ESSource("PoolDBESSource",
0034 CondDBSetup,
0035 toGet = cms.VPSet(cms.PSet(
0036 record = cms.string('TrackerAlignmentRcd'),
0037 tag = cms.string('Alignments')
0038 ),
0039 cms.PSet(
0040 record = cms.string('TrackerAlignmentErrorExtendedRcd'),
0041 tag = cms.string('AlignmentErrorsExtended')
0042 )),
0043 connect = cms.string('sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/HIP/alignmentRcds/AllSurveyButTIBTIDGlobal_FPixBPix_wErrs_v2.db')
0044 )
0045
0046
0047
0048
0049 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0050 CondDBSetup,
0051 toPut = cms.VPSet(cms.PSet(
0052 record = cms.string('TrackerSurveyRcd'),
0053 tag = cms.string('valueTag')
0054 ),
0055 cms.PSet(
0056 record = cms.string('TrackerSurveyErrorExtendedRcd'),
0057 tag = cms.string('errorTag')
0058 )),
0059 connect = cms.string('sqlite_file:test.db')
0060 )
0061
0062 process.p = cms.Path(process.tracker*process.uploader)
0063
0064