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 # source
0015 process.source = cms.Source("PoolSource",
0016     fileNames = cms.untracked.vstring(
0017     '/store/mc/Summer08/Zee_M20/GEN-SIM-RECO/IDEAL_V11_redigi_v1/0005/1E2DDC37-EC1A-DE11-BB33-0030487F933D.root',
0018     '/store/mc/Summer08/Zee_M20/GEN-SIM-RECO/IDEAL_V11_redigi_v1/0005/32BEC84F-DE1A-DE11-9602-0030487EB003.root',
0019     '/store/mc/Summer08/Zee_M20/GEN-SIM-RECO/IDEAL_V11_redigi_v1/0005/32EB7039-DE1A-DE11-97EE-003048724749.root',
0020     '/store/mc/Summer08/Zee_M20/GEN-SIM-RECO/IDEAL_V11_redigi_v1/0005/46ECF224-E81A-DE11-99A0-0030487D7B79.root',
0021     '/store/mc/Summer08/Zee_M20/GEN-SIM-RECO/IDEAL_V11_redigi_v1/0005/8AC19B36-EC1A-DE11-99EA-0030487E4B8D.root',
0022     '/store/mc/Summer08/Zee_M20/GEN-SIM-RECO/IDEAL_V11_redigi_v1/0005/B4899F1C-E81A-DE11-92FF-0030487F1797.root',
0023     '/store/mc/Summer08/Zee_M20/GEN-SIM-RECO/IDEAL_V11_redigi_v1/0005/E6298150-E71A-DE11-A7FD-0030487F92A5.root'    
0024     )
0025 )
0026 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0027 
0028 process.load("Configuration.StandardSequences.Geometry_cff")
0029 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0030 process.GlobalTag.globaltag = cms.string('STARTUP_V7::All')
0031 process.load("Configuration.StandardSequences.MagneticField_cff")
0032 
0033 # produce PAT Layer 1
0034 process.load("PhysicsTools.PatAlgos.patSequences_cff")
0035 # switch old trigger matching off
0036 from PhysicsTools.PatAlgos.tools.trigTools import switchOffTriggerMatchingOld
0037 switchOffTriggerMatchingOld( process )
0038 
0039 process.TFileService=cms.Service("TFileService",
0040     fileName=cms.string("analyzePatElectron.root")
0041 )
0042 
0043 # calcultae the efficiency for electron reconstruction
0044 # from the simulation
0045 process.load("PhysicsTools.PatExamples.PatElectronAnalyzer_cfi")
0046 
0047 # calculate the efficiency for electronID from a tag
0048 # and probe method
0049 process.load("PhysicsTools.PatExamples.tagAndProbeAnalysis_cff")
0050 
0051 process.p = cms.Path(
0052     process.patDefaultSequence *
0053     process.analyzePatElectron *
0054     process.tagAndProbeAnalysis
0055 )