Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
writer.writer Class Reference

Definition at line 16 of file writer.py.

Public Member Functions

 __init__ (self, fname)
 
 addArb8 (self, name, v1x, v1y, v2x, v2y, v3x, v3y, v4x, v4y, v5x, v5y, v6x, v6y, v7x, v7y, v8x, v8y, dz)
 
 addAssembly (self, volume, daughters)
 
 addBox (self, name, dx, dy, dz)
 
 addCone (self, name, z, rmin1, rmin2, rmax1, rmax2, sphi, dphi)
 
 addCutTube (self, name, rmin, rmax, z, startphi, deltaphi, lowX, lowY, lowZ, highX, highY, highZ)
 
 addElement (self, symb, name, z, a)
 
 addEltube (self, name, x, y, z)
 
 addHype (self, name, rmin, rmax, inst, outst, z)
 
 addIntersection (self, name, lname, ltr, lrot, rname, rtr, rrot)
 
 addMaterial (self, name, a, z, rho)
 
 addMixture (self, name, rho, elems)
 
 addPara (self, name, x, y, z, alpha, theta, phi)
 
 addParaboloid (self, name, rlo, rhi, dz)
 
 addPolycone (self, name, startphi, deltaphi, zplanes)
 
 addPolyhedra (self, name, startphi, deltaphi, numsides, zplanes)
 
 addPos (self, subels, type, name, v)
 
 addPosition (self, name, x, y, z)
 
 addReflSolid (self, name, solid, dx, dy, dz, sx, sy, sz, rx, ry, rz)
 
 addRot (self, subels, type, name, v)
 
 addRotation (self, name, x, y, z)
 
 addSetup (self, name, version, world)
 
 addSphere (self, name, rmin, rmax, startphi, deltaphi, starttheta, deltatheta)
 
 addSubtraction (self, name, lname, ltr, lrot, rname, rtr, rrot)
 
 addTorus (self, name, r, rmin, rmax, startphi, deltaphi)
 
 addTrap (self, name, z, theta, phi, y1, x1, x2, alpha1, y2, x3, x4, alpha2)
 
 addTrd (self, name, x1, x2, y1, y2, z)
 
 addTube (self, name, rmin, rmax, z, startphi, deltaphi)
 
 addTwistedTrap (self, name, z, theta, phi, y1, x1, x2, alpha1, y2, x3, x4, alpha2, twist)
 
 addUnion (self, name, lname, ltr, lrot, rname, rtr, rrot)
 
 addVolume (self, volume, solid, material, daughters)
 
 addXtrusion (self, name, vertices, sections)
 
 writeFile (self)
 

Public Attributes

 define
 
 document
 
 gdmlfile
 
 materials
 
 solids
 
 structure
 
Inheritance diagram for writer.writer:
[legend]

Constructor & Destructor Documentation

◆ __init__()

writer.writer.__init__ (   self,
  fname 
)

Definition at line 18 of file writer.py.

Member Function Documentation

◆ addArb8()

writer.writer.addArb8 (   self,
  name,
  v1x,
  v1y,
  v2x,
  v2y,
  v3x,
  v3y,
  v4x,
  v4y,
  v5x,
  v5y,
  v6x,
  v6y,
  v7x,
  v7y,
  v8x,
  v8y,
  dz 
)

Definition at line 61 of file writer.py.

◆ addAssembly()

writer.writer.addAssembly (   self,
  volume,
  daughters 
)

Definition at line 185 of file writer.py.

◆ addBox()

writer.writer.addBox (   self,
  name,
  dx,
  dy,
  dz 
)

Definition at line 55 of file writer.py.

◆ addCone()

writer.writer.addCone (   self,
  name,
  z,
  rmin1,
  rmin2,
  rmax1,
  rmax2,
  sphi,
  dphi 
)

Definition at line 70 of file writer.py.

◆ addCutTube()

writer.writer.addCutTube (   self,
  name,
  rmin,
  rmax,
  z,
  startphi,
  deltaphi,
  lowX,
  lowY,
  lowZ,
  highX,
  highY,
  highZ 
)

Definition at line 97 of file writer.py.

◆ addElement()

writer.writer.addElement (   self,
  symb,
  name,
  z,
  a 
)

Definition at line 48 of file writer.py.

◆ addEltube()

writer.writer.addEltube (   self,
  name,
  x,
  y,
  z 
)

Definition at line 129 of file writer.py.

◆ addHype()

writer.writer.addHype (   self,
  name,
  rmin,
  rmax,
  inst,
  outst,
  z 
)

Definition at line 132 of file writer.py.

◆ addIntersection()

writer.writer.addIntersection (   self,
  name,
  lname,
  ltr,
  lrot,
  rname,
  rtr,
  rrot 
)

Definition at line 162 of file writer.py.

◆ addMaterial()

writer.writer.addMaterial (   self,
  name,
  a,
  z,
  rho 
)

Definition at line 36 of file writer.py.

◆ addMixture()

writer.writer.addMixture (   self,
  name,
  rho,
  elems 
)

Definition at line 40 of file writer.py.

◆ addPara()

writer.writer.addPara (   self,
  name,
  x,
  y,
  z,
  alpha,
  theta,
  phi 
)

Definition at line 75 of file writer.py.

◆ addParaboloid()

writer.writer.addParaboloid (   self,
  name,
  rlo,
  rhi,
  dz 
)

Definition at line 58 of file writer.py.

◆ addPolycone()

writer.writer.addPolycone (   self,
  name,
  startphi,
  deltaphi,
  zplanes 
)

Definition at line 102 of file writer.py.

◆ addPolyhedra()

writer.writer.addPolyhedra (   self,
  name,
  startphi,
  deltaphi,
  numsides,
  zplanes 
)

Definition at line 113 of file writer.py.

◆ addPos()

writer.writer.addPos (   self,
  subels,
  type,
  name,
  v 
)

Definition at line 136 of file writer.py.

◆ addPosition()

writer.writer.addPosition (   self,
  name,
  x,
  y,
  z 
)

Definition at line 30 of file writer.py.

◆ addReflSolid()

writer.writer.addReflSolid (   self,
  name,
  solid,
  dx,
  dy,
  dz,
  sx,
  sy,
  sz,
  rx,
  ry,
  rz 
)

Definition at line 52 of file writer.py.

◆ addRot()

writer.writer.addRot (   self,
  subels,
  type,
  name,
  v 
)

Definition at line 140 of file writer.py.

◆ addRotation()

writer.writer.addRotation (   self,
  name,
  x,
  y,
  z 
)

Definition at line 33 of file writer.py.

◆ addSetup()

writer.writer.addSetup (   self,
  name,
  version,
  world 
)

Definition at line 197 of file writer.py.

◆ addSphere()

writer.writer.addSphere (   self,
  name,
  rmin,
  rmax,
  startphi,
  deltaphi,
  starttheta,
  deltatheta 
)

Definition at line 64 of file writer.py.

◆ addSubtraction()

writer.writer.addSubtraction (   self,
  name,
  lname,
  ltr,
  lrot,
  rname,
  rtr,
  rrot 
)

Definition at line 153 of file writer.py.

◆ addTorus()

writer.writer.addTorus (   self,
  name,
  r,
  rmin,
  rmax,
  startphi,
  deltaphi 
)

Definition at line 109 of file writer.py.

◆ addTrap()

writer.writer.addTrap (   self,
  name,
  z,
  theta,
  phi,
  y1,
  x1,
  x2,
  alpha1,
  y2,
  x3,
  x4,
  alpha2 
)

Definition at line 79 of file writer.py.

◆ addTrd()

writer.writer.addTrd (   self,
  name,
  x1,
  x2,
  y1,
  y2,
  z 
)

Definition at line 89 of file writer.py.

◆ addTube()

writer.writer.addTube (   self,
  name,
  rmin,
  rmax,
  z,
  startphi,
  deltaphi 
)

Definition at line 93 of file writer.py.

◆ addTwistedTrap()

writer.writer.addTwistedTrap (   self,
  name,
  z,
  theta,
  phi,
  y1,
  x1,
  x2,
  alpha1,
  y2,
  x3,
  x4,
  alpha2,
  twist 
)

Definition at line 84 of file writer.py.

◆ addUnion()

writer.writer.addUnion (   self,
  name,
  lname,
  ltr,
  lrot,
  rname,
  rtr,
  rrot 
)

Definition at line 144 of file writer.py.

◆ addVolume()

writer.writer.addVolume (   self,
  volume,
  solid,
  material,
  daughters 
)

Definition at line 171 of file writer.py.

◆ addXtrusion()

writer.writer.addXtrusion (   self,
  name,
  vertices,
  sections 
)

Definition at line 121 of file writer.py.

◆ writeFile()

writer.writer.writeFile (   self)

Definition at line 201 of file writer.py.

Member Data Documentation

◆ define

writer.writer.define

Definition at line 21 of file writer.py.

◆ document

writer.writer.document

Definition at line 25 of file writer.py.

◆ gdmlfile

writer.writer.gdmlfile

Definition at line 20 of file writer.py.

◆ materials

writer.writer.materials

Definition at line 22 of file writer.py.

◆ solids

writer.writer.solids

Definition at line 23 of file writer.py.

◆ structure

writer.writer.structure

Definition at line 24 of file writer.py.

  • geom/gdml/writer.py