ROOT logo
// @(#)root/g3d:$Id: TMixture.h 20882 2007-11-19 11:31:26Z rdm $
// Author: Rene Brun   03/10/95

/*************************************************************************
 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/


//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TMixture                                                             //
//                                                                      //
// Mixtures used in the Geometry Shapes                                 //
//                                                                      //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TMixture
#define ROOT_TMixture

#ifndef ROOT_TMaterial
#include "TMaterial.h"
#endif

class TMixture  : public TMaterial {
protected:
   Int_t        fNmixt;       //Number of elements in mixture
   Float_t      *fAmixt;      //[fNmixt] Array of A of mixtures
   Float_t      *fZmixt;      //[fNmixt] Array of Z of mixtures
   Float_t      *fWmixt;      //[fNmixt] Array of relative weights

public:
   TMixture();
   TMixture(const char *name, const char *title, Int_t nmixt);
   virtual ~TMixture();

   virtual void  DefineElement(Int_t n, Float_t a, Float_t z, Float_t w);
   Int_t         GetNmixt() const {return fNmixt;}
   Float_t      *GetAmixt() const {return fAmixt;}
   Float_t      *GetZmixt() const {return fZmixt;}
   Float_t      *GetWmixt() const {return fWmixt;}

   ClassDef(TMixture,1)  //Mixtures used in the Geometry Shapes
};

#endif
 TMixture.h:1
 TMixture.h:2
 TMixture.h:3
 TMixture.h:4
 TMixture.h:5
 TMixture.h:6
 TMixture.h:7
 TMixture.h:8
 TMixture.h:9
 TMixture.h:10
 TMixture.h:11
 TMixture.h:12
 TMixture.h:13
 TMixture.h:14
 TMixture.h:15
 TMixture.h:16
 TMixture.h:17
 TMixture.h:18
 TMixture.h:19
 TMixture.h:20
 TMixture.h:21
 TMixture.h:22
 TMixture.h:23
 TMixture.h:24
 TMixture.h:25
 TMixture.h:26
 TMixture.h:27
 TMixture.h:28
 TMixture.h:29
 TMixture.h:30
 TMixture.h:31
 TMixture.h:32
 TMixture.h:33
 TMixture.h:34
 TMixture.h:35
 TMixture.h:36
 TMixture.h:37
 TMixture.h:38
 TMixture.h:39
 TMixture.h:40
 TMixture.h:41
 TMixture.h:42
 TMixture.h:43
 TMixture.h:44
 TMixture.h:45
 TMixture.h:46
 TMixture.h:47
 TMixture.h:48
 TMixture.h:49
 TMixture.h:50