Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:33:44

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("myprocess")
0004 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0005 
0006 #process.CondDBCommon.connect = 'sqlite_file:PhysicsPerformance.db'
0007 #process.CondDBCommon.connect = 'frontier://FrontierProd/CMS_COND_PAT_000'
0008 
0009 process.load ("RecoBTag.PerformanceDB.BtagPerformanceESProducer_cfi")
0010 #
0011 # change inside the source
0012 #
0013 
0014 process.maxEvents = cms.untracked.PSet(
0015     input = cms.untracked.int32(1)
0016 )
0017 process.source = cms.Source("EmptySource")
0018 
0019 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0020                                       process.CondDBCommon,
0021                                       toGet = cms.VPSet(
0022 
0023         cms.PSet(
0024             record = cms.string('PerformancePayloadRecord'),
0025             tag = cms.string('BTagTTBARDISCRIMBTAGCSVtable'),
0026             label = cms.untracked.string('BTagTTBARDISCRIMBTAGCSVtable')
0027             ),
0028         cms.PSet(
0029             record = cms.string('PerformanceWPRecord'),
0030             tag = cms.string('BTagTTBARDISCRIMBTAGCSVwp'),
0031             label = cms.untracked.string('BTagTTBARDISCRIMBTAGCSVwp')
0032             )                             
0033 
0034 
0035                                                         )
0036 )
0037 
0038 process.PoolDBESSource.connect = 'frontier://FrontierProd/CMS_COND_PAT_000'
0039 
0040 process.demo2 = cms.EDAnalyzer('TestPerformanceFW_ES_TFormula',
0041                        AlgoName = cms.string('TTBARDISCRIMBTAGCSV'))
0042 #
0043 # change inside the source
0044 #
0045 #process.BtagPerformanceESProducer_test.PayloadName = "TEST_TF_1"
0046 #process.BtagPerformanceESProducer_test.WorkingPointName = "TEST_TF_1_WP"
0047 
0048 process.BtagPerformanceESProducer_test.ComponentName = "TTBARDISCRIMBTAGCSV"
0049 process.BtagPerformanceESProducer_test.PayloadName = "BTagTTBARDISCRIMBTAGCSVtable"
0050 process.BtagPerformanceESProducer_test.WorkingPointName = "BTagTTBARDISCRIMBTAGCSVwp"
0051                                                            
0052 
0053 process.p = cms.Path(process.demo2)
0054 
0055 #
0056