File indexing completed on 2024-04-06 12:15:34
0001 import FWCore.ParameterSet.Config as cms
0002 from PhysicsTools.PatAlgos.tools.helpers import getPatAlgosToolsTask
0003
0004 process = cms.Process("bphAnalysis")
0005
0006 patAlgosToolsTask = getPatAlgosToolsTask(process)
0007
0008
0009 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1000) )
0010
0011 process.load("Configuration.Geometry.GeometryRecoDB_cff")
0012 process.load("Configuration.StandardSequences.MagneticField_cff")
0013 process.load('Configuration.StandardSequences.Services_cff')
0014 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0015 process.load('FWCore.MessageService.MessageLogger_cfi')
0016 process.load('Configuration.EventContent.EventContent_cff')
0017 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0018 process.load('Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff')
0019 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0020 patAlgosToolsTask.add(process.MEtoEDMConverter)
0021 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0022 process.load("TrackingTools/TransientTrack/TransientTrackBuilder_cfi")
0023
0024 process.MessageLogger.cerr.FwkReport.reportEvery = 100
0025 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0026
0027 process.source = cms.Source("PoolSource",fileNames = cms.untracked.vstring(
0028
0029
0030 '/store/mc/RunIISpring15DR74/BsToJpsiPhi_BMuonFilter_TuneCUEP8M1_13TeV-pythia8-evtgen/MINIAODSIM/Asympt25nsRaw_MCRUN2_74_V9-v1/50000/0E685515-8661-E511-8274-00259073E3B6.root'
0031
0032
0033
0034
0035
0036
0037
0038 ))
0039
0040 from Configuration.AlCa.GlobalTag import GlobalTag
0041 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0042
0043 process.testBPHRecoDecay = cms.EDAnalyzer('TestBPHRecoDecay',
0044 patMuonLabel = cms.string('slimmedMuons::PAT'),
0045 pcCandsLabel = cms.string('packedPFCandidates::PAT'),
0046 outDump = cms.string('dump_mini.txt'),
0047 outHist = cms.string('hist_mini.root')
0048 )
0049
0050 process.p = cms.Path(
0051 process.testBPHRecoDecay,
0052 patAlgosToolsTask
0053 )