All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Test.PhysAnalAlg Class Reference
Inheritance diagram for Test.PhysAnalAlg:
Collaboration diagram for Test.PhysAnalAlg:

Public Member Functions

def initialize
 
def execute
 
def finalize
 

Public Attributes

 evt
 
 his
 
 h1
 
 h2
 

Detailed Description

Definition at line 50 of file Test.py.

Member Function Documentation

def Test.PhysAnalAlg.execute (   self)

Definition at line 59 of file Test.py.

59 
60  def execute(self):
61  tks = self.evt.object('MyTracks')
62  print 'MyTracks collection contains ' + `len(tks)` + ' Tracks'
63  for t in tks :
64  self.h1.fill( math.sqrt(t.px*t.px + t.py*t.py + t.pz*t.pz), 1)
65  self.h2.fill( t.px, t.py )
return 1
def execute
Definition: Test.py:59
def Test.PhysAnalAlg.finalize (   self)

Definition at line 66 of file Test.py.

66 
67  def finalize(self):
68  print 'Finalizing User Analysis...'
69  print self.h1
70  print self.h1.entries()
71  print self.h2
72  print '....User Analysis Finalized'
73  return 1
def finalize
Definition: Test.py:66
def Test.PhysAnalAlg.initialize (   self)

Definition at line 51 of file Test.py.

51 
52  def initialize(self):
53  self.evt = gaudi.DataSvc(g.service('EventDataSvc'))
54  self.his = gaudi.HistoSvc(g.service('HistogramDataSvc'))
55  print 'Initializing User Analysis...'
56  self.h1 = self.his.book('myhisto1', 'Histogram 1D for tests', 20, 0., 40.)
57  self.h2 = self.his.book('myhisto2', 'Histogram 2D for test2', 20, 0., 40., 20, 0., 10.)
58  print '....User Analysis Initialized'
return 1
def initialize
Definition: Test.py:51

Member Data Documentation

Test.PhysAnalAlg.evt

Definition at line 52 of file Test.py.

Test.PhysAnalAlg.h1

Definition at line 55 of file Test.py.

Test.PhysAnalAlg.h2

Definition at line 56 of file Test.py.

Test.PhysAnalAlg.his

Definition at line 53 of file Test.py.


The documentation for this class was generated from the following file: