library: libGeom #include "TGeoMedium.h"

# TGeoMedium

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

## class TGeoMedium : public TNamed

| Inheritance Chart:
`TObject`
| <- | `TNamed`
| <- | `TGeoMedium` |

        public:

                          TGeoMedium()
                          TGeoMedium(const char* name, Int_t numed, const TGeoMaterial* mat, Double_t* params = 0)
                          TGeoMedium(const char* name, Int_t numed, Int_t imat, Int_t isvol, Int_t ifield, Double_t fieldm, Double_t tmaxfd, Double_t stemax, Double_t deemax, Double_t epsil, Double_t stmin)
                          TGeoMedium(const TGeoMedium&)
                  virtual ~TGeoMedium()
           static TClass* Class()
            virtual Int_t GetByteCount() const
                    Int_t GetId() const
            TGeoMaterial* GetMaterial() const
                 Double_t GetParam(Int_t i) const
                    char* GetPointerName() const
          virtual TClass* IsA() const
              TGeoMedium& operator=(const TGeoMedium&)
             virtual void SavePrimitive(ofstream& out, Option_t* option)
             virtual void SetCerenkovProperties(TObject* cerenkov)
                     void SetId(Int_t id)
                     void SetMaterial(TGeoMaterial* mat)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

                  Int_t fId          unique Id
               Double_t fParams[20]  parameters
          TGeoMaterial* fMaterial    pointer to material

        public:

          static const TGeoMedium::EGeoMedium kMedSavePrimitive

## Class Description

     Full description with examples and pictures

TGeoMedium()

     Default constructor

TGeoMedium(const char *name, Int_t numed, const TGeoMaterial *mat, Double_t *params) :TNamed(name,"")

     constructor

TGeoMedium(const char *name, Int_t numed, Int_t imat, Int_t isvol, Int_t ifield, Double_t fieldm, Double_t tmaxfd, Double_t stemax, Double_t deemax, Double_t epsil, Double_t stmin) :TNamed(name,"")

     constructor

~TGeoMedium()

     Destructor

char* GetPointerName() const

     Provide a pointer name containing uid.

void SavePrimitive(ofstream &out, Option_t *option)

     Save a primitive as a C++ statement(s) on output stream "out".

### Inline Functions

                    Int_t GetByteCount() const
                    Int_t GetId() const
                 Double_t GetParam(Int_t i) const
            TGeoMaterial* GetMaterial() const
                     void SetId(Int_t id)
                     void SetMaterial(TGeoMaterial* mat)
                     void SetCerenkovProperties(TObject* cerenkov)
                  TClass* Class()
                  TClass* IsA() const
                     void ShowMembers(TMemberInspector& insp, char* parent)
                     void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)
               TGeoMedium TGeoMedium(const TGeoMedium&)
              TGeoMedium& operator=(const TGeoMedium&)

Author: Rene Brun 26/12/02
Last update: root/geom:$Name: $:$Id: TGeoMedium.cxx,v 1.4 2005/06/14 15:47:02 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *