Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:46:19

0001 from __future__ import print_function
0002 import FWCore.ParameterSet.Config as cms
0003 process = cms.Process("Alignment")
0004 
0005 process.load("Configuration.StandardSequences.MagneticField_cff") # B-field map
0006 process.load("Configuration.Geometry.GeometryRecoDB_cff") # Ideal geometry and interface
0007 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") # Global tag
0008 from Configuration.AlCa.GlobalTag import GlobalTag
0009 process.load("Alignment.TrackerAlignment.createIdealTkAlRecords_cfi")
0010 
0011 ################################################################################
0012 # parameters to configure:
0013 process.GlobalTag = GlobalTag(process.GlobalTag, "auto:phase1_2017_design")
0014 
0015 process.createIdealTkAlRecords.alignToGlobalTag = True
0016 process.createIdealTkAlRecords.skipSubDetectors = cms.untracked.vstring("P1PXB", "P1PXEC")
0017 ################################################################################
0018 
0019 
0020 usedGlobalTag = process.GlobalTag.globaltag.value()
0021 print("Using Global Tag:", usedGlobalTag)
0022 
0023 from CondCore.CondDB.CondDB_cfi import *
0024 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0025     CondDB,
0026     timetype = cms.untracked.string("runnumber"),
0027     toPut = cms.VPSet(
0028         cms.PSet(
0029             record = cms.string("TrackerAlignmentRcd"),
0030             tag = cms.string("Alignments")
0031         ),
0032         cms.PSet(
0033             record = cms.string("TrackerAlignmentErrorExtendedRcd"),
0034             tag = cms.string("AlignmentErrorsExtended")
0035         ),
0036         cms.PSet(
0037             record = cms.string("TrackerSurfaceDeformationRcd"),
0038             tag = cms.string("AlignmentSurfaceDeformations")
0039         ),
0040     )
0041 )
0042 process.PoolDBOutputService.connect = \
0043     ("sqlite_file:tracker_alignment_payloads__pixel_ideal__strips_aligned_to_"+
0044      usedGlobalTag+("_reference.db"
0045                     if process.createIdealTkAlRecords.createReferenceRcd
0046                     else ".db"))
0047 
0048 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
0049 process.source = cms.Source("EmptySource")
0050 process.p = cms.Path(process.createIdealTkAlRecords)