Logo ROOT   6.14/05
Reference Guide
TMixture.h
Go to the documentation of this file.
1 // @(#)root/g3d:$Id$
2 // Author: Rene Brun 03/10/95
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 
13 //////////////////////////////////////////////////////////////////////////
14 // //
15 // TMixture //
16 // //
17 // Mixtures used in the Geometry Shapes //
18 // //
19 // //
20 //////////////////////////////////////////////////////////////////////////
21 
22 #ifndef ROOT_TMixture
23 #define ROOT_TMixture
24 
25 #include "TMaterial.h"
26 
27 class TMixture : public TMaterial {
28 protected:
29  Int_t fNmixt; //Number of elements in mixture
30  Float_t *fAmixt; //[fNmixt] Array of A of mixtures
31  Float_t *fZmixt; //[fNmixt] Array of Z of mixtures
32  Float_t *fWmixt; //[fNmixt] Array of relative weights
33 
34 public:
35  TMixture();
36  TMixture(const char *name, const char *title, Int_t nmixt);
37  virtual ~TMixture();
38 
39  virtual void DefineElement(Int_t n, Float_t a, Float_t z, Float_t w);
40  Int_t GetNmixt() const {return fNmixt;}
41  Float_t *GetAmixt() const {return fAmixt;}
42  Float_t *GetZmixt() const {return fZmixt;}
43  Float_t *GetWmixt() const {return fWmixt;}
44 
45  ClassDef(TMixture,1) //Mixtures used in the Geometry Shapes
46 };
47 
48 #endif
Manages a detector mixture.
Definition: TMixture.h:27
float Float_t
Definition: RtypesCore.h:53
Float_t * fWmixt
Definition: TMixture.h:32
int Int_t
Definition: RtypesCore.h:41
TMixture()
Mixture default constructor.
Definition: TMixture.cxx:27
#define ClassDef(name, id)
Definition: Rtypes.h:320
Manages a detector material.
Definition: TMaterial.h:28
auto * a
Definition: textangle.C:12
Float_t * GetZmixt() const
Definition: TMixture.h:42
Int_t fNmixt
Definition: TMixture.h:29
Float_t * fAmixt
Definition: TMixture.h:30
Float_t * fZmixt
Definition: TMixture.h:31
virtual void DefineElement(Int_t n, Float_t a, Float_t z, Float_t w)
Define one mixture element.
Definition: TMixture.cxx:86
you should not use this method at all Int_t Int_t z
Definition: TRolke.cxx:630
virtual ~TMixture()
Mixture default destructor.
Definition: TMixture.cxx:73
Float_t * GetWmixt() const
Definition: TMixture.h:43
Int_t GetNmixt() const
Definition: TMixture.h:40
const Int_t n
Definition: legend1.C:16
char name[80]
Definition: TGX11.cxx:109
Float_t * GetAmixt() const
Definition: TMixture.h:41