Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:15:38

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from PhysicsTools.PatAlgos.tools.helpers import getPatAlgosToolsTask
0004 
0005 process = cms.Process("bphAnalysis")
0006 
0007 patAlgosToolsTask = getPatAlgosToolsTask(process)
0008 
0009 #process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0010 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1000) )
0011 
0012 process.load("Configuration.Geometry.GeometryRecoDB_cff")
0013 process.load("Configuration.StandardSequences.MagneticField_cff")
0014 process.load('Configuration.StandardSequences.Services_cff')
0015 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0016 process.load('FWCore.MessageService.MessageLogger_cfi')
0017 process.load('Configuration.EventContent.EventContent_cff')
0018 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0019 process.load('Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff')
0020 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0021 patAlgosToolsTask.add(process.MEtoEDMConverter)
0022 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0023 process.load("TrackingTools/TransientTrack/TransientTrackBuilder_cfi")
0024 
0025 process.CandidateSelectedTracks = cms.EDProducer( "ConcreteChargedCandidateProducer",
0026                 src=cms.InputTag("oniaSelectedTracks::RECO"),
0027                 particleType=cms.string('pi+')
0028 )
0029 patAlgosToolsTask.add(process.CandidateSelectedTracks)
0030 
0031 
0032 from PhysicsTools.PatAlgos.producersLayer1.genericParticleProducer_cfi import patGenericParticles
0033 process.patSelectedTracks = patGenericParticles.clone(src=cms.InputTag("CandidateSelectedTracks"))
0034 patAlgosToolsTask.add(process.patSelectedTracks)
0035 
0036 
0037 process.MessageLogger.cerr.FwkReport.reportEvery = 100
0038 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0039 
0040 process.source = cms.Source("PoolSource",fileNames = cms.untracked.vstring(
0041 #
0042 ### use this to access the nearest copy of the input file, querying the catalog
0043 #
0044     '/store/data/Run2016E/Charmonium/USER/BPHSkim-PromptReco-v2/000/276/831/00000/00FD1519-714D-E611-B686-FA163E321AE0.root'
0045 ### use this to access the input file if by any reason you want to specify 
0046 ### the data server
0047 #    'root://xrootd-cms.infn.it//store/data/Run2016E/Charmonium/USER/BPHSkim-PromptReco-v2/000/276/831/00000/00FD1519-714D-E611-B686-FA163E321AE0.root'
0048 #
0049 ### use this to access an input file locally available
0050 #    'file:/...complete_file_path.../XXXX.root'
0051 ))
0052 
0053 from Configuration.AlCa.GlobalTag import GlobalTag
0054 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_data', '')
0055 
0056 process.testBPHSpecificDecay = cms.EDAnalyzer('TestBPHSpecificDecay',
0057     gpCandsLabel = cms.string('patSelectedTracks'),
0058     ccCandsLabel = cms.string('onia2MuMuPAT::RECO'),
0059     outDump = cms.string('dump_skim.txt'),
0060     outHist = cms.string('hist_skim.root')
0061 )
0062 
0063 process.p = cms.Path(
0064     process.testBPHSpecificDecay,
0065     patAlgosToolsTask
0066 )
0067