Revision 35ae36963dbb25b855e8c0f8473190c8ef0f93a4 authored by Rene Brun on 06 March 2004, 10:10:53 UTC, committed by Rene Brun on 06 March 2004, 10:10:53 UTC
Fix to a problem reported bi Dimitri Smirnov when creating a branch with a name
specified with a std::string


git-svn-id: http://root.cern.ch/svn/root/trunk@8333 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent 331b515
Raw File
TMixture.h
// @(#)root/g3d:$Name:  $:$Id: TMixture.h,v 1.1.1.1 2000/05/16 17:00:43 rdm Exp $
// 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
back to top