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("MCMisalignmentScaler")
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.siStripQualityESProducer.ListOfRecordToMerge = cms.VPSet(
0010     cms.PSet(record = cms.string("RunInfoRcd"),           tag = cms.string("")),
0011     cms.PSet(record = cms.string("SiStripBadChannelRcd"), tag = cms.string("")),
0012     cms.PSet(record = cms.string("SiStripBadFiberRcd"),   tag = cms.string("")),
0013     cms.PSet(record = cms.string("SiStripBadModuleRcd"),  tag = cms.string("")),
0014     cms.PSet(record = cms.string("SiStripBadStripRcd"),   tag = cms.string("")),
0015     cms.PSet(record = cms.string("SiStripDetCablingRcd"), tag = cms.string("")),
0016 )
0017 process.load("Alignment.TrackerAlignment.mcMisalignmentScaler_cfi")
0018 
0019 ################################################################################
0020 # parameters to configure:
0021 process.GlobalTag = GlobalTag(process.GlobalTag, "auto:phase1_2017_realistic")
0022 process.mcMisalignmentScaler.scalers.append(
0023     cms.PSet(
0024         subDetector = cms.untracked.string("Tracker"),
0025         factor = cms.untracked.double(0.2)
0026     )
0027 )
0028 process.mcMisalignmentScaler.pullBadModulesToIdeal = False
0029 process.mcMisalignmentScaler.outlierPullToIdealCut = 0.1
0030 ################################################################################
0031 
0032 
0033 usedGlobalTag = process.GlobalTag.globaltag.value()
0034 print("Using Global Tag:", usedGlobalTag)
0035 
0036 from CondCore.CondDB.CondDB_cfi import CondDB
0037 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0038     CondDB,
0039     timetype = cms.untracked.string("runnumber"),
0040     toPut = cms.VPSet(
0041         cms.PSet(
0042             record = cms.string("TrackerAlignmentRcd"),
0043             tag = cms.string("Alignments")
0044         ),
0045     )
0046 )
0047 process.PoolDBOutputService.connect = "sqlite_file:misalignment_rescaled0p2.db"
0048 
0049 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
0050 process.source = cms.Source("EmptySource")
0051 process.p = cms.Path(process.mcMisalignmentScaler)