/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions
Example_SimEvent::ExampleAlg Class Reference
Inheritance diagram for Example_SimEvent::ExampleAlg:
Inheritance graph
[legend]
Collaboration diagram for Example_SimEvent::ExampleAlg:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def initialize
def execute
def finalize

Detailed Description

Definition at line 13 of file Example_SimEvent.py.


Constructor & Destructor Documentation

def Example_SimEvent::ExampleAlg::__init__ (   self,
  name 
)

Definition at line 15 of file Example_SimEvent.py.

00016                            :
00017         GaudiAlgo.__init__(self,name)
00018         return


Member Function Documentation

def Example_SimEvent::ExampleAlg::initialize (   self)

Definition at line 19 of file Example_SimEvent.py.

00020                         :
00021         status = GaudiAlgo.initialize(self)
00022         print "Init ExampleAlg",self.name()
00023         if status.isFailure(): return status
00024         return SUCCESS

def Example_SimEvent::ExampleAlg::execute (   self)

Definition at line 25 of file Example_SimEvent.py.

00026                      :
00027         print "Executing ExampleAlg",self.name()
00028         evt = self.evtSvc()
00029         hdr = evt["/Event/Sim/SimHeader"]
00030         shh = hdr.hits()
00031         for detector in shh.hitDetectors():
00032             print "Detector: ",detector
00033             hitCollection = shh.hitsByDetector(detector)
00034             print "Hits: ",hitCollection
00035             if hitCollection == None:
00036                 print "No Hit Collection for detector ",detector
00037             hits = hitCollection.collection()
00038             for hit in hits:
00039                 print "  PMT",hit.sensDetId(),"hit at time",hit.hitTime() 
00040         return SUCCESS
        
def Example_SimEvent::ExampleAlg::finalize (   self)

Definition at line 41 of file Example_SimEvent.py.

00041                       :        
00042         print "Finalizing ExampleAlg",self.name()
00043         status = GaudiAlgo.finalize(self)
00044         return status
00045 

The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:49:50 for DivingIn by doxygen 1.7.4