semileptonic ttbar studies with electrons

analysis setup

recipe for dummies

cmsrel CMSSW_3_7_1
cd CMSSW_3_7_1/src
cmsenv
cvs co -r  Colin_Sept14_histos -d   AnalysisDataFormats/PFAnalyses UserCode/PFAnalyses/AnalysisDataFormats/PFAnalyses      
cvs co -r  mnguyen_Sept29 -d   PFAnalyses/CommonTools   UserCode/PFAnalyses/CommonTools   
cvs co -r  Colin_Sept28_newSamplesInterface -d   PFAnalyses/RootTools  UserCode/PFAnalyses/RootTools                          
cvs co -r  Artur_Sept28_prod  -d   PFAnalyses/TemplateAnalysis  UserCode/PFAnalyses/TemplateAnalysis  
cvs co -r Michal_July6_CMSSW_3_7_0_patch4 PhysicsTools/PatAlgos
cvs co -r V04-06-01 PhysicsTools/PFCandProducer
cvs up -r 1.46.2.2 PhysicsTools/PatAlgos/python/tools/pfTools.py 
cvs up -r 1.57.4.1 PhysicsTools/PatAlgos/python/tools/jetTools.py
cvs co -r V00-02-16 CommonTools/Utils
cvs co -r V00-02-17 PhysicsTools/SelectorUtils           
scram b -j 4            
cvs co -d PFAnalyses/PGTTbarSemiEle UserCode/Govoni/PGTTbarSemiEle
scram b -j 4
cp PFAnalyses/PGTTbarSemiEle/python/otherPackages/electronProducer_cff.py PhysicsTools/PatAlgos/python/producersLayer1/electronProducer_cff.py

files description

  • DumpEventID.py list the event and run number for each event in a root file
  • pickup_events.py extract a subset of events from a root file
  • stdPat_creator_selected.py produce std PAT-tuples from RECO
  • patTuple_PF2PAT_cfg.py produce std and PFlow PAT-tuples from RECO
  • PATTrivialPlots_both.py plot basic quantities for both std PAT objects and PFlow PAT objects
  • PATTrivialTree_both.py put basic quantities into TNtuples for each type of physics objects, for both std PAT objects and PFlow PAT objects
  • PATTrivialPlots_std.py plot basic quantities for std PAT objects

pat-tuples production

  • edit ../../../PhysicsTools/PatAlgos/python/producersLayer1/electronProducer_cff.py to add full electron ID and ISO

object min pt (GeV) rel min combined iso
PF electrons 15 -
PF muons 5 0.14
PF jets 10 -

useful things

links

extract the first N events from a data file

import FWCore.ParameterSet.Config as cms
process = cms.Process("PICKEVENTS")
process.source = cms.Source("PoolSource",
    fileNames = cms.untracked.vstring( 'file:/tmp/govoni/6E7C4631-9D47-DF11-96CE-003048C69288.root' )
#    eventsToProcess = cms.untracked.VEventRange( '1:909002-1:909767' ) # THIS LINE SHOULD WORK
)
process.Out = cms.OutputModule("PoolOutputModule",
    outputCommands = cms.untracked.vstring('keep *'),
    fileName = cms.untracked.string('requested_events.root')
)
process.e = cms.EndPath(process.Out)
process.maxEvents = cms.untracked.PSet(
    input = cms.untracked.int32(100)
)

-- PietroGovoni - 30-Sep-2010

Edit | Attach | Watch | Print version | History: r13 < r12 < r11 < r10 < r9 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r13 - 2010-10-05 - PietroGovoni
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback