/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 | Public Attributes
DetHelpers::TestCoordSysSvc::TesterAlg2 Class Reference
Inheritance diagram for DetHelpers::TestCoordSysSvc::TesterAlg2:
Inheritance graph
[legend]
Collaboration diagram for DetHelpers::TestCoordSysSvc::TesterAlg2:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def initialize
def execute

Public Attributes

 gp
 should_fail
 css
 ExecuteOnce

Detailed Description

Definition at line 88 of file TestCoordSysSvc.py.


Constructor & Destructor Documentation

def DetHelpers::TestCoordSysSvc::TesterAlg2::__init__ (   self,
  myname,
  global_points,
  should_fail = False 
)

Definition at line 90 of file TestCoordSysSvc.py.

00091                                                                :
00092         GaudiAlgo.__init__(self,myname)
00093         self.gp = global_points
00094         self.should_fail = should_fail
00095         return


Member Function Documentation

StatusCode PmtGeomInfoSvc::initialize (   self)

Definition at line 96 of file TestCoordSysSvc.py.

00097                         :
00098         sc = GaudiAlgo.initialize(self)
00099         if sc.isFailure(): 
00100             print 'Failed to initialize GaudiAlgo base class'
00101             return sc
00102         self.css = self.svc('ICoordSysSvc','CoordSysSvc')
00103         if not self.css: 
00104             print 'Failed to get CoordSysSvc'
00105             return FAILURE
00106         self.ExecuteOnce = True
00107         return sc;

def DetHelpers::TestCoordSysSvc::TesterAlg2::execute (   self)

Definition at line 108 of file TestCoordSysSvc.py.

00109                      :
00110 
00111         import PyCintex
00112         Gaudi = PyCintex.makeNamespace('Gaudi')
00113         gpoint = Gaudi.XYZPoint(self.gp[0],self.gp[1],self.gp[2])
00114 
00115         print 'Checking %f,%f,%f'%(self.gp[0],self.gp[1],self.gp[2])
00116         btde = self.css.belongsToDE(gpoint)
00117         print 'Found belong to DE: %s'%btde.name()
00118         lpoint = btde.geometry().toLocal(gpoint)
00119         print 'Local point in belongs to DE: %f,%f,%f'%(lpoint.x(),lpoint.y(),lpoint.z())
00120 
00121         # Find coord system
00122         csde = self.css.coordSysDE(gpoint)
00123         if csde:
00124             print 'Found coord sys DE: %s'%csde.name()
00125             if self.should_fail:
00126                 print '\tbut, I should not have.'
00127                 return FAILURE
00128             return SUCCESS
00129         print 'Failed to find coord sys DE for point'
00130         if self.should_fail:
00131             print '\twhich is as expected'
00132             return SUCCESS
00133         return FAILURE


Member Data Documentation

Definition at line 90 of file TestCoordSysSvc.py.

Definition at line 90 of file TestCoordSysSvc.py.

Definition at line 96 of file TestCoordSysSvc.py.

Definition at line 96 of file TestCoordSysSvc.py.


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

Generated on Fri May 16 2014 09:56:27 for DetHelpers by doxygen 1.7.4