| The Gaudi Framework v32r1 (f65d50dc)

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

## ◆ getEventNumber()

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

Definition at line 719 of file pTools.py.

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

## Variable Documentation

## ◆ aida2root

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

Definition at line 45 of file pTools.py.