File indexing completed on 2023-03-17 10:48:46
0001 from __future__ import print_function
0002 import os
0003 import shlex, shutil, getpass
0004
0005
0006 import FWCore.ParameterSet.Config as cms
0007
0008 process = cms.Process("SiPixelInclusiveBuilder")
0009 process.load("FWCore.MessageService.MessageLogger_cfi")
0010
0011
0012
0013 process.load("Configuration.StandardSequences.MagneticField_cff")
0014
0015
0016 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0017 from Configuration.AlCa.autoCond import autoCond
0018 process.GlobalTag.globaltag = autoCond['run2_design']
0019 print(process.GlobalTag.globaltag)
0020 process.load("Configuration.StandardSequences.GeometryDB_cff")
0021
0022 process.load("CondTools.SiPixel.SiPixelGainCalibrationService_cfi")
0023
0024 process.source = cms.Source("EmptyIOVSource",
0025 firstValue = cms.uint64(1),
0026 lastValue = cms.uint64(1),
0027 timetype = cms.string('runnumber'),
0028 interval = cms.uint64(1)
0029 )
0030
0031 process.maxEvents = cms.untracked.PSet(
0032 input = cms.untracked.int32(1)
0033 )
0034
0035
0036 user = getpass.getuser()
0037
0038
0039
0040
0041
0042
0043
0044
0045 file = "siPixelDynamicInefficiency.db"
0046 sqlfile = "sqlite_file:" + file
0047 print('\n-> Uploading as user %s into file %s, i.e. %s\n' % (user, file, sqlfile))
0048
0049
0050
0051 if(os.path.isfile('./'+file)):
0052 shutil.move("siPixelDynamicInefficiency.db", "siPixelDynamicInefficiency_old.db")
0053
0054
0055
0056
0057 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0058 BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0059 DBParameters = cms.PSet(
0060 authenticationPath = cms.untracked.string('.'),
0061 connectionRetrialPeriod = cms.untracked.int32(10),
0062 idleConnectionCleanupPeriod = cms.untracked.int32(10),
0063 messageLevel = cms.untracked.int32(1),
0064 enablePoolAutomaticCleanUp = cms.untracked.bool(False),
0065 enableConnectionSharing = cms.untracked.bool(True),
0066 connectionRetrialTimeOut = cms.untracked.int32(60),
0067 connectionTimeOut = cms.untracked.int32(0),
0068 enableReadOnlySessionOnUpdateConnection = cms.untracked.bool(False)
0069 ),
0070 timetype = cms.untracked.string('runnumber'),
0071 connect = cms.string(sqlfile),
0072 toPut = cms.VPSet(
0073 cms.PSet(
0074 record = cms.string('SiPixelDynamicInefficiencyRcd'),
0075 tag = cms.string('SiPixelDynamicInefficiency_v1')
0076 ),
0077 )
0078 )
0079
0080
0081 process.SiPixelDynamicInefficiency = cms.EDAnalyzer("SiPixelDynamicInefficiencyDB",
0082
0083 thePixelGeomFactors = cms.untracked.VPSet(
0084 cms.PSet(
0085 det = cms.string("bpix"),
0086 factor = cms.double(1)
0087 ),
0088 cms.PSet(
0089 det = cms.string("fpix"),
0090 factor = cms.double(0.999)
0091 ),
0092 ),
0093 theColGeomFactors = cms.untracked.VPSet(
0094 cms.PSet(
0095 det = cms.string("bpix"),
0096 factor = cms.double(1)
0097 ),
0098 cms.PSet(
0099 det = cms.string("fpix"),
0100 factor = cms.double(0.999)
0101 ),
0102 ),
0103 theChipGeomFactors = cms.untracked.VPSet(
0104 cms.PSet(
0105 det = cms.string("bpix"),
0106 factor = cms.double(1)
0107 ),
0108 cms.PSet(
0109 det = cms.string("fpix"),
0110 factor = cms.double(0.999)
0111 ),
0112 ),
0113 thePUEfficiency = cms.untracked.VPSet(
0114 cms.PSet(
0115 det = cms.string("bpix"),
0116 layer = cms.uint32(1),
0117 factor = cms.vdouble(1.00023, -3.18350e-06, 5.08503e-10, -6.79785e-14),
0118 ),
0119 cms.PSet(
0120 det = cms.string("bpix"),
0121 layer = cms.uint32(2),
0122 factor = cms.vdouble(9.99974e-01, -8.91313e-07, 5.29196e-12, -2.28725e-15 ),
0123 ),
0124 cms.PSet(
0125 det = cms.string("bpix"),
0126 layer = cms.uint32(3),
0127 factor = cms.vdouble(1.00005, -6.59249e-07, 2.75277e-11, -1.62683e-15 ),
0128 ),
0129 cms.PSet(
0130 det = cms.string("fpix"),
0131 factor= cms.vdouble(1.0),
0132 ),
0133 ),
0134 theInstLumiScaleFactor = cms.untracked.double(364)
0135 )
0136
0137
0138 process.p = cms.Path(
0139 process.SiPixelDynamicInefficiency
0140 )
0141