TMaterial.h

Go to the documentation of this file.
00001 // @(#)root/g3d:$Id: TMaterial.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 // TMaterial                                                            //
00016 //                                                                      //
00017 // Materials used in the Geometry Shapes                                //
00018 //                                                                      //
00019 //                                                                      //
00020 //////////////////////////////////////////////////////////////////////////
00021 
00022 #ifndef ROOT_TMaterial
00023 #define ROOT_TMaterial
00024 
00025 #ifndef ROOT_TNamed
00026 #include "TNamed.h"
00027 #endif
00028 #ifndef ROOT_TAttFill
00029 #include "TAttFill.h"
00030 #endif
00031 
00032 class TMaterial  : public TNamed, public TAttFill {
00033 protected:
00034    Int_t        fNumber;      //Material matrix number
00035    Float_t      fA;           //A of Material
00036    Float_t      fZ;           //Z of Material
00037    Float_t      fDensity;     //Material density in gr/cm3
00038    Float_t      fRadLength;   //Material radiation length
00039    Float_t      fInterLength; //Material interaction length
00040 
00041 public:
00042    TMaterial();
00043    TMaterial(const char *name, const char *title, Float_t a, Float_t z, Float_t density);
00044    TMaterial(const char *name, const char *title, Float_t a, Float_t z, Float_t density, Float_t radl, Float_t inter);
00045    virtual ~TMaterial();
00046    virtual Int_t     GetNumber() const      {return fNumber;}
00047    virtual Float_t   GetA() const           {return fA;}
00048    virtual Float_t   GetZ() const           {return fZ;}
00049    virtual Float_t   GetDensity() const     {return fDensity;}
00050    virtual Float_t   GetRadLength() const   {return fRadLength;}
00051    virtual Float_t   GetInterLength() const {return fInterLength;}
00052 
00053    ClassDef(TMaterial,3)  //Materials used in the Geometry Shapes
00054 };
00055 
00056 #endif

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