/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
XmlDetDescGen::geometry::Physvol Class Reference

List of all members.

Public Member Functions

def __init__
def xml

Public Attributes

 name
 logvol
 pos
 rot

Detailed Description

Definition at line 32 of file geometry.py.


Constructor & Destructor Documentation

def XmlDetDescGen::geometry::Physvol::__init__ (   self,
  name,
  logvol,
  pos = None,
  rot = None 
)

Definition at line 34 of file geometry.py.

00035                                                     :
00036         self.name = name
00037         self.logvol = logvol
00038         self.pos = pos
00039         self.rot = rot
00040         return


Member Function Documentation

def XmlDetDescGen::geometry::Physvol::xml (   self,
  fo,
  pre 
)

Definition at line 41 of file geometry.py.

00042                         :
00043 
00044         if self.logvol.__class__ == Logvol:
00045             lvname = self.logvol.full_path
00046         else:
00047             lvname = self.logvol
00048 
00049         fo.write('%s<physvol name="%s" logvol="%s">\n'%(pre,self.name,lvname))
00050         if self.pos: self.pos.xml(fo,pre+'  ')
00051         if self.rot: self.rot.xml(fo,pre+'  ')
00052         fo.write('%s</physvol>\n'%pre)
00053         return
00054 


Member Data Documentation

Definition at line 34 of file geometry.py.

Definition at line 34 of file geometry.py.

Definition at line 34 of file geometry.py.

Definition at line 34 of file geometry.py.


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

Generated on Fri May 16 2014 09:56:07 for XmlDetDesc by doxygen 1.7.4