Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:24:02

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("Test")
0004 
0005 # initialize MessageLogger and output report
0006 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0007 process.MessageLogger.cerr.threshold = 'INFO'
0008 process.MessageLogger.cerr.INFO = cms.untracked.PSet(
0009     default          = cms.untracked.PSet( limit = cms.untracked.int32(0)  ),
0010     PATSummaryTables = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
0011 )
0012 process.options   = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0013 
0014 process.load("Configuration.StandardSequences.GeometryDB_cff")
0015 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0016 process.load("Configuration.StandardSequences.MagneticField_cff")
0017 
0018 process.GlobalTag.globaltag = cms.string( autoCond[ 'phase1_2022_realistic' ] )
0019 # produce PAT Layer 1
0020 process.load("PhysicsTools.PatAlgos.patSequences_cff")
0021 # switch old trigger matching off
0022 from PhysicsTools.PatAlgos.tools.trigTools import switchOffTriggerMatchingOld
0023 switchOffTriggerMatchingOld( process )
0024 
0025 # source
0026 process.source = cms.Source("PoolSource",
0027     fileNames = cms.untracked.vstring(
0028         '/store/mc/Fall08/TTJets-madgraph/GEN-SIM-RECO/IDEAL_V11_redigi_v10/0000/06FC3959-4DFC-DD11-B504-00E08178C091.root',
0029     )
0030 )
0031 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0032 
0033 process.TFileService = cms.Service("TFileService",
0034     fileName = cms.string("analyzePatBJetVertex.root")
0035 )
0036 
0037 process.analyzeBJetVertex = cms.EDAnalyzer("PatBJetVertexAnalyzer",
0038     # input collections
0039     jets = cms.InputTag("selectedLayer1Jets"),
0040 
0041     #jet cuts
0042     jetPtCut = cms.double(30),
0043     jetEtaCut = cms.double(2.4)
0044 )
0045 
0046 process.p = cms.Path(
0047     process.patDefaultSequence *
0048     process.analyzeBJetVertex
0049 )