TMixture.h

Go to the documentation of this file.
00001 // @(#)root/g3d:$Id: TMixture.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: Rene Brun   03/10/95
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 
00013 //////////////////////////////////////////////////////////////////////////
00014 //                                                                      //
00015 // TMixture                                                             //
00016 //                                                                      //
00017 // Mixtures used in the Geometry Shapes                                 //
00018 //                                                                      //
00019 //                                                                      //
00020 //////////////////////////////////////////////////////////////////////////
00021 
00022 #ifndef ROOT_TMixture
00023 #define ROOT_TMixture
00024 
00025 #ifndef ROOT_TMaterial
00026 #include "TMaterial.h"
00027 #endif
00028 
00029 class TMixture  : public TMaterial {
00030 protected:
00031    Int_t        fNmixt;       //Number of elements in mixture
00032    Float_t      *fAmixt;      //[fNmixt] Array of A of mixtures
00033    Float_t      *fZmixt;      //[fNmixt] Array of Z of mixtures
00034    Float_t      *fWmixt;      //[fNmixt] Array of relative weights
00035 
00036 public:
00037    TMixture();
00038    TMixture(const char *name, const char *title, Int_t nmixt);
00039    virtual ~TMixture();
00040 
00041    virtual void  DefineElement(Int_t n, Float_t a, Float_t z, Float_t w);
00042    Int_t         GetNmixt() const {return fNmixt;}
00043    Float_t      *GetAmixt() const {return fAmixt;}
00044    Float_t      *GetZmixt() const {return fZmixt;}
00045    Float_t      *GetWmixt() const {return fWmixt;}
00046 
00047    ClassDef(TMixture,1)  //Mixtures used in the Geometry Shapes
00048 };
00049 
00050 #endif

Generated on Tue Jul 5 14:16:20 2011 for ROOT_528-00b_version by  doxygen 1.5.1