File indexing completed on 2024-04-06 11:57:20
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("TEST")
0004
0005 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0006
0007 process.GlobalTag.globaltag = "GR_R_61_V6::All"
0008
0009 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0010 process.load("Configuration.Geometry.GeometryIdeal_cff")
0011
0012 process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")
0013
0014
0015 process.load("Alignment.OfflineValidation.TrackerGeometryCompare_cfi")
0016
0017 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0018
0019 process.MessageLogger = cms.Service("MessageLogger",
0020 cerr = cms.untracked.PSet(
0021 enable = cms.untracked.bool(False)
0022 ),
0023 cout = cms.untracked.PSet(
0024 enable = cms.untracked.bool(True)
0025 ),
0026 files = cms.untracked.PSet(
0027 detailedInfo = cms.untracked.PSet(
0028
0029 )
0030 )
0031 )
0032
0033 process.source = cms.Source("EmptySource")
0034
0035 process.load("DQM.SiStripCommon.TkHistoMap_cff")
0036
0037 process.maxEvents = cms.untracked.PSet(
0038 input = cms.untracked.int32(1)
0039 )
0040 process.p = cms.Path(process.TrackerGeometryCompare)
0041
0042 process.TrackerGeometryCompare.inputROOTFile1 = 'myInputGeometry_mp1260m2.root'
0043 process.TrackerGeometryCompare.inputROOTFile2 = 'IDEAL'
0044
0045 process.TrackerGeometryCompare.outputFile = 'outputComparison_mp1260m2_2012AB.root'
0046
0047 process.load("CommonTools.UtilAlgos.TFileService_cfi")
0048
0049
0050
0051 process.TFileService.fileName = cms.string('TkSurfDeform_mp1260m2_2012AB.root')
0052
0053 process.TrackerGeometryCompare.levels = ['DetUnit']
0054
0055
0056
0057
0058 """
0059 process.TrackerGeometryCompare.writeToDB = True
0060
0061 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0062 process.CondDBSetup,
0063 timetype = cms.untracked.string('runnumber'),
0064 connect = cms.string('sqlite_file:yourNewTrackerCenteredObject.db'),
0065 toPut = cms.VPSet(cms.PSet(
0066 record = cms.string('TrackerAlignmentRcd'),
0067 tag = cms.string('Alignments')
0068 ),
0069 cms.PSet(
0070 record = cms.string('TrackerAlignmentErrorExtendedRcd'),
0071 tag = cms.string('AlignmentErrorsExtended')
0072 ))
0073 )
0074 """