| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

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

- Namespace List
- Namespace Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 687 of file pTools.py.

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

## Variable Documentation

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

Definition at line 45 of file pTools.py.