TGDMLParse Class Reference

#include <TGDMLParse.h>

Inheritance diagram for TGDMLParse:

TObject List of all members.

Public Member Functions

 TGDMLParse ()
virtual ~TGDMLParse ()
TGeoVolumeGDMLReadFile (const char *filename="test.gdml")

Static Public Member Functions

static TGeoVolumeStartGDML (const char *filename)

Public Attributes

const char * fWorldName
TGeoVolumefWorld
int fVolID
int fFILENO
TXMLEnginefFileEngine [20]
const char * fStartFile
const char * fCurrentFile

Private Types

typedef TGDMMapHelper< TGeoTranslationPosMap
typedef TGDMMapHelper< TGeoRotationRotMap
typedef TGDMMapHelper< TGeoScaleSclMap
typedef TGDMMapHelper< TGeoElementEleMap
typedef TGDMMapHelper< TGeoIsotopeIsoMap
typedef TGDMMapHelper< TGeoMaterialMatMap
typedef TGDMMapHelper< TGeoMediumMedMap
typedef TGDMMapHelper< TGeoMixtureMixMap
typedef TGDMMapHelper< TGeoShapeSolMap
typedef TGDMMapHelper< TGeoVolumeVolMap
typedef TGDMMapHelper< TGDMLReflReflSolidMap
typedef TGDMMapHelper< const
char > 
FileMap
typedef std::map< std::string,
std::string
ReflectionsMap
typedef std::map< std::string,
std::string
ReflVolMap
typedef std::map< std::string,
double
FracMap
typedef std::vector< TFormula * > FormVec

Private Member Functions

const char * ParseGDML (TXMLEngine *gdml, XMLNodePointer_t node)
const char * GetScale (const char *unit)
double Evaluate (const char *evalline)
const char * NameShort (const char *name)
XMLNodePointer_t ConProcess (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
XMLNodePointer_t PosProcess (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
XMLNodePointer_t RotProcess (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
XMLNodePointer_t SclProcess (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
XMLNodePointer_t IsoProcess (TXMLEngine *gdml, XMLNodePointer_t node, XMLNodePointer_t parentn)
XMLNodePointer_t EleProcess (TXMLEngine *gdml, XMLNodePointer_t node, XMLNodePointer_t parentn, Bool_t hasIsotopes)
XMLNodePointer_t MatProcess (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr, int z)
XMLNodePointer_t BooSolid (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr, int num)
XMLNodePointer_t Box (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
XMLNodePointer_t Paraboloid (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
XMLNodePointer_t Arb8 (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
XMLNodePointer_t Tube (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
XMLNodePointer_t CutTube (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
XMLNodePointer_t Cone (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
XMLNodePointer_t Trap (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
XMLNodePointer_t Trd (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
XMLNodePointer_t Polycone (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
XMLNodePointer_t Polyhedra (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
XMLNodePointer_t Sphere (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
XMLNodePointer_t Torus (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
XMLNodePointer_t Hype (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
XMLNodePointer_t Para (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
XMLNodePointer_t TwistTrap (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
XMLNodePointer_t ElTube (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
XMLNodePointer_t Orb (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
XMLNodePointer_t Xtru (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
XMLNodePointer_t Reflection (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
XMLNodePointer_t Ellipsoid (TXMLEngine *gdml, XMLNodePointer_t node, XMLAttrPointer_t attr)
XMLNodePointer_t VolProcess (TXMLEngine *gdml, XMLNodePointer_t node)
XMLNodePointer_t AssProcess (TXMLEngine *gdml, XMLNodePointer_t node)
Int_t SetAxis (const char *axisString)
XMLNodePointer_t TopProcess (TXMLEngine *gdml, XMLNodePointer_t node)

Private Attributes

PosMap fposmap
RotMap frotmap
 Map containing position names and the TGeoTranslation for it.
SclMap fsclmap
 Map containing rotation names and the TGeoRotation for it.
IsoMap fisomap
 Map containing scale names and the TGeoScale for it.
EleMap felemap
 Map containing isotope names and the TGeoIsotope for it.
MatMap fmatmap
 Map containing element names and the TGeoElement for it.
MedMap fmedmap
 Map containing material names and the TGeoMaterial for it.
MixMap fmixmap
 Map containing medium names and the TGeoMedium for it.
SolMap fsolmap
 Map containing mixture names and the TGeoMixture for it.
VolMap fvolmap
 Map containing solid names and the TGeoShape for it.
ReflectionsMap freflectmap
 Map containing volume names and the TGeoVolume for it.
ReflSolidMap freflsolidmap
 Map containing reflection names and the Solid name ir references to.
ReflVolMap freflvolmap
 Map containing reflection names and the TGDMLRefl for it - containing refl matrix.
FileMap ffilemap
 Map containing reflected volume names and the solid ref for it.
FormVec fformvec
 Map containing files parsed during entire parsing, with their world volume name.

Detailed Description

Definition at line 103 of file TGDMLParse.h.


Member Typedef Documentation

typedef TGDMMapHelper<TGeoTranslation> TGDMLParse::PosMap [private]

Definition at line 183 of file TGDMLParse.h.

typedef TGDMMapHelper<TGeoRotation> TGDMLParse::RotMap [private]

Definition at line 184 of file TGDMLParse.h.

typedef TGDMMapHelper<TGeoScale> TGDMLParse::SclMap [private]

Definition at line 185 of file TGDMLParse.h.

typedef TGDMMapHelper<TGeoElement> TGDMLParse::EleMap [private]

Definition at line 186 of file TGDMLParse.h.

typedef TGDMMapHelper<TGeoIsotope> TGDMLParse::IsoMap [private]

Definition at line 187 of file TGDMLParse.h.

typedef TGDMMapHelper<TGeoMaterial> TGDMLParse::MatMap [private]

Definition at line 188 of file TGDMLParse.h.

typedef TGDMMapHelper<TGeoMedium> TGDMLParse::MedMap [private]

Definition at line 189 of file TGDMLParse.h.

typedef TGDMMapHelper<TGeoMixture> TGDMLParse::MixMap [private]

Definition at line 190 of file TGDMLParse.h.

typedef TGDMMapHelper<TGeoShape> TGDMLParse::SolMap [private]

Definition at line 192 of file TGDMLParse.h.

typedef TGDMMapHelper<TGeoVolume> TGDMLParse::VolMap [private]

Definition at line 193 of file TGDMLParse.h.

typedef TGDMMapHelper<TGDMLRefl> TGDMLParse::ReflSolidMap [private]

Definition at line 194 of file TGDMLParse.h.

typedef TGDMMapHelper<const char> TGDMLParse::FileMap [private]

Definition at line 195 of file TGDMLParse.h.

typedef std::map<std::string, std::string> TGDMLParse::ReflectionsMap [private]

Definition at line 196 of file TGDMLParse.h.

typedef std::map<std::string, std::string> TGDMLParse::ReflVolMap [private]

Definition at line 197 of file TGDMLParse.h.

typedef std::map<std::string, double> TGDMLParse::FracMap [private]

Definition at line 198 of file TGDMLParse.h.

typedef std::vector<TFormula*> TGDMLParse::FormVec [private]

Definition at line 199 of file TGDMLParse.h.


Constructor & Destructor Documentation

TGDMLParse::TGDMLParse (  )  [inline]

Definition at line 114 of file TGDMLParse.h.

References fFILENO, and fVolID.

virtual TGDMLParse::~TGDMLParse (  )  [inline, virtual]

Definition at line 120 of file TGDMLParse.h.

References fformvec, i, NULL, and size_t.


Member Function Documentation

static TGeoVolume* TGDMLParse::StartGDML ( const char *  filename  )  [inline, static]

Definition at line 126 of file TGDMLParse.h.

References GDMLReadFile().

TGeoVolume* TGDMLParse::GDMLReadFile ( const char *  filename = "test.gdml"  ) 

Referenced by StartGDML().

const char * TGDMLParse::ParseGDML ( TXMLEngine gdml,
XMLNodePointer_t  node 
) [private]

Definition at line 157 of file TGDMLParse.cxx.

References Arb8(), AssProcess(), BooSolid(), Box(), Cone(), ConProcess(), CutTube(), EleProcess(), Ellipsoid(), ElTube(), fWorldName, TXMLEngine::GetChild(), TXMLEngine::GetFirstAttr(), TXMLEngine::GetNext(), TXMLEngine::GetNodeName(), TXMLEngine::GetParent(), TXMLEngine::HasAttr(), Hype(), IsoProcess(), kFALSE, kTRUE, MatProcess(), name, Orb(), Para(), Paraboloid(), Polycone(), Polyhedra(), PosProcess(), Reflection(), RotProcess(), SclProcess(), Sphere(), TopProcess(), Torus(), Trap(), Trd(), Tube(), TwistTrap(), VolProcess(), and Xtru().

Referenced by VolProcess().

const char * TGDMLParse::GetScale ( const char *  unit  )  [private]

Definition at line 388 of file TGDMLParse.cxx.

References TString::Format(), TMath::Na(), and TMath::RadToDeg().

Referenced by Arb8(), Box(), Cone(), CutTube(), Ellipsoid(), ElTube(), Hype(), Orb(), Para(), Paraboloid(), Polycone(), Polyhedra(), PosProcess(), RotProcess(), Sphere(), Torus(), Trap(), Trd(), Tube(), TwistTrap(), VolProcess(), and Xtru().

double TGDMLParse::Evaluate ( const char *  evalline  )  [private]

Definition at line 308 of file TGDMLParse.cxx.

Referenced by Arb8(), Box(), Cone(), CutTube(), EleProcess(), Ellipsoid(), ElTube(), Hype(), IsoProcess(), MatProcess(), Orb(), Para(), Paraboloid(), Polycone(), Polyhedra(), PosProcess(), Reflection(), RotProcess(), SclProcess(), Sphere(), Torus(), Trap(), Trd(), Tube(), TwistTrap(), VolProcess(), and Xtru().

const char * TGDMLParse::NameShort ( const char *  name  )  [private]

Definition at line 339 of file TGDMLParse.cxx.

References TString::Data(), TString::Index(), and TString::Length().

Referenced by Arb8(), AssProcess(), BooSolid(), Box(), Cone(), CutTube(), EleProcess(), Ellipsoid(), ElTube(), Hype(), IsoProcess(), MatProcess(), Orb(), Para(), Paraboloid(), Polycone(), Polyhedra(), Reflection(), Sphere(), Torus(), Trap(), Trd(), Tube(), TwistTrap(), VolProcess(), and Xtru().

XMLNodePointer_t TGDMLParse::ConProcess ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr 
) [private]

Definition at line 355 of file TGDMLParse.cxx.

References fCurrentFile, fformvec, TString::Format(), fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetNextAttr(), name, TString::ToLower(), and value.

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::PosProcess ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr 
) [private]

Definition at line 447 of file TGDMLParse.cxx.

References TString::Data(), Evaluate(), fCurrentFile, TString::Format(), fposmap, fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetNextAttr(), GetScale(), name, and TString::ToLower().

Referenced by AssProcess(), BooSolid(), ParseGDML(), and VolProcess().

XMLNodePointer_t TGDMLParse::RotProcess ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr 
) [private]

Definition at line 512 of file TGDMLParse.cxx.

References TString::Data(), Evaluate(), fCurrentFile, TString::Format(), frotmap, fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetNextAttr(), GetScale(), name, and TString::ToLower().

Referenced by AssProcess(), BooSolid(), ParseGDML(), and VolProcess().

XMLNodePointer_t TGDMLParse::SclProcess ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr 
) [private]

Definition at line 579 of file TGDMLParse.cxx.

References Evaluate(), fCurrentFile, TString::Format(), fsclmap, fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetNextAttr(), name, and TString::ToLower().

Referenced by ParseGDML(), and VolProcess().

XMLNodePointer_t TGDMLParse::IsoProcess ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLNodePointer_t  parentn 
) [private]

Definition at line 626 of file TGDMLParse.cxx.

References Evaluate(), fCurrentFile, fisomap, TString::Format(), fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetFirstAttr(), TXMLEngine::GetNextAttr(), n, name, NameShort(), and TString::ToLower().

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::EleProcess ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLNodePointer_t  parentn,
Bool_t  hasIsotopes 
) [private]

Definition at line 692 of file TGDMLParse.cxx.

References TGeoElement::AddIsotope(), Evaluate(), fCurrentFile, felemap, fisomap, TString::Format(), fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetChild(), TXMLEngine::GetFirstAttr(), TXMLEngine::GetNext(), TXMLEngine::GetNextAttr(), TXMLEngine::GetNodeName(), n, name, NameShort(), and TString::ToLower().

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::MatProcess ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr,
int  z 
) [private]

Definition at line 815 of file TGDMLParse.cxx.

References a, composite, d, Evaluate(), fCurrentFile, felemap, fmatmap, fmedmap, fmixmap, TString::Format(), fStartFile, TXMLEngine::GetAttr(), TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetChild(), TXMLEngine::GetFirstAttr(), TXMLEngine::GetNext(), TXMLEngine::GetNextAttr(), TXMLEngine::GetNodeName(), kFALSE, kTRUE, n, name, NameShort(), and TString::ToLower().

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::BooSolid ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr,
int  num 
) [private]

Definition at line 1354 of file TGDMLParse.cxx.

References TString::Data(), TObject::Fatal(), fCurrentFile, TString::Format(), fposmap, frotmap, fsolmap, fStartFile, TXMLEngine::GetAttr(), TXMLEngine::GetChild(), TXMLEngine::GetFirstAttr(), TXMLEngine::GetNext(), TXMLEngine::GetNodeName(), TGeoRotation::Inverse(), name, NameShort(), PosProcess(), TGeoRotation::RotateX(), TGeoRotation::RotateY(), TGeoRotation::RotateZ(), RotProcess(), and TString::ToLower().

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::Box ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr 
) [private]

Definition at line 1643 of file TGDMLParse.cxx.

References TString::Data(), Evaluate(), fCurrentFile, TString::Format(), fsolmap, fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetNextAttr(), GetScale(), name, NameShort(), and TString::ToLower().

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::Paraboloid ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr 
) [private]

Definition at line 1808 of file TGDMLParse.cxx.

References TString::Data(), Evaluate(), fCurrentFile, TString::Format(), fsolmap, fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetNextAttr(), GetScale(), name, NameShort(), and TString::ToLower().

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::Arb8 ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr 
) [private]

Definition at line 1873 of file TGDMLParse.cxx.

References arb8(), TString::Data(), Evaluate(), fCurrentFile, TString::Format(), fsolmap, fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetNextAttr(), GetScale(), name, NameShort(), and TString::ToLower().

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::Tube ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr 
) [private]

Definition at line 2031 of file TGDMLParse.cxx.

References TString::Data(), Evaluate(), fCurrentFile, TString::Format(), fsolmap, fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetNextAttr(), GetScale(), name, NameShort(), TString::ToLower(), and tube().

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::CutTube ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr 
) [private]

Definition at line 2117 of file TGDMLParse.cxx.

References TString::Data(), Evaluate(), fCurrentFile, TString::Format(), fsolmap, fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetNextAttr(), GetScale(), name, NameShort(), and TString::ToLower().

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::Cone ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr 
) [private]

Definition at line 2247 of file TGDMLParse.cxx.

References cone(), TString::Data(), Evaluate(), fCurrentFile, TString::Format(), fsolmap, fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetNextAttr(), GetScale(), name, NameShort(), and TString::ToLower().

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::Trap ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr 
) [private]

Definition at line 2348 of file TGDMLParse.cxx.

References TString::Data(), Evaluate(), fCurrentFile, TString::Format(), fsolmap, fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetNextAttr(), GetScale(), name, NameShort(), phi, theta, TString::ToLower(), trap(), x1, x2, x3, and x4.

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::Trd ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr 
) [private]

Definition at line 2475 of file TGDMLParse.cxx.

References TString::Data(), Evaluate(), fCurrentFile, TString::Format(), fsolmap, fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetNextAttr(), GetScale(), name, NameShort(), TString::ToLower(), x1, and x2.

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::Polycone ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr 
) [private]

Definition at line 2555 of file TGDMLParse.cxx.

References TString::Data(), Evaluate(), fCurrentFile, TString::Format(), fsolmap, fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetChild(), TXMLEngine::GetFirstAttr(), TXMLEngine::GetNext(), TXMLEngine::GetNextAttr(), TXMLEngine::GetNodeName(), GetScale(), i, j, name, NameShort(), and TString::ToLower().

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::Polyhedra ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr 
) [private]

Definition at line 2684 of file TGDMLParse.cxx.

References TString::Data(), Evaluate(), fCurrentFile, TString::Format(), fsolmap, fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetChild(), TXMLEngine::GetFirstAttr(), TXMLEngine::GetNext(), TXMLEngine::GetNextAttr(), TXMLEngine::GetNodeName(), GetScale(), i, j, name, NameShort(), and TString::ToLower().

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::Sphere ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr 
) [private]

Definition at line 2828 of file TGDMLParse.cxx.

References TString::Data(), Evaluate(), fCurrentFile, TString::Format(), fsolmap, fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetNextAttr(), GetScale(), name, NameShort(), sphere(), and TString::ToLower().

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::Torus ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr 
) [private]

Definition at line 2920 of file TGDMLParse.cxx.

References TString::Data(), Evaluate(), fCurrentFile, TString::Format(), fsolmap, fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetNextAttr(), GetScale(), name, NameShort(), TString::ToLower(), and torus().

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::Hype ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr 
) [private]

Definition at line 3006 of file TGDMLParse.cxx.

References TString::Data(), Evaluate(), fCurrentFile, TString::Format(), fsolmap, fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetNextAttr(), GetScale(), hype(), name, NameShort(), and TString::ToLower().

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::Para ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr 
) [private]

Definition at line 3092 of file TGDMLParse.cxx.

References TString::Data(), Evaluate(), fCurrentFile, TString::Format(), fsolmap, fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetNextAttr(), GetScale(), name, NameShort(), para(), phi, theta, TString::ToLower(), x, and y.

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::TwistTrap ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr 
) [private]

Definition at line 3186 of file TGDMLParse.cxx.

References TString::Data(), Evaluate(), fCurrentFile, TString::Format(), fsolmap, fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetNextAttr(), GetScale(), name, NameShort(), phi, theta, TString::ToLower(), x1, x2, x3, and x4.

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::ElTube ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr 
) [private]

Definition at line 3322 of file TGDMLParse.cxx.

References TString::Data(), eltu(), Evaluate(), fCurrentFile, TString::Format(), fsolmap, fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetNextAttr(), GetScale(), name, NameShort(), and TString::ToLower().

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::Orb ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr 
) [private]

Definition at line 3386 of file TGDMLParse.cxx.

References TString::Data(), Evaluate(), fCurrentFile, TString::Format(), fsolmap, fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetNextAttr(), GetScale(), name, NameShort(), and TString::ToLower().

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::Xtru ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr 
) [private]

Definition at line 3438 of file TGDMLParse.cxx.

References TString::Data(), Evaluate(), fCurrentFile, TString::Format(), fsolmap, fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetChild(), TXMLEngine::GetFirstAttr(), TXMLEngine::GetNext(), TXMLEngine::GetNextAttr(), TXMLEngine::GetNodeName(), GetScale(), i, j, name, NameShort(), TString::ToLower(), x, xtru(), and y.

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::Reflection ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr 
) [private]

Definition at line 3607 of file TGDMLParse.cxx.

References TString::Data(), Evaluate(), fCurrentFile, TString::Format(), freflectmap, freflsolidmap, fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetNextAttr(), kTRUE, name, NameShort(), sx, and TString::ToLower().

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::Ellipsoid ( TXMLEngine gdml,
XMLNodePointer_t  node,
XMLAttrPointer_t  attr 
) [private]

Definition at line 1709 of file TGDMLParse.cxx.

References TString::Data(), Evaluate(), fCurrentFile, TString::Format(), fsolmap, fStartFile, TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TXMLEngine::GetNextAttr(), GetScale(), name, NameShort(), sx, and TString::ToLower().

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::VolProcess ( TXMLEngine gdml,
XMLNodePointer_t  node 
) [private]

Definition at line 1006 of file TGDMLParse.cxx.

References TGeoVolume::AddNode(), axis, TString::Data(), TGeoVolume::Divide(), TXMLEngine::DocGetRootElement(), Evaluate(), TObject::Fatal(), fCurrentFile, fFileEngine, ffilemap, fFILENO, fmedmap, TString::Format(), fposmap, TXMLEngine::FreeDoc(), freflectmap, freflsolidmap, freflvolmap, frotmap, fsclmap, fsolmap, fStartFile, fVolID, fvolmap, TXMLEngine::GetAttr(), TXMLEngine::GetAttrName(), TXMLEngine::GetAttrValue(), TGeoShape::GetAxisRange(), TXMLEngine::GetChild(), TXMLEngine::GetFirstAttr(), TGeoMedium::GetId(), TGDMLRefl::GetMatrix(), TGeoVolume::GetMedium(), TGeoVolume::GetNdaughters(), TXMLEngine::GetNext(), TXMLEngine::GetNextAttr(), TXMLEngine::GetNodeName(), TGeoMatrix::GetRotationMatrix(), TGeoRotation::GetRotationMatrix(), TGeoScale::GetScale(), GetScale(), TGeoVolume::GetShape(), TGeoTranslation::GetTranslation(), kTRUE, name, NameShort(), number, TXMLEngine::ParseFile(), ParseGDML(), PosProcess(), TGeoVolume::ReplayCreation(), RotProcess(), SclProcess(), SetAxis(), TGeoRotation::SetMatrix(), TXMLEngine::SetSkipComments(), start, TString::ToLower(), transform, and width.

Referenced by ParseGDML().

XMLNodePointer_t TGDMLParse::AssProcess ( TXMLEngine gdml,
XMLNodePointer_t  node 
) [private]

Definition at line 1511 of file TGDMLParse.cxx.

References TGeoVolumeAssembly::AddNode(), TString::Data(), fCurrentFile, TString::Format(), fposmap, frotmap, fStartFile, fVolID, fvolmap, TXMLEngine::GetAttr(), TXMLEngine::GetChild(), TXMLEngine::GetFirstAttr(), TXMLEngine::GetNext(), TXMLEngine::GetNodeName(), name, NameShort(), PosProcess(), RotProcess(), and TString::ToLower().

Referenced by ParseGDML().

Int_t TGDMLParse::SetAxis ( const char *  axisString  )  [private]

Definition at line 316 of file TGDMLParse.cxx.

References axis.

Referenced by VolProcess().

XMLNodePointer_t TGDMLParse::TopProcess ( TXMLEngine gdml,
XMLNodePointer_t  node 
) [private]

Definition at line 1616 of file TGDMLParse.cxx.

References fCurrentFile, TString::Format(), fStartFile, fvolmap, fWorld, fWorldName, TXMLEngine::GetAttr(), TXMLEngine::GetChild(), TXMLEngine::GetNext(), TXMLEngine::GetNodeName(), gGeoManager, name, and TNamed::SetName().

Referenced by ParseGDML().


Member Data Documentation

const char* TGDMLParse::fWorldName

Definition at line 106 of file TGDMLParse.h.

Referenced by ParseGDML(), and TopProcess().

TGeoVolume* TGDMLParse::fWorld

Definition at line 107 of file TGDMLParse.h.

Referenced by TopProcess().

int TGDMLParse::fVolID

Definition at line 108 of file TGDMLParse.h.

Referenced by AssProcess(), TGDMLParse(), and VolProcess().

int TGDMLParse::fFILENO

Definition at line 109 of file TGDMLParse.h.

Referenced by TGDMLParse(), and VolProcess().

TXMLEngine* TGDMLParse::fFileEngine[20]

Definition at line 110 of file TGDMLParse.h.

Referenced by VolProcess().

const char* TGDMLParse::fStartFile

Definition at line 111 of file TGDMLParse.h.

Referenced by Arb8(), AssProcess(), BooSolid(), Box(), Cone(), ConProcess(), CutTube(), EleProcess(), Ellipsoid(), ElTube(), Hype(), IsoProcess(), MatProcess(), Orb(), Para(), Paraboloid(), Polycone(), Polyhedra(), PosProcess(), Reflection(), RotProcess(), SclProcess(), Sphere(), TopProcess(), Torus(), Trap(), Trd(), Tube(), TwistTrap(), VolProcess(), and Xtru().

const char* TGDMLParse::fCurrentFile

Definition at line 112 of file TGDMLParse.h.

Referenced by Arb8(), AssProcess(), BooSolid(), Box(), Cone(), ConProcess(), CutTube(), EleProcess(), Ellipsoid(), ElTube(), Hype(), IsoProcess(), MatProcess(), Orb(), Para(), Paraboloid(), Polycone(), Polyhedra(), PosProcess(), Reflection(), RotProcess(), SclProcess(), Sphere(), TopProcess(), Torus(), Trap(), Trd(), Tube(), TwistTrap(), VolProcess(), and Xtru().

PosMap TGDMLParse::fposmap [private]

Definition at line 201 of file TGDMLParse.h.

Referenced by AssProcess(), BooSolid(), PosProcess(), and VolProcess().

RotMap TGDMLParse::frotmap [private]

Map containing position names and the TGeoTranslation for it.

Definition at line 202 of file TGDMLParse.h.

Referenced by AssProcess(), BooSolid(), RotProcess(), and VolProcess().

SclMap TGDMLParse::fsclmap [private]

Map containing rotation names and the TGeoRotation for it.

Definition at line 203 of file TGDMLParse.h.

Referenced by SclProcess(), and VolProcess().

IsoMap TGDMLParse::fisomap [private]

Map containing scale names and the TGeoScale for it.

Definition at line 204 of file TGDMLParse.h.

Referenced by EleProcess(), and IsoProcess().

EleMap TGDMLParse::felemap [private]

Map containing isotope names and the TGeoIsotope for it.

Definition at line 205 of file TGDMLParse.h.

Referenced by EleProcess(), and MatProcess().

MatMap TGDMLParse::fmatmap [private]

Map containing element names and the TGeoElement for it.

Definition at line 206 of file TGDMLParse.h.

Referenced by MatProcess().

MedMap TGDMLParse::fmedmap [private]

Map containing material names and the TGeoMaterial for it.

Definition at line 207 of file TGDMLParse.h.

Referenced by MatProcess(), and VolProcess().

MixMap TGDMLParse::fmixmap [private]

Map containing medium names and the TGeoMedium for it.

Definition at line 208 of file TGDMLParse.h.

Referenced by MatProcess().

SolMap TGDMLParse::fsolmap [private]

Map containing mixture names and the TGeoMixture for it.

Definition at line 209 of file TGDMLParse.h.

Referenced by Arb8(), BooSolid(), Box(), Cone(), CutTube(), Ellipsoid(), ElTube(), Hype(), Orb(), Para(), Paraboloid(), Polycone(), Polyhedra(), Sphere(), Torus(), Trap(), Trd(), Tube(), TwistTrap(), VolProcess(), and Xtru().

VolMap TGDMLParse::fvolmap [private]

Map containing solid names and the TGeoShape for it.

Definition at line 210 of file TGDMLParse.h.

Referenced by AssProcess(), TopProcess(), and VolProcess().

ReflectionsMap TGDMLParse::freflectmap [private]

Map containing volume names and the TGeoVolume for it.

Definition at line 211 of file TGDMLParse.h.

Referenced by Reflection(), and VolProcess().

ReflSolidMap TGDMLParse::freflsolidmap [private]

Map containing reflection names and the Solid name ir references to.

Definition at line 212 of file TGDMLParse.h.

Referenced by Reflection(), and VolProcess().

ReflVolMap TGDMLParse::freflvolmap [private]

Map containing reflection names and the TGDMLRefl for it - containing refl matrix.

Definition at line 213 of file TGDMLParse.h.

Referenced by VolProcess().

FileMap TGDMLParse::ffilemap [private]

Map containing reflected volume names and the solid ref for it.

Definition at line 214 of file TGDMLParse.h.

Referenced by VolProcess().

FormVec TGDMLParse::fformvec [private]

Map containing files parsed during entire parsing, with their world volume name.

Definition at line 215 of file TGDMLParse.h.

Referenced by ConProcess(), and ~TGDMLParse().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:38:22 2011 for ROOT_528-00b_version by  doxygen 1.5.1