Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-25 02:29:07

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