Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #!/usr/bin/env cmsRun
0002 
0003 import FWCore.ParameterSet.Config as cms
0004 
0005 process = cms.Process("test1")
0006 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0007 
0008 process.load("Configuration.StandardSequences.MagneticField_cff")
0009 process.load("Configuration.StandardSequences.Geometry_cff")
0010 process.load("TrackingTools.TransientTrack.TransientTrackBuilder_cfi")
0011 
0012 process.load("RecoVertex.PrimaryVertexProducer.OfflinePrimaryVertices_cfi")
0013 process.load("RecoJets.JetAssociationProducers.ak5JTA_cff")
0014 
0015 process.load("RecoBTau.JetTagComputer.jetTagRecord_cfi")
0016 process.load("RecoBTag.ImpactParameter.impactParameter_cff")
0017 
0018 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0019 
0020 process.source = cms.Source("PoolSource",
0021     fileNames = cms.untracked.vstring('file:ttbar.root')
0022 )
0023 
0024 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0025     process.CondDBSetup,
0026     timetype = cms.string('runnumber'),
0027     toGet = cms.VPSet(
0028         cms.PSet(
0029             record = cms.string('BTauGenericMVAJetTagComputerRcd'),
0030             tag = cms.string('test_tag')
0031         )
0032     ),
0033     connect = cms.string('sqlite_file:MVATestJetTags.db'),
0034     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService')
0035 )
0036 
0037 process.Output = cms.OutputModule("PoolOutputModule",
0038     fileName = cms.untracked.string('file:test.root'),
0039     outputCommands = cms.untracked.vstring(
0040         'drop *', 
0041         'keep recoJetTags_*_*_*', 
0042         'keep *_ak5JetTracksAssociatorAtVertex_*_*', 
0043         'keep *_ak5CaloJets_*_*', 
0044         'keep *_trackCountingJetTags_*_*', 
0045         'keep *_impactParameterTagInfos_*_*', 
0046         'keep recoTrackExtras_*_*_*', 
0047         'keep recoTracks_*_*_*', 
0048         'keep recoVertexs_*_*_*')
0049 )
0050 
0051 process.p = cms.Path(
0052     process.offlinePrimaryVertices *
0053     process.ak5JetTracksAssociatorAtVertex *
0054     process.impactParameterTagInfos *
0055     process.impactParameterMVABJetTags
0056 )
0057 
0058 process.outpath = cms.EndPath(process.Output)