Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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.Geometry_cff")
0015 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0016 process.load("Configuration.StandardSequences.MagneticField_cff")
0017 
0018 process.GlobalTag.globaltag = cms.string('IDEAL_V12::All')
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("analyzePatBJetTracks.root")
0036 )
0037 
0038 process.analyzeBJetTracks = cms.EDAnalyzer("PatBJetTrackAnalyzer",
0039     # input collections
0040     primaryVertices = cms.InputTag("offlinePrimaryVertices"),
0041     beamSpot = cms.InputTag("offlineBeamSpot"),
0042     tracks = cms.InputTag("generalTracks"),
0043     jets = cms.InputTag("selectedLayer1Jets"),
0044 
0045     #jet cuts
0046     jetPtCut = cms.double(30),
0047     jetEtaCut = cms.double(2.4),
0048 
0049     #track cuts
0050     maxDeltaR = cms.double(0.5),
0051     minPt = cms.double(1.0),
0052     minPixelHits = cms.uint32(2),
0053     minTotalHits = cms.uint32(8),
0054 
0055     # selecting the second-highest signed IP (i.e. "TrackCountingHighEff")
0056     nThTrack = cms.uint32(2)
0057 )
0058 
0059 process.p = cms.Path(
0060     process.patDefaultSequence *
0061     process.analyzeBJetTracks
0062 )