Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:26

0001 from __future__ import print_function
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 process = cms.Process("Test")
0005 process.maxEvents = cms.untracked.PSet(
0006     input = cms.untracked.int32(1)
0007 )
0008 process.source = cms.Source("EmptySource",
0009 #    lastRun = cms.untracked.uint32(1),
0010 #    timetype = cms.string('runnumber'),
0011 #    interval = cms.uint32(1),
0012     firstRun = cms.untracked.uint32(1)
0013 )
0014 
0015 
0016 #process.TFileService = cms.Service("TFileService",
0017 #                                   fileName = cms.string("siPixelDynamicInefficiency_histo.root")
0018 #                                   )
0019 
0020 
0021 process.MessageLogger = cms.Service("MessageLogger",
0022     cerr = cms.untracked.PSet(
0023         enable = cms.untracked.bool(False)
0024     ),
0025     cout = cms.untracked.PSet(
0026         enable = cms.untracked.bool(True),
0027         threshold = cms.untracked.string('WARNING')
0028     )
0029 )
0030 
0031 process.Timing = cms.Service("Timing")
0032 
0033 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0034 from Configuration.AlCa.autoCond import autoCond
0035 process.GlobalTag.globaltag = autoCond['run2_design']
0036 #In case you of conditions missing, or if you want to test a specific GT
0037 #process.GlobalTag.globaltag = 'PRE_DES72_V6'
0038 print(process.GlobalTag.globaltag)
0039 
0040 process.load("Configuration.StandardSequences.GeometryDB_cff")
0041 
0042 process.QualityReader = cms.ESSource("PoolDBESSource",
0043 #    BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0044     DBParameters = cms.PSet(
0045         messageLevel = cms.untracked.int32(0),
0046         authenticationPath = cms.untracked.string('')
0047     ),
0048     toGet = cms.VPSet(
0049         cms.PSet(
0050             record = cms.string("SiPixelDynamicInefficiencyRcd"),
0051             tag = cms.string("SiPixelDynamicInefficiency_v1")
0052         ),
0053     ),
0054     connect = cms.string('sqlite_file:siPixelDynamicInefficiency.db')
0055 )
0056 
0057 process.es_prefer_QualityReader = cms.ESPrefer("PoolDBESSource","QualityReader")
0058 
0059 process.DynamicInefficiencyReader = cms.EDAnalyzer("SiPixelDynamicInefficiencyReader",
0060     printDebug = cms.untracked.bool(False),
0061     #Dynamic Inefficiency factors for 13TeV 25ns case
0062     thePixelColEfficiency_BPix1 = cms.double(1.0),
0063     thePixelColEfficiency_BPix2 = cms.double(1.0),
0064     thePixelColEfficiency_BPix3 = cms.double(1.0),
0065     thePixelColEfficiency_FPix1 = cms.double(0.999),
0066     thePixelColEfficiency_FPix2 = cms.double(0.999),
0067     thePixelEfficiency_BPix1 = cms.double(1.0),
0068     thePixelEfficiency_BPix2 = cms.double(1.0),
0069     thePixelEfficiency_BPix3 = cms.double(1.0),
0070     thePixelEfficiency_FPix1 = cms.double(0.999),
0071     thePixelEfficiency_FPix2 = cms.double(0.999),
0072     thePixelChipEfficiency_BPix1 = cms.double(1.0),
0073     thePixelChipEfficiency_BPix2 = cms.double(1.0),
0074     thePixelChipEfficiency_BPix3 = cms.double(1.0),
0075     thePixelChipEfficiency_FPix1 = cms.double(0.999),
0076     thePixelChipEfficiency_FPix2 = cms.double(0.999),
0077     theInstLumiScaleFactor = cms.double(364),
0078     theLadderEfficiency_BPix1 = cms.vdouble( [1]*20 ),
0079     theLadderEfficiency_BPix2 = cms.vdouble( [1]*32 ),
0080     theLadderEfficiency_BPix3 = cms.vdouble( [1]*44 ),
0081     theModuleEfficiency_BPix1 = cms.vdouble( 1, 1, 1, 1, ),
0082     theModuleEfficiency_BPix2 = cms.vdouble( 1, 1, 1, 1, ),
0083     theModuleEfficiency_BPix3 = cms.vdouble( 1, 1, 1, 1 ),
0084     thePUEfficiency_BPix1 = cms.vdouble( 1.00023, -3.18350e-06, 5.08503e-10, -6.79785e-14 ),
0085     thePUEfficiency_BPix2 = cms.vdouble( 9.99974e-01, -8.91313e-07, 5.29196e-12, -2.28725e-15 ),
0086     thePUEfficiency_BPix3 = cms.vdouble( 1.00005, -6.59249e-07, 2.75277e-11, -1.62683e-15 ),
0087     theInnerEfficiency_FPix1 = cms.double(1.0),
0088     theInnerEfficiency_FPix2 = cms.double(1.0),
0089     theOuterEfficiency_FPix1 = cms.double(1.0),
0090     theOuterEfficiency_FPix2 = cms.double(1.0),
0091     thePUEfficiency_FPix_Inner = cms.vdouble(
0092         1.0
0093         ),
0094     thePUEfficiency_FPix_Outer = cms.vdouble(
0095         1.0
0096         ),
0097   )
0098 process.p = cms.Path(process.DynamicInefficiencyReader)