| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Inspector Namespace Reference


Functions

def _new_shift_
 helper function for inspection of variosu objects
def _new_init_
 new (python-oritnted) constructor for LHCb::Inspector

Variables

string __author__ = "Vanya BELYAEV Ivan.BElyaev@nikhef.nl"
 _Inspector = _cpp.LHCb.Inspector
 _old_init_ = _Inspector.__init__
 extend the documentation

Function Documentation

def Inspector::_new_shift_ (   self,
  obj 
) [private]

helper function for inspection of variosu objects

Helper function for inspection of variosu objects:

>>> obj = ...   # get the object
>>> ins << obj  # inspect it uinsg the inspector

Definition at line 58 of file Inspector.py.

00058                                :
00059     """
00060     Helper function for inspection of variosu objects:
00061     
00062     >>> obj = ...   # get the object
00063     >>> ins << obj  # inspect it uinsg the inspector
00064     
00065     """
00066     iobj = None 
00067     if   hasattr ( obj , '_isvc' ) and obj._isvc : iobj = obj._isvc
00068     elif hasattr ( obj , '_ialg' ) and obj._ialg : iobj = obj._ialg
00069     elif hasattr ( obj , '_ip'   ) and obj._ip   : iobj = obj._ip
00070     
00071     if not iobj :
00072         raise AttributeError, ' cannot find proper valid interface for %s'%obj
00073     
00074     lines = self.inspect ( iobj ).split ('\n')
00075     for line in lines : print line 
00076 
00077     return self
00078 
## extend the documentation 

def Inspector::_new_init_ (   self,
  props,
  members = ( 'Members' , 'TopAlg' 
) [private]

new (python-oritnted) constructor for LHCb::Inspector

New (python-oriented) constructor:

>>> int = Inspector ( ['OutputLevel', 'InputSelection'] )


Definition at line 87 of file Inspector.py.

00089                                                       :
00090     """
00091     
00092     New (python-oriented) constructor:
00093     
00094     >>> int = Inspector ( ['OutputLevel', 'InputSelection'] )
00095     
00096     
00097     """
00098     if type(props) is str : props = (props,)
00099     if type(props) is list or type(props) is tuple :
00100         _vct = _cpp.std.vector('std::string')()
00101         for p in props : _vct.push_back ( p )
00102         props = _vct
00103         
00104     if type(members) is str : members = (members,)
00105     if type(members) is list or type(members) is tuple :
00106         _vct = _cpp.std.vector('std::string')()
00107         for p in members : _vct.push_back ( p )
00108         members = _vct 
00109     return _old_init_ ( self , props , members ) 
00110     
## extend the documentation 


Variable Documentation

string Inspector::__author__ = "Vanya BELYAEV Ivan.BElyaev@nikhef.nl" [static]

Definition at line 50 of file Inspector.py.

Inspector::_Inspector = _cpp.LHCb.Inspector [static]

Definition at line 55 of file Inspector.py.

Inspector::_old_init_ = _Inspector.__init__ [static]

extend the documentation

Definition at line 84 of file Inspector.py.

| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:03:14 2011 for LHCbKernel by doxygen 1.4.7