IsoDeposits

Complete: 2

Introduction

IsoDeposits are a generic way to store 'deposits' of energy around candidates to easily recompute the isolation sum using various veto techniques.

Tutorials

  • A config file:

process.load("RecoEgamma.EgammaIsolationAlgos.egammaIsolationSequence_cff")
process.load("RecoEgamma.EgammaIsolationAlgos.egammaIsolationSequencePAT_cff")

process.eleIsoFromDepsTk = cms.EDProducer("CandIsolatorFromDeposits",
    deposits = cms.VPSet(cms.PSet(
        mode = cms.string('sum'),
        src = cms.InputTag("eleIsoDepositTk"),
        weight = cms.string('1'),
        deltaR = cms.double(0.3),
        vetos = cms.vstring(
            'RectangularEtaPhiVeto(-0.015,0.015,-0.5,0.5)',
            'Threshold(0.7)'
            #'muons:Threshold(0.7)',
            #'muons:0.015',
        ),
        skipDefaultVeto = cms.bool(True)
    ))
)

process.p1 = cms.Path( process.eleIsoDepositTk + process.eleIsoFromDepsTk)

  • In the EDAnalyzer:

edm::Handle<reco::GsfElectronCollection> gsfH;
iEvent.getByLabel("gsfElectrons", gsfH);

edm::Handle<edm::ValueMap<double> > vm;
iEvent.getByLabel("eleIsoFromDepsTk",vm);     

for(gsfSizeType i=0;i<gsfH->size();++i) {
    reco::GsfElectronRef gsf(gsfH, i);

    myHist->Fill( (*vm)[gsf] );
}

  • Or from the tree directly:

Events->Alias("ele","recoGsfElectrons_gsfElectrons__RECO")
Events->Alias("tkIso","doubleedmValueMap_eleIsoFromDepsTk__IsoDeps.obj.values_")
Events->Draw("tkIso/ele.pt()","abs(ele.eta()) < 1.4")

Documentation

Review status

Reviewer/Editor and Date (copy from screen) Comments
MatthewLeBourgeois - 14 Jul 2009 created page

Responsible: ??
Last reviewed by: MatthewLeBourgeois

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2010-04-28 - MatthewLeBourgeois
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CMSPublic All webs login

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