Misc. CMSSW notes / howtos

How to list L1 Trigger decisions from EDM file?

Using FWLite and pyROOT:

import ROOT
from DataFormats.FWLite import Events, Handle

events = Events ('myEdmFile.root')

handle = Handle ('L1GlobalTriggerObjectMapRecord')
label = ("hltL1GtObjectMap")


for event in events:

        l1trig = handle.product()
        for i in range(128):
                        trg = l1trig.getObjectMap(i)
                        print trg.algoBitNumber(), trg.algoName(), trg.algoGtlResult()
                except ReferenceError:

Misc. CRAB related notes / howtos

Edit | Attach | Watch | Print version | History: r5 | r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 2012-01-11 - AndrzejZuranski
    • 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-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback