Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TMaterial.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/g3d:$Id$
0002 // Author: Rene Brun   03/10/95
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 
0013 //////////////////////////////////////////////////////////////////////////
0014 //                                                                      //
0015 // TMaterial                                                            //
0016 //                                                                      //
0017 // Materials used in the Geometry Shapes                                //
0018 //                                                                      //
0019 //                                                                      //
0020 //////////////////////////////////////////////////////////////////////////
0021 
0022 #ifndef ROOT_TMaterial
0023 #define ROOT_TMaterial
0024 
0025 #include "TNamed.h"
0026 #include "TAttFill.h"
0027 
0028 class TMaterial  : public TNamed, public TAttFill {
0029 protected:
0030    Int_t        fNumber;      //Material matrix number
0031    Float_t      fA;           //A of Material
0032    Float_t      fZ;           //Z of Material
0033    Float_t      fDensity;     //Material density in gr/cm3
0034    Float_t      fRadLength;   //Material radiation length
0035    Float_t      fInterLength; //Material interaction length
0036 
0037 public:
0038    TMaterial();
0039    TMaterial(const char *name, const char *title, Float_t a, Float_t z, Float_t density);
0040    TMaterial(const char *name, const char *title, Float_t a, Float_t z, Float_t density, Float_t radl, Float_t inter);
0041    ~TMaterial() override;
0042    virtual Int_t     GetNumber() const      {return fNumber;}
0043    virtual Float_t   GetA() const           {return fA;}
0044    virtual Float_t   GetZ() const           {return fZ;}
0045    virtual Float_t   GetDensity() const     {return fDensity;}
0046    virtual Float_t   GetRadLength() const   {return fRadLength;}
0047    virtual Float_t   GetInterLength() const {return fInterLength;}
0048 
0049    ClassDefOverride(TMaterial,3)  //Materials used in the Geometry Shapes
0050 };
0051 
0052 #endif