/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::Logvol Class Reference
Inheritance diagram for XmlDetDescGen::geometry::Logvol:
Inheritance graph
[legend]
Collaboration diagram for XmlDetDescGen::geometry::Logvol:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def xml
def set_path

Public Attributes

 material
 shape
 physvols
 name
 full_path

Detailed Description

Definition at line 8 of file geometry.py.


Constructor & Destructor Documentation

def XmlDetDescGen::geometry::Logvol::__init__ (   self,
  name,
  material,
  shape,
  physvols = [] 
)

Definition at line 10 of file geometry.py.

00011                                                       :
00012         reference.Referable.__init__(self,name)
00013         self.material = material
00014         self.shape = shape
00015         self.physvols = physvols
00016         return


Member Function Documentation

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

Definition at line 17 of file geometry.py.

00018                         :
00019         "Output self as XML to file object fo, prefacing each line with pre"
00020         material = ""
00021         if self.material:
00022             material = 'material="%s"' % self.material
00023         fo.write('%s<logvol name="%s" %s>\n'%(pre,self.name,material))
00024         if self.shape: self.shape.xml(fo,pre+'  ')
00025         for pv in self.physvols:
00026             if isinstance(pv, str):
00027                 fo.write('%s%s\n'%(pre,pv))
00028             else:
00029                 pv.xml(fo,pre+'  ')
00030         fo.write('%s</logvol>\n'%pre)
00031         return

def XmlDetDescGen::reference::Referable::set_path (   self,
  base 
) [inherited]

Definition at line 10 of file reference.py.

00011                            :
00012         self.full_path=base+"/"+self.name


Member Data Documentation

Definition at line 10 of file geometry.py.

Definition at line 10 of file geometry.py.

Definition at line 10 of file geometry.py.

Definition at line 5 of file reference.py.

Reimplemented in XmlDetDescGen::catalog::Catalog.

Definition at line 5 of file reference.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