| The Gaudi Framework v27r1

- 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 687 of file pTools.py.

687 def getEventNumber( evt ) :
688 # The class-independent version of the Event Number Retrieval method
689 #
690 n = None
691 # First Attempt : Unpacked Event Data
692 lst = [ '/Event/Gen/Header',
693 '/Event/Rec/Header' ]
694 for l in lst :
695 try :
696 n = evt[l].evtNumber()
697 return n
698 except :
699 # No evt number at this path
700 continue
701
702 # second attepmt : try DAQ/RawEvent data
703 # The Evt Number is in bank type 16, bank 0, data pt 4
704 try :
705 n = evt['/Event/DAQ/RawEvent'].banks(16)[0].data()[4]
706 return n
707 except :
708 pass
709
710 # Default Action
711 return n
712
713 # ================================= EOF =======================================
714
715
716
GaudiMP.pTools.getEventNumber
def getEventNumber(evt)
Definition: pTools.py:687

## Variable Documentation

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

Definition at line 45 of file pTools.py.