| # Gaudi Framework, version v23r0 |

Home |  | Generated: Mon Jan 30 2012

Classes | Functions | Variables

# GaudiMP::pTools Namespace Reference

## Classes
class | HistoAgent
class | FileRecordsAgent
class | LumiFSR
class | PackedCaloHypo
class | SyncMini
class | Syncer
## Functions
def | getEventNumber
## Variables
| aida2root = gbl.Gaudi.Utils.Aida2ROOT.aida2root

## Function Documentation

def GaudiMP::pTools::getEventNumber | ( |  | evt ) |

Definition at line 673 of file pTools.py.

    00674                           :
    00675     # The class-independent version of the Event Number Retrieval method
    00676     #
    00677     n = None
    00678     # First Attempt : Unpacked Event Data
    00679     lst = [ '/Event/Gen/Header',
    00680             '/Event/Rec/Header' ]
    00681     for l in lst :
    00682         try :
    00683             n = evt[l].evtNumber()
    00684             return n
    00685         except :
    00686             # No evt number at this path
    00687             continue
    00688
    00689     # second attepmt : try DAQ/RawEvent data
    00690     # The Evt Number is in bank type 16, bank 0, data pt 4
    00691     try :
    00692         n = evt['/Event/DAQ/RawEvent'].banks(16)[0].data()[4]
    00693         return n
    00694     except :
    00695         pass
    00696
    00697     # Default Action
    00698     return n
    00699
    00700 # ================================= EOF =======================================
    00701
    00702

## Variable Documentation

GaudiMP::pTools::aida2root = gbl.Gaudi.Utils.Aida2ROOT.aida2root

Definition at line 45 of file pTools.py.

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines