/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::polyCone Class Reference

List of all members.

Public Member Functions

def __init__
def xml

Public Attributes

 zP
 name
 initPhi
 dPhi
 nSection

Detailed Description

Definition at line 150 of file geometry.py.


Constructor & Destructor Documentation

def XmlDetDescGen::geometry::polyCone::__init__ (   self,
  name,
  zPos,
  outerRad,
  innerRad = None,
  initPhi = None,
  dPhi = None 
)

Definition at line 152 of file geometry.py.

00154                                                         :
00155         self.zP=[]
00156         self.name=name
00157         self.initPhi=initPhi
00158         self.dPhi=dPhi
00159         self.nSection=len(zPos)
00160         print "polyCone # of zPlanes: ", self.nSection
00161         for i in range(self.nSection):
00162             if innerRad:
00163                 self.zP.append(zPlane(zPos[i], outerRad[i], innerRad[i]))
00164             else: 
00165                 self.zP.append(zPlane(zPos[i], outerRad[i]))
        return

Member Function Documentation

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

Definition at line 179 of file geometry.py.

00180                           :
00181         if self.name in ["oav","lso","iav","gds"]:
00182             # Hack to use union of cylinder plus polycone
00183             fo.write('%s<union name="%s">\n'%(pre,self.name))
00184             fo.write('%s<tubs name="%s_cyl"\n'%(pre+'  ',self.name))
00185             fo.write('%s      sizeZ="%s"\n'%(pre+'  ',self.zP[1].z))
00186             fo.write('%s      outerRadius="%s"\n'%(pre+'  ',self.zP[1].outerRadius))
00187             fo.write('%s      />\n'%(pre+'  '))
00188             fo.write('%s<polycone name="%s_polycone"'%(pre+'  ',self.name))
00189             if self.initPhi:  
00190                 fo.write('\n%sstartPhiAngle="%s"'%(pre+'      ', self.initPhi))
00191             if self.dPhi:  
00192                 fo.write('\n%sdeltaPhiAngle="%s"'%(pre+'      ', self.dPhi))
00193             fo.write('>\n')
00194             for i in range(2,self.nSection):
00195                 self.zP[i].xml(fo, pre+'    ')
00196             fo.write('%s</polycone>\n'%(pre+'  '))
00197             fo.write('%s<posXYZ z="-(%s)/2"/>\n'%(pre+'  ',self.zP[1].z))
00198             fo.write('%s</union>\n'%pre)
00199             return
00200         else:
00201             fo.write('%s<polycone name="%s"'%(pre,self.name))
00202             if self.initPhi:  
00203                 fo.write('\n%sstartPhiAngle="%s"'%(pre+'    ', self.initPhi))
00204             if self.dPhi:  
00205                 fo.write('\n%sdeltaPhiAngle="%s"'%(pre+'    ', self.dPhi))
00206             fo.write('>\n')
00207             for i in range(self.nSection):
00208                 self.zP[i].xml(fo, pre+'  ')
00209             fo.write('%s</polycone>\n'%pre)
00210             return
00211 


Member Data Documentation

Definition at line 152 of file geometry.py.

Definition at line 152 of file geometry.py.

Definition at line 152 of file geometry.py.

Definition at line 152 of file geometry.py.

Definition at line 152 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