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 
0020 # produce PAT Layer 1
0021 process.load("PhysicsTools.PatAlgos.patSequences_cff")
0022 # switch old trigger matching off
0023 from PhysicsTools.PatAlgos.tools.trigTools import switchOffTriggerMatchingOld
0024 switchOffTriggerMatchingOld( process )
0025 
0026 # source
0027 process.source = cms.Source("PoolSource",
0028     fileNames = cms.untracked.vstring(
0029         '/store/mc/Fall08/TTJets-madgraph/GEN-SIM-RECO/IDEAL_V11_redigi_v10/0000/06FC3959-4DFC-DD11-B504-00E08178C091.root',
0030     )
0031 )
0032 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0033 
0034 process.TFileService = cms.Service("TFileService",
0035     fileName = cms.string("analyzePatBJetTags.root")
0036 )
0037 
0038 process.analyzeBJetTags = cms.EDAnalyzer("PatBJetTagAnalyzer",
0039     # input collections
0040     jets = cms.InputTag("selectedLayer1Jets"),
0041 
0042     #jet cuts
0043     jetPtCut = cms.double(30),
0044     jetEtaCut = cms.double(2.4)
0045 )
0046 
0047 process.p = cms.Path(
0048     process.patDefaultSequence *
0049     process.analyzeBJetTags
0050 )