|
Gaudi Framework, version v21r9 |
| Home | Generated: 3 May 2010 |
Public Member Functions | |
| def | initialize |
| def | execute |
| def | finalize |
Public Attributes | |
| evt | |
| his | |
| h1 | |
| h2 | |
Definition at line 50 of file Test.py.
| def Test::PhysAnalAlg::initialize | ( | self | ) |
Definition at line 51 of file Test.py.
00051 : 00052 self.evt = gaudi.DataSvc(g.service('EventDataSvc')) 00053 self.his = gaudi.HistoSvc(g.service('HistogramDataSvc')) 00054 print 'Initializing User Analysis...' 00055 self.h1 = self.his.book('myhisto1', 'Histogram 1D for tests', 20, 0., 40.) 00056 self.h2 = self.his.book('myhisto2', 'Histogram 2D for test2', 20, 0., 40., 20, 0., 10.) 00057 print '....User Analysis Initialized' 00058 return 1 def execute(self):
| def Test::PhysAnalAlg::execute | ( | self | ) |
Definition at line 59 of file Test.py.
00059 : 00060 tks = self.evt.object('MyTracks') 00061 print 'MyTracks collection contains ' + `len(tks)` + ' Tracks' 00062 for t in tks : 00063 self.h1.fill( math.sqrt(t.px*t.px + t.py*t.py + t.pz*t.pz), 1) 00064 self.h2.fill( t.px, t.py ) 00065 return 1 def finalize(self):
| def Test::PhysAnalAlg::finalize | ( | self | ) |