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("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0005 process.load("Configuration.Geometry.GeometryDB_cff")
0006
0007 process.load("FWCore.MessageService.MessageLogger_cfi")
0008
0009
0010 from Configuration.AlCa.GlobalTag import GlobalTag
0011 process.GlobalTag = GlobalTag(process.GlobalTag,"auto:phase1_2017_design")
0012
0013 from CondCore.CondDB.CondDB_cfi import *
0014
0015 CondDBAlignment = CondDB.clone(connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS'))
0016
0017
0018 process.ZeroGeom = cms.ESSource("PoolDBESSource",
0019 CondDBAlignment,
0020 toGet = cms.VPSet(cms.PSet(record = cms.string('TrackerAlignmentRcd'),
0021 tag = cms.string('TrackerAlignment_StartUp17_v11')
0022 )
0023 )
0024 )
0025
0026 CondDBAPE = CondDB.clone(connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS'))
0027
0028 process.ZeroAPE = cms.ESSource("PoolDBESSource",
0029 CondDBAPE,
0030 toGet = cms.VPSet(cms.PSet(record = cms.string('TrackerAlignmentErrorExtendedRcd'),
0031 tag = cms.string('TrackerAlignmentErrorsExtended_Upgrade2017_design_v0')
0032 )
0033 )
0034 )
0035
0036 process.es_prefer_ZeroGeom = cms.ESPrefer("PoolDBESSource", "ZeroGeom")
0037 process.es_prefer_ZeroAPE = cms.ESPrefer("PoolDBESSource", "ZeroAPE")
0038
0039 process.maxEvents = cms.untracked.PSet(
0040 input = cms.untracked.int32(1)
0041 )
0042 process.source = cms.Source("EmptySource")
0043
0044 GeometryIntoNtuplesRootFile = cms.untracked.string('InputGeometry.root')
0045
0046
0047 process.dump = cms.EDAnalyzer("TrackerGeometryIntoNtuples",
0048 outputFile = GeometryIntoNtuplesRootFile,
0049 outputTreename = cms.untracked.string('alignTree')
0050 )
0051
0052
0053 process.load("Alignment.OfflineValidation.TrackerGeometryCompare_cfi")
0054 process.TrackerGeometryCompare.inputROOTFile1 = 'IDEAL'
0055 process.TrackerGeometryCompare.inputROOTFile2 = GeometryIntoNtuplesRootFile
0056 process.TrackerGeometryCompare.setCommonTrackerSystem = "P1PXBBarrel"
0057
0058 process.TrackerGeometryCompare.levels = []
0059 process.TrackerGeometryCompare.writeToDB = True
0060
0061 process.TFileService = cms.Service("TFileService",
0062 fileName=cms.string("TPBCenteredOutputComparison.root")
0063
0064 )
0065
0066 CondDBoutput=CondDB.clone(connect = cms.string('sqlite_file:TrackerAlignment_StartUp17_v11_BPIX-Centred.db'))
0067
0068 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0069 CondDBoutput,
0070 timetype = cms.untracked.string('runnumber'),
0071 toPut = cms.VPSet(cms.PSet(record = cms.string('TrackerAlignmentRcd'),
0072 tag = cms.string('Alignments')
0073 ),
0074 cms.PSet(record = cms.string('TrackerAlignmentErrorExtendedRcd'),
0075 tag = cms.string('AlignmentErrorsExtended')
0076 )
0077 )
0078 )
0079
0080 process.p = cms.Path(process.dump*process.TrackerGeometryCompare)
0081