Gaudi Framework, version v23r5

Home   Generated: Wed Nov 28 2012
 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 682 of file pTools.py.

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

Variable Documentation

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

Definition at line 45 of file pTools.py.


Generated at Wed Nov 28 2012 12:17:39 for Gaudi Framework, version v23r5 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004