#ifndef ROOT_TGeoManager
#define ROOT_TGeoManager
#ifndef ROOT_TObjArray
#include "TObjArray.h"
#endif
#ifndef ROOT_TGeoNavigator
#include "TGeoNavigator.h"
#endif
class TVirtualGeoTrack;
class TGeoNode;
class TGeoPhysicalNode;
class TGeoPNEntry;
class TGeoVolume;
class TGeoVolumeMulti;
class TGeoMatrix;
class TGeoHMatrix;
class TGeoMaterial;
class TGeoMedium;
class TGeoShape;
class TVirtualGeoPainter;
class THashList;
class TGeoManager : public TNamed
{
protected:
static Bool_t fgLock;
static Int_t fgVerboseLevel;
TGeoManager(const TGeoManager&);
TGeoManager& operator=(const TGeoManager&);
private :
Double_t fPhimin;
Double_t fPhimax;
Double_t fTmin;
Double_t fTmax;
Int_t fNNodes;
TString fPath;
TString fParticleName;
Double_t fVisDensity;
Int_t fExplodedView;
Int_t fVisOption;
Int_t fVisLevel;
Int_t fNsegments;
Int_t fNtracks;
Int_t fMaxVisNodes;
TVirtualGeoTrack *fCurrentTrack;
Int_t fNpdg;
Int_t fPdgId[256];
Bool_t fClosed;
Bool_t fLoopVolumes;
Bool_t fStreamVoxels;
Bool_t fIsGeomReading;
Bool_t fPhiCut;
Bool_t fTimeCut;
Bool_t fDrawExtra;
Bool_t fMatrixTransform;
Bool_t fMatrixReflection;
Bool_t fActivity;
Bool_t fIsNodeSelectable;
TVirtualGeoPainter *fPainter;
TObjArray *fMatrices;
TObjArray *fShapes;
TObjArray *fVolumes;
TObjArray *fPhysicalNodes;
TObjArray *fGShapes;
TObjArray *fGVolumes;
TObjArray *fTracks;
TObjArray *fPdgNames;
TObjArray *fNavigators;
TList *fMaterials;
TList *fMedia;
TObjArray *fNodes;
TObjArray *fOverlaps;
UChar_t *fBits;
TGeoNavigator *fCurrentNavigator;
TGeoVolume *fCurrentVolume;
TGeoVolume *fTopVolume;
TGeoNode *fTopNode;
TGeoVolume *fMasterVolume;
TGeoHMatrix *fGLMatrix;
TObjArray *fUniqueVolumes;
TGeoShape *fClippingShape;
TGeoElementTable *fElementTable;
Int_t *fNodeIdArray;
Int_t fIntSize;
Int_t fDblSize;
Int_t *fIntBuffer;
Int_t fNLevel;
Double_t *fDblBuffer;
TGeoVolume *fPaintVolume;
THashList *fHashVolumes;
THashList *fHashGVolumes;
THashList *fHashPNE;
Int_t fSizePNEId;
Int_t fNPNEId;
Int_t *fKeyPNEId;
Int_t *fValuePNEId;
Bool_t IsLoopingVolumes() const {return fLoopVolumes;}
void Init();
Bool_t InsertPNEId(Int_t uid, Int_t ientry);
void SetLoopVolumes(Bool_t flag=kTRUE) {fLoopVolumes=flag;}
void UpdateElements();
void Voxelize(Option_t *option = 0);
public:
TGeoManager();
TGeoManager(const char *name, const char *title);
virtual ~TGeoManager();
Int_t AddMaterial(const TGeoMaterial *material);
Int_t AddOverlap(const TNamed *ovlp);
Int_t AddTransformation(const TGeoMatrix *matrix);
Int_t AddShape(const TGeoShape *shape);
Int_t AddTrack(Int_t id, Int_t pdgcode, TObject *particle=0);
Int_t AddTrack(TVirtualGeoTrack *track);
Int_t AddVolume(TGeoVolume *volume);
Int_t AddNavigator(TGeoNavigator *navigator);
void ClearOverlaps();
void RegisterMatrix(const TGeoMatrix *matrix);
void SortOverlaps();
void Browse(TBrowser *b);
void SetVisibility(TObject *obj, Bool_t vis);
virtual Bool_t cd(const char *path="");
Bool_t CheckPath(const char *path) const;
void CdNode(Int_t nodeid);
void CdDown(Int_t index);
void CdUp();
void CdTop();
void CdNext();
void GetBranchNames(Int_t *names) const;
void GetBranchNumbers(Int_t *copyNumbers, Int_t *volumeNumbers) const;
void GetBranchOnlys(Int_t *isonly) const;
Int_t GetNmany() const {return fCurrentNavigator->GetNmany();}
const char *GetPdgName(Int_t pdg) const;
void SetPdgName(Int_t pdg, const char *name);
Bool_t IsFolder() const { return kTRUE; }
virtual void Edit(Option_t *option="");
void BombTranslation(const Double_t *tr, Double_t *bombtr);
void UnbombTranslation(const Double_t *tr, Double_t *bombtr);
void ClearAttributes();
void DefaultAngles();
void DefaultColors();
TGeoShape *GetClippingShape() const {return fClippingShape;}
Int_t GetNsegments() const;
TVirtualGeoPainter *GetGeomPainter();
TVirtualGeoPainter *GetPainter() const {return fPainter;}
Int_t GetBombMode() const {return fExplodedView;}
void GetBombFactors(Double_t &bombx, Double_t &bomby, Double_t &bombz, Double_t &bombr) const;
Int_t GetMaxVisNodes() const {return fMaxVisNodes;}
Bool_t GetTminTmax(Double_t &tmin, Double_t &tmax) const;
Double_t GetTmax() const {return fTmax;}
TGeoVolume *GetPaintVolume() const {return fPaintVolume;}
Double_t GetVisDensity() const {return fVisDensity;}
Int_t GetVisLevel() const;
Int_t GetVisOption() const;
Bool_t IsInPhiRange() const;
Bool_t IsDrawingExtra() const {return fDrawExtra;}
Bool_t IsNodeSelectable() const {return fIsNodeSelectable;}
Bool_t IsVisLeaves() const {return (fVisOption==1)?kTRUE:kFALSE;}
void ModifiedPad() const;
void OptimizeVoxels(const char *filename="tgeovox.C");
void SetClipping(Bool_t flag=kTRUE) {SetClippingShape(((flag)?fClippingShape:0));}
void SetClippingShape(TGeoShape *clip);
void SetExplodedView(Int_t iopt=0);
void SetPhiRange(Double_t phimin=0., Double_t phimax=360.);
void SetNsegments(Int_t nseg);
Bool_t SetCurrentNavigator(Int_t index);
void SetBombFactors(Double_t bombx=1.3, Double_t bomby=1.3, Double_t bombz=1.3, Double_t bombr=1.3);
void SetPaintVolume(TGeoVolume *vol) {fPaintVolume = vol;}
void SetTopVisible(Bool_t vis=kTRUE);
void SetTminTmax(Double_t tmin=0, Double_t tmax=999);
void SetDrawExtraPaths(Bool_t flag=kTRUE) {fDrawExtra=flag;}
void SetNodeSelectable(Bool_t flag=kTRUE) {fIsNodeSelectable=flag;}
void SetVisDensity(Double_t dens=0.01);
void SetVisLevel(Int_t level=3);
void SetVisOption(Int_t option=0);
void ViewLeaves(Bool_t flag=kTRUE);
void SaveAttributes(const char *filename="tgeoatt.C");
void RestoreMasterVolume();
void SetMaxVisNodes(Int_t maxnodes=10000);
void AnimateTracks(Double_t tmin=0, Double_t tmax=5E-8, Int_t nframes=200, Option_t *option="/*");
void CheckGeometryFull(Int_t ntracks=1000000, Double_t vx=0., Double_t vy=0., Double_t vz=0., Option_t *option="ob");
void CheckGeometry(Option_t *option="");
void CheckOverlaps(Double_t ovlp=0.1, Option_t *option="");
void CheckPoint(Double_t x=0,Double_t y=0, Double_t z=0, Option_t *option="");
void ConvertReflections();
void DrawCurrentPoint(Int_t color=2);
void DrawTracks(Option_t *option="");
void SetParticleName(const char *pname) {fParticleName=pname;}
const char *GetParticleName() const {return fParticleName.Data();}
void DrawPath(const char *path);
void PrintOverlaps() const;
void RandomPoints(const TGeoVolume *vol, Int_t npoints=10000, Option_t *option="");
void RandomRays(Int_t nrays=1000, Double_t startx=0, Double_t starty=0, Double_t startz=0);
TGeoNode *SamplePoints(Int_t npoints, Double_t &dist, Double_t epsil=1E-5,
const char *g3path="");
void SetNmeshPoints(Int_t npoints=1000);
void SetCheckedNode(TGeoNode *node);
void Test(Int_t npoints=1000000, Option_t *option="");
void TestOverlaps(const char* path="");
Double_t Weight(Double_t precision=0.01, Option_t *option="va");
TGeoVolume *Division(const char *name, const char *mother, Int_t iaxis, Int_t ndiv,
Double_t start, Double_t step, Int_t numed=0, Option_t *option="");
void Matrix(Int_t index, Double_t theta1, Double_t phi1,
Double_t theta2, Double_t phi2,
Double_t theta3, Double_t phi3);
TGeoMaterial *Material(const char *name, Double_t a, Double_t z, Double_t dens, Int_t uid, Double_t radlen=0, Double_t intlen=0);
TGeoMaterial *Mixture(const char *name, Float_t *a, Float_t *z, Double_t dens,
Int_t nelem, Float_t *wmat, Int_t uid);
TGeoMaterial *Mixture(const char *name, Double_t *a, Double_t *z, Double_t dens,
Int_t nelem, Double_t *wmat, Int_t uid);
TGeoMedium *Medium(const char *name, Int_t numed, Int_t nmat, Int_t isvol,
Int_t ifield, Double_t fieldm, Double_t tmaxfd,
Double_t stemax, Double_t deemax, Double_t epsil,
Double_t stmin);
void Node(const char *name, Int_t nr, const char *mother,
Double_t x, Double_t y, Double_t z, Int_t irot,
Bool_t isOnly, Float_t *upar, Int_t npar=0);
void Node(const char *name, Int_t nr, const char *mother,
Double_t x, Double_t y, Double_t z, Int_t irot,
Bool_t isOnly, Double_t *upar, Int_t npar=0);
TGeoVolume *Volume(const char *name, const char *shape, Int_t nmed,
Float_t *upar, Int_t npar=0);
TGeoVolume *Volume(const char *name, const char *shape, Int_t nmed,
Double_t *upar, Int_t npar=0);
void SetVolumeAttribute(const char *name, const char *att, Int_t val);
void BuildDefaultMaterials();
void CloseGeometry(Option_t *option="d");
Bool_t IsClosed() const {return fClosed;}
TGeoVolume *MakeArb8(const char *name, const TGeoMedium *medium,
Double_t dz, Double_t *vertices=0);
TGeoVolume *MakeBox(const char *name, const TGeoMedium *medium,
Double_t dx, Double_t dy, Double_t dz);
TGeoVolume *MakeCone(const char *name, const TGeoMedium *medium,
Double_t dz, Double_t rmin1, Double_t rmax1,
Double_t rmin2, Double_t rmax2);
TGeoVolume *MakeCons(const char *name, const TGeoMedium *medium,
Double_t dz, Double_t rmin1, Double_t rmax1,
Double_t rmin2, Double_t rmax2,
Double_t phi1, Double_t phi2);
TGeoVolume *MakeCtub(const char *name, const TGeoMedium *medium,
Double_t rmin, Double_t rmax, Double_t dz, Double_t phi1, Double_t phi2,
Double_t lx, Double_t ly, Double_t lz, Double_t tx, Double_t ty, Double_t tz);
TGeoVolume *MakeEltu(const char *name, const TGeoMedium *medium,
Double_t a, Double_t b, Double_t dz);
TGeoVolume *MakeGtra(const char *name, const TGeoMedium *medium,
Double_t dz, Double_t theta, Double_t phi, Double_t twist, Double_t h1,
Double_t bl1, Double_t tl1, Double_t alpha1, Double_t h2, Double_t bl2,
Double_t tl2, Double_t alpha2);
TGeoVolume *MakePara(const char *name, const TGeoMedium *medium,
Double_t dx, Double_t dy, Double_t dz,
Double_t alpha, Double_t theta, Double_t phi);
TGeoVolume *MakePcon(const char *name, const TGeoMedium *medium,
Double_t phi, Double_t dphi, Int_t nz);
TGeoVolume *MakeParaboloid(const char *name, const TGeoMedium *medium,
Double_t rlo, Double_t rhi, Double_t dz);
TGeoVolume *MakeHype(const char *name, const TGeoMedium *medium,
Double_t rin, Double_t stin, Double_t rout, Double_t stout, Double_t dz);
TGeoVolume *MakePgon(const char *name, const TGeoMedium *medium,
Double_t phi, Double_t dphi, Int_t nedges, Int_t nz);
TGeoVolume *MakeSphere(const char *name, const TGeoMedium *medium,
Double_t rmin, Double_t rmax,
Double_t themin=0, Double_t themax=180,
Double_t phimin=0, Double_t phimax=360);
TGeoVolume *MakeTorus(const char *name, const TGeoMedium *medium, Double_t r,
Double_t rmin, Double_t rmax, Double_t phi1=0, Double_t dphi=360);
TGeoVolume *MakeTrap(const char *name, const TGeoMedium *medium,
Double_t dz, Double_t theta, Double_t phi, Double_t h1,
Double_t bl1, Double_t tl1, Double_t alpha1, Double_t h2, Double_t bl2,
Double_t tl2, Double_t alpha2);
TGeoVolume *MakeTrd1(const char *name, const TGeoMedium *medium,
Double_t dx1, Double_t dx2, Double_t dy, Double_t dz);
TGeoVolume *MakeTrd2(const char *name, const TGeoMedium *medium,
Double_t dx1, Double_t dx2, Double_t dy1, Double_t dy2,
Double_t dz);
TGeoVolume *MakeTube(const char *name, const TGeoMedium *medium,
Double_t rmin, Double_t rmax, Double_t dz);
TGeoVolume *MakeTubs(const char *name, const TGeoMedium *medium,
Double_t rmin, Double_t rmax, Double_t dz,
Double_t phi1, Double_t phi2);
TGeoVolume *MakeXtru(const char *name, const TGeoMedium *medium,
Int_t nz);
TGeoPNEntry *SetAlignableEntry(const char *unique_name, const char *path, Int_t uid=-1);
TGeoPNEntry *GetAlignableEntry(const char *name) const;
TGeoPNEntry *GetAlignableEntry(Int_t index) const;
TGeoPNEntry *GetAlignableEntryByUID(Int_t uid) const;
Int_t GetNAlignable(Bool_t with_uid=kFALSE) const;
TGeoPhysicalNode *MakeAlignablePN(const char *name);
TGeoPhysicalNode *MakeAlignablePN(TGeoPNEntry *entry);
TGeoPhysicalNode *MakePhysicalNode(const char *path=0);
void ClearPhysicalNodes(Bool_t mustdelete=kFALSE);
void RefreshPhysicalNodes(Bool_t lock=kTRUE);
TVirtualGeoTrack *MakeTrack(Int_t id, Int_t pdgcode, TObject *particle);
TGeoVolumeAssembly *MakeVolumeAssembly(const char *name);
TGeoVolumeMulti *MakeVolumeMulti(const char *name, const TGeoMedium *medium);
void SetTopVolume(TGeoVolume *vol);
TGeoNode *CrossBoundaryAndLocate(Bool_t downwards, TGeoNode *skipnode);
TGeoNode *FindNextBoundary(Double_t stepmax=TGeoShape::Big(),const char *path="", Bool_t frombdr=kFALSE);
TGeoNode *FindNextDaughterBoundary(Double_t *point, Double_t *dir, Int_t &idaughter, Bool_t compmatrix=kFALSE);
TGeoNode *FindNextBoundaryAndStep(Double_t stepmax=TGeoShape::Big(), Bool_t compsafe=kFALSE);
TGeoNode *FindNode(Bool_t safe_start=kTRUE);
TGeoNode *FindNode(Double_t x, Double_t y, Double_t z);
Double_t *FindNormal(Bool_t forward=kTRUE);
Double_t *FindNormalFast();
TGeoNode *InitTrack(const Double_t *point, const Double_t *dir);
TGeoNode *InitTrack(Double_t x, Double_t y, Double_t z, Double_t nx, Double_t ny, Double_t nz);
void ResetState();
Double_t Safety(Bool_t inside=kFALSE);
TGeoNode *SearchNode(Bool_t downwards=kFALSE, const TGeoNode *skipnode=0);
TGeoNode *Step(Bool_t is_geom=kTRUE, Bool_t cross=kTRUE);
void DisableInactiveVolumes() {fActivity=kTRUE;}
void EnableInactiveVolumes() {fActivity=kFALSE;}
void SetCurrentTrack(Int_t i) {fCurrentTrack = (TVirtualGeoTrack*)fTracks->At(i);}
void SetCurrentTrack(TVirtualGeoTrack *track) {fCurrentTrack=track;}
Int_t GetNtracks() const {return fNtracks;}
TVirtualGeoTrack *GetCurrentTrack() {return fCurrentTrack;}
TVirtualGeoTrack *GetLastTrack() {return (TVirtualGeoTrack*)((fNtracks>0)?fTracks->At(fNtracks-1):NULL);}
const Double_t *GetLastPoint() const {return fCurrentNavigator->GetLastPoint();}
TVirtualGeoTrack *GetTrack(Int_t index) {return (index<fNtracks)?(TVirtualGeoTrack*)fTracks->At(index):0;}
Int_t GetTrackIndex(Int_t id) const;
TVirtualGeoTrack *GetTrackOfId(Int_t id) const;
TVirtualGeoTrack *GetParentTrackOfId(Int_t id) const;
Int_t GetVirtualLevel();
Bool_t GotoSafeLevel();
Int_t GetSafeLevel() const;
Double_t GetSafeDistance() const {return fCurrentNavigator->GetSafeDistance();}
Double_t GetLastSafety() const {return fCurrentNavigator->GetLastSafety();}
Double_t GetStep() const {return fCurrentNavigator->GetStep();}
void InspectState() const;
Bool_t IsAnimatingTracks() const {return fIsGeomReading;}
Bool_t IsCheckingOverlaps() const {return fCurrentNavigator->IsCheckingOverlaps();}
Bool_t IsMatrixTransform() const {return fMatrixTransform;}
Bool_t IsMatrixReflection() const {return fMatrixReflection;}
Bool_t IsSameLocation(Double_t x, Double_t y, Double_t z, Bool_t change=kFALSE);
Bool_t IsSameLocation() const {return fCurrentNavigator->IsSameLocation();}
Bool_t IsSamePoint(Double_t x, Double_t y, Double_t z) const;
Bool_t IsStartSafe() const {return fCurrentNavigator->IsStartSafe();}
void SetCheckingOverlaps(Bool_t flag=kTRUE) {fCurrentNavigator->SetCheckingOverlaps(flag);}
void SetStartSafe(Bool_t flag=kTRUE) {fCurrentNavigator->SetStartSafe(flag);}
void SetMatrixTransform(Bool_t on=kTRUE) {fMatrixTransform = on;}
void SetMatrixReflection(Bool_t flag=kTRUE) {fMatrixReflection = flag;}
void SetStep(Double_t step) {fCurrentNavigator->SetStep(step);}
Bool_t IsCurrentOverlapping() const {return fCurrentNavigator->IsCurrentOverlapping();}
Bool_t IsEntering() const {return fCurrentNavigator->IsEntering();}
Bool_t IsExiting() const {return fCurrentNavigator->IsExiting();}
Bool_t IsStepEntering() const {return fCurrentNavigator->IsStepEntering();}
Bool_t IsStepExiting() const {return fCurrentNavigator->IsStepExiting();}
Bool_t IsOutside() const {return fCurrentNavigator->IsOutside();}
Bool_t IsOnBoundary() const {return fCurrentNavigator->IsOnBoundary();}
Bool_t IsNullStep() const {return fCurrentNavigator->IsNullStep();}
Bool_t IsActivityEnabled() const {return fActivity;}
void SetOutside(Bool_t flag=kTRUE) {fCurrentNavigator->SetOutside(flag);}
void CleanGarbage();
void ClearShape(const TGeoShape *shape);
void ClearTracks() {fTracks->Delete(); fNtracks=0;}
void RemoveMaterial(Int_t index);
void ResetUserData();
Int_t CountNodes(const TGeoVolume *vol=0, Int_t nlevels=10000, Int_t option=0);
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
static Int_t Parse(const char* expr, TString &expr1, TString &expr2, TString &expr3);
Int_t ReplaceVolume(TGeoVolume *vorig, TGeoVolume *vnew);
Int_t TransformVolumeToAssembly(const char *vname);
UChar_t *GetBits() {return fBits;}
virtual Int_t GetByteCount(Option_t *option=0);
Int_t *GetIntBuffer(Int_t length);
Double_t *GetDblBuffer(Int_t length);
void SetAllIndex();
virtual Int_t Export(const char *filename, const char *name="", Option_t *option="v");
static void LockGeometry();
static void UnlockGeometry();
static Int_t GetVerboseLevel();
static void SetVerboseLevel(Int_t vl);
static TGeoManager *Import(const char *filename, const char *name="", Option_t *option="");
static Bool_t IsLocked();
Bool_t IsStreamingVoxels() const {return fStreamVoxels;}
TObjArray *GetListOfNodes() {return fNodes;}
TObjArray *GetListOfPhysicalNodes() {return fPhysicalNodes;}
TObjArray *GetListOfOverlaps() {return fOverlaps;}
TObjArray *GetListOfMatrices() const {return fMatrices;}
TList *GetListOfMaterials() const {return fMaterials;}
TList *GetListOfMedia() const {return fMedia;}
TObjArray *GetListOfVolumes() const {return fVolumes;}
TObjArray *GetListOfGVolumes() const {return fGVolumes;}
TObjArray *GetListOfShapes() const {return fShapes;}
TObjArray *GetListOfGShapes() const {return fGShapes;}
TObjArray *GetListOfUVolumes() const {return fUniqueVolumes;}
TObjArray *GetListOfTracks() const {return fTracks;}
TObjArray *GetListOfNavigators() const {return fNavigators;}
TGeoElementTable *GetElementTable() const {return fElementTable;}
void DoBackupState();
void DoRestoreState();
TGeoNode *GetNode(Int_t level) const {return (TGeoNode*)fNodes->UncheckedAt(level);}
Int_t GetNodeId() const {return fCurrentNavigator->GetNodeId();}
TGeoNode *GetNextNode() const {return fCurrentNavigator->GetNextNode();}
TGeoNode *GetMother(Int_t up=1) const {return fCurrentNavigator->GetMother(up);}
TGeoHMatrix *GetMotherMatrix(Int_t up=1) const {return fCurrentNavigator->GetMotherMatrix(up);}
TGeoHMatrix *GetHMatrix();
TGeoHMatrix *GetCurrentMatrix() const {return fCurrentNavigator->GetCurrentMatrix();}
TGeoHMatrix *GetGLMatrix() const {return fGLMatrix;}
TGeoNavigator *GetCurrentNavigator() const {return fCurrentNavigator;}
TGeoNode *GetCurrentNode() const {return fCurrentNavigator->GetCurrentNode();}
Int_t GetCurrentNodeId() const;
const Double_t *GetCurrentPoint() const {return fCurrentNavigator->GetCurrentPoint();}
const Double_t *GetCurrentDirection() const {return fCurrentNavigator->GetCurrentDirection();}
TGeoVolume *GetCurrentVolume() const {return fCurrentNavigator->GetCurrentVolume();}
const Double_t *GetCldirChecked() const {return fCurrentNavigator->GetCldirChecked();}
const Double_t *GetCldir() const {return fCurrentNavigator->GetCldir();}
const Double_t *GetNormal() const {return fCurrentNavigator->GetNormal();}
Int_t GetLevel() const {return fCurrentNavigator->GetLevel();}
Int_t GetMaxLevel() const {return fNLevel;}
const char *GetPath() const;
Int_t GetStackLevel() const {return fCurrentNavigator->GetStackLevel();}
TGeoVolume *GetMasterVolume() const {return fMasterVolume;}
TGeoVolume *GetTopVolume() const {return fTopVolume;}
TGeoNode *GetTopNode() const {return fTopNode;}
TGeoPhysicalNode *GetPhysicalNode(Int_t i) const {return (TGeoPhysicalNode*)fPhysicalNodes->UncheckedAt(i);}
void SetCurrentPoint(Double_t *point) {fCurrentNavigator->SetCurrentPoint(point);}
void SetCurrentPoint(Double_t x, Double_t y, Double_t z) {fCurrentNavigator->SetCurrentPoint(x,y,z);}
void SetLastPoint(Double_t x, Double_t y, Double_t z) {fCurrentNavigator->SetLastPoint(x,y,z);}
void SetCurrentDirection(Double_t *dir) {fCurrentNavigator->SetCurrentDirection(dir);}
void SetCurrentDirection(Double_t nx, Double_t ny, Double_t nz) {fCurrentNavigator->SetCurrentDirection(nx,ny,nz);}
void SetCldirChecked(Double_t *dir) {fCurrentNavigator->SetCldirChecked(dir);}
void LocalToMaster(const Double_t *local, Double_t *master) const {fCurrentNavigator->LocalToMaster(local, master);}
void LocalToMasterVect(const Double_t *local, Double_t *master) const {fCurrentNavigator->LocalToMasterVect(local, master);}
void LocalToMasterBomb(const Double_t *local, Double_t *master) const {fCurrentNavigator->LocalToMasterBomb(local, master);}
void MasterToLocal(const Double_t *master, Double_t *local) const {fCurrentNavigator->MasterToLocal(master, local);}
void MasterToLocalVect(const Double_t *master, Double_t *local) const {fCurrentNavigator->MasterToLocalVect(master, local);}
void MasterToLocalBomb(const Double_t *master, Double_t *local) const {fCurrentNavigator->MasterToLocalBomb(master, local);}
void MasterToTop(const Double_t *master, Double_t *top) const;
void TopToMaster(const Double_t *top, Double_t *master) const;
TGeoMaterial *FindDuplicateMaterial(const TGeoMaterial *mat) const;
TGeoVolume *FindVolumeFast(const char*name, Bool_t multi=kFALSE);
TGeoMaterial *GetMaterial(const char *matname) const;
TGeoMaterial *GetMaterial(Int_t id) const;
TGeoMedium *GetMedium(const char *medium) const;
TGeoMedium *GetMedium(Int_t numed) const;
Int_t GetMaterialIndex(const char *matname) const;
TGeoVolume *GetVolume(const char*name) const;
TGeoVolume *GetVolume(Int_t uid) const {return (TGeoVolume*)fUniqueVolumes->At(uid);}
Int_t GetUID(const char *volname) const;
Int_t GetNNodes() {if (!fNNodes) CountNodes(); return fNNodes;}
TGeoNodeCache *GetCache() const {return fCurrentNavigator->GetCache();}
void SetAnimateTracks(Bool_t flag=kTRUE) {fIsGeomReading=flag;}
virtual ULong_t SizeOf(const TGeoNode *node, Option_t *option);
void SelectTrackingMedia();
Int_t PushPath(Int_t startlevel=0) {return fCurrentNavigator->PushPath(startlevel);}
Bool_t PopPath() {return fCurrentNavigator->PopPath();}
Bool_t PopPath(Int_t index) {return fCurrentNavigator->PopPath(index);}
Int_t PushPoint(Int_t startlevel=0) {return fCurrentNavigator->PushPoint(startlevel);}
Bool_t PopPoint() {return fCurrentNavigator->PopPoint();}
Bool_t PopPoint(Int_t index) {return fCurrentNavigator->PopPoint(index);}
void PopDummy(Int_t ipop=9999) {return fCurrentNavigator->PopDummy(ipop);}
ClassDef(TGeoManager, 12)
};
R__EXTERN TGeoManager *gGeoManager;
#endif
Last change: Wed Dec 17 16:19:37 2008
Last generated: 2008-12-17 16:19
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.