Logo ROOT   6.18/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
27class TMixture : public TMaterial {
28protected:
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
34public:
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
int Int_t
Definition: RtypesCore.h:41
float Float_t
Definition: RtypesCore.h:53
#define ClassDef(name, id)
Definition: Rtypes.h:326
char name[80]
Definition: TGX11.cxx:109
Manages a detector material.
Definition: TMaterial.h:28
Manages a detector mixture.
Definition: TMixture.h:27
Int_t fNmixt
Definition: TMixture.h:29
virtual ~TMixture()
Mixture default destructor.
Definition: TMixture.cxx:73
Float_t * GetWmixt() const
Definition: TMixture.h:43
Float_t * fZmixt
Definition: TMixture.h:31
Float_t * GetZmixt() const
Definition: TMixture.h:42
Float_t * GetAmixt() const
Definition: TMixture.h:41
Float_t * fWmixt
Definition: TMixture.h:32
Float_t * fAmixt
Definition: TMixture.h:30
virtual void DefineElement(Int_t n, Float_t a, Float_t z, Float_t w)
Define one mixture element.
Definition: TMixture.cxx:86
Int_t GetNmixt() const
Definition: TMixture.h:40
TMixture()
Mixture default constructor.
Definition: TMixture.cxx:27
const Int_t n
Definition: legend1.C:16
auto * a
Definition: textangle.C:12