Public Member Functions | |
def | __init__ |
def | initialize |
def | execute |
def | finalize |
Definition at line 13 of file Example_SimEvent.py.
def Example_SimEvent::ExampleAlg::__init__ | ( | self, | ||
name | ||||
) |
Definition at line 15 of file Example_SimEvent.py.
00015 : 00016 GaudiAlgo.__init__(self,name) 00017 return 00018 def initialize(self):
def Example_SimEvent::ExampleAlg::initialize | ( | self | ) |
Definition at line 19 of file Example_SimEvent.py.
00019 : 00020 status = GaudiAlgo.initialize(self) 00021 print "Init ExampleAlg",self.name() 00022 if status.isFailure(): return status 00023 return SUCCESS 00024 def execute(self):
def Example_SimEvent::ExampleAlg::execute | ( | self | ) |
Definition at line 25 of file Example_SimEvent.py.
00025 : 00026 print "Executing ExampleAlg",self.name() 00027 evt = self.evtSvc() 00028 hdr = evt["/Event/Sim/SimHeader"] 00029 shh = hdr.hits() 00030 for detector in shh.hitDetectors(): 00031 print "Detector: ",detector 00032 hitCollection = shh.hitsByDetector(detector) 00033 print "Hits: ",hitCollection 00034 if hitCollection == None: 00035 print "No Hit Collection for detector ",detector 00036 hits = hitCollection.collection() 00037 for hit in hits: 00038 print " PMT",hit.sensDetId(),"hit at time",hit.hitTime() 00039 return SUCCESS 00040 def finalize(self):
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