library: libGeom #include "TGeoElement.h"

# TGeoElementTable

class description - source file - inheritance tree (.ps)

## class TGeoElementTable : public TObject

| Inheritance Chart:

`TObject`

<-

`TGeoElementTable`

        private:

          void BuildDefaultElements()

        public:

                                   TGeoElementTable()
                                   TGeoElementTable(Int_t nelements)
                                   TGeoElementTable(const TGeoElementTable&)
                           virtual ~TGeoElementTable()
                              void AddElement(const char* name, const char* title, Int_t z, Double_t a)
                    static TClass* Class()
                      TGeoElement* FindElement(const char* name)
                      TGeoElement* GetElement(Int_t z)
                             Int_t GetNelements() const
          static TGeoElementTable* Instance()
                   virtual TClass* IsA() const
                 TGeoElementTable& operator=(const TGeoElementTable&)
                      virtual void ShowMembers(TMemberInspector& insp, char* parent)
                      virtual void Streamer(TBuffer& b)
                              void StreamerNVirtual(TBuffer& b)

### Data Members

        private:

          static TGeoElementTable* fgInstance
                             Int_t fNelements  number of elements
                        TObjArray* fList       list of elements

## Class Description

     Full description with examples and pictures

TGeoElementTable()

     default constructor

TGeoElementTable(Int_t /*nelements*/)

     constructor

~TGeoElementTable()

     destructor

void AddElement(const char *name, const char *title, Int_t z, Double_t a)

     Add an element to the table.

void BuildDefaultElements()

     Creates the default element table

TGeoElement* FindElement(const char *name)

     Search an element by symbol or full name

### Inline Functions

            TGeoElementTable* Instance()
                 TGeoElement* GetElement(Int_t z)
                        Int_t GetNelements() const
                      TClass* Class()
                      TClass* IsA() const
                         void ShowMembers(TMemberInspector& insp, char* parent)
                         void Streamer(TBuffer& b)
                         void StreamerNVirtual(TBuffer& b)
             TGeoElementTable TGeoElementTable(const TGeoElementTable&)
            TGeoElementTable& operator=(const TGeoElementTable&)

Author: Andrei Gheata 17/06/04
Last update: root/geom:$Name: $:$Id: TGeoElement.cxx,v 1.4 2004/07/05 08:52:35 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *