| The Gaudi Framework v29r0 (ff2e7097)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Namespace List
- Namespace Members

Classes | Functions | Variables
GaudiMP.pTools Namespace Reference

## Classes
class | FileRecordsAgent
class | HistoAgent
class | LumiFSR
class | PackedCaloHypo
class | Syncer
class | SyncMini

## Functions
def | getEventNumber (evt)

## Variables
| aida2root = gbl.Gaudi.Utils.Aida2ROOT.aida2root

## Function Documentation

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

Definition at line 710 of file pTools.py.

710 def getEventNumber(evt):
711 # The class-independent version of the Event Number Retrieval method
712 #
713 n = None
714 # First Attempt : Unpacked Event Data
715 lst = ['/Event/Gen/Header',
716 '/Event/Rec/Header']
717 for l in lst:
718 try:
719 n = evt[l].evtNumber()
720 return n
721 except:
722 # No evt number at this path
723 continue
724
725 # second attepmt : try DAQ/RawEvent data
726 # The Evt Number is in bank type 16, bank 0, data pt 4
727 try:
728 n = evt['/Event/DAQ/RawEvent'].banks(16)[0].data()[4]
729 return n
730 except:
731 pass
732
733 # Default Action
734 return n
735
736 # ================================= EOF =======================================
737
GaudiMP.pTools.getEventNumber
def getEventNumber(evt)
Definition: pTools.py:710

## Variable Documentation

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

Definition at line 46 of file pTools.py.