library: libGeom
#include "TGeoMaterial.h"

TGeoMixture


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

class TGeoMixture : public TGeoMaterial

Inheritance Chart:
TObject
<-
TNamed
TAttFill
<-
TGeoMaterial
<-
TGeoMixture

    protected:
TGeoMixture(const TGeoMixture&) void AverageProperties() TGeoMixture& operator=(const TGeoMixture&) public:
TGeoMixture() TGeoMixture(const char* name, Int_t nel, Double_t rho = -1) virtual ~TGeoMixture() void AddElement(Double_t a, Double_t z, Double_t weight) void AddElement(TGeoMaterial* mat, Double_t weight) void AddElement(TGeoElement* elem, Double_t weight) void AddElement(TGeoElement* elem, Int_t natoms) static TClass* Class() void DefineElement(Int_t iel, Double_t a, Double_t z, Double_t weight) void DefineElement(Int_t iel, TGeoElement* elem, Double_t weight) void DefineElement(Int_t iel, Int_t z, Int_t natoms) Double_t* GetAmixt() const virtual Int_t GetByteCount() const virtual TGeoElement* GetElement(Int_t i = 0) const Int_t GetNelements() const Int_t* GetNmixt() 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 virtual void Print(Option_t* option = "") const virtual void SavePrimitive(ostream& out, Option_t* option = "") void SetA(Double_t a) void SetZ(Double_t z) 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 proportions by mass Int_t* fNatoms [fNelements] array of numbers of atoms TObjArray* fElements array of elements composing the mixture

Class Description

 Full description with examples and pictures




TGeoMixture()
 Default constructor
TGeoMixture(const TGeoMixture& gm)
copy constructor
TGeoMixture& operator=(const TGeoMixture& gm)
assignment operator
~TGeoMixture()
 Destructor
void AverageProperties()
 Compute effective A/Z and radiation length
void AddElement(TGeoMaterial *mat, Double_t weight)
 Define one component of the mixture as an existing material/mixture.
void AddElement(TGeoElement *elem, Double_t weight)
 add an element to the mixture using fraction by weight
void AddElement(TGeoElement *elem, Int_t natoms)
 Add a mixture element by number of atoms in the chemical formula.
TGeoElement * GetElement(Int_t i)
 Retreive the pointer to the element corresponding to component I.
Bool_t IsEq(const TGeoMaterial *other)
 Return true if the other material has the same physical properties
void SavePrimitive(ostream &out, Option_t * /*option*/ /*= ""*/)
 Save a primitive as a C++ statement(s) on output stream "out".


Int_t GetByteCount()
Bool_t IsMixture()
void Print(const Option_t *option="")
TGeoMixture(const TGeoMixture&)
 methods
void AddElement(Double_t a, Double_t z, Double_t weight)
 methods for adding elements
void DefineElement(Int_t iel, Double_t a, Double_t z, Double_t weight)
 backward compatibility for defining elements
void DefineElement(Int_t iel, TGeoElement *elem, Double_t weight)
void DefineElement(Int_t iel, Int_t z, Int_t natoms)
Int_t GetNelements()
void SetA(Double_t a)
void SetZ(Double_t z)

Author: Andrei Gheata 25/10/01
Last update: root/geom:$Name: $:$Id: TGeoMaterial.cxx,v 1.34 2006/07/10 19:38:35 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

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.