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