library: libGeom #include "TGeoMaterial.h"

# TGeoMixture

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

## class TGeoMixture : public TGeoMaterial

| Inheritance Chart:

`TObject`

<-

`TNamed`

`TAttFill`

<-

`TGeoMaterial`

<-

`TGeoMixture`

        public:

                               TGeoMixture()
                               TGeoMixture(const char* name, Int_t nel, Double_t rho = -1)
                               TGeoMixture(const TGeoMixture&)
                       virtual ~TGeoMixture()
                static TClass* Class()
                          void DefineElement(Int_t i, Double_t a, Double_t z, Double_t weight)
                          void DefineElement(Int_t i, TGeoElement* elem, Double_t weight)
                     Double_t* GetAmixt() const
                 virtual Int_t GetByteCount() const
          virtual TGeoElement* GetElement(Int_t i = 0) const
                         Int_t GetNelements() const
                     Double_t* GetWmixt() const
                     Double_t* GetZmixt() const
               virtual TClass* IsA() const
                virtual Bool_t IsEq(const TGeoMaterial* other) const
                virtual Bool_t IsMixture() const
                  TGeoMixture& operator=(const TGeoMixture&)
                  virtual void Print(Option_t* option) const
                  virtual void ShowMembers(TMemberInspector& insp, char* parent)
                  virtual void Streamer(TBuffer& b)
                          void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

              Int_t fNelements  number of elements
          Double_t* fZmixture   [fNelements] array of Z of the elements
          Double_t* fAmixture   [fNelements] array of A of the elements
          Double_t* fWeights    [fNelements] array of relative weights

## Class Description

     Full description with examples and pictures

/* */

TGeoMixture()

     Default constructor

TGeoMixture(const char *name, Int_t nel, Double_t rho) :TGeoMaterial(name)

     constructor

~TGeoMixture()

     Destructor

void DefineElement(Int_t i, Double_t a, Double_t z, Double_t weight)

     add an element to the mixture

void DefineElement(Int_t i, TGeoElement *elem, Double_t weight)

TGeoElement* GetElement(Int_t i) const

Bool_t IsEq(const TGeoMaterial *other) const

     return true if the other material has the same physical properties

void Print(const Option_t * /*option*/) const

     print characteristics of this material

### Inline Functions

                   Int_t GetByteCount() const
                   Int_t GetNelements() const
               Double_t* GetZmixt() const
               Double_t* GetAmixt() const
               Double_t* GetWmixt() const
                  Bool_t IsMixture() const
                 TClass* Class()
                 TClass* IsA() const
                    void ShowMembers(TMemberInspector& insp, char* parent)
                    void Streamer(TBuffer& b)
                    void StreamerNVirtual(TBuffer& b)
             TGeoMixture TGeoMixture(const TGeoMixture&)
            TGeoMixture& operator=(const TGeoMixture&)

Author: Andrei Gheata 25/10/01
Last update: root/geom:$Name: $:$Id: TGeoMaterial.cxx,v 1.12 2004/06/28 08:46:47 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *