ROOT logo
#ifndef HKalMixture_h
#define HKalMixture_h

// from ROOT
#include "TMixture.h"


class HKalMixture : public TMixture {

private:
    Float_t  fExciteEner;     // Mean excitation energy of mixture in MeV.

    Float_t *fDensityMixt;    // Stores densities in g/mm^3 of components.
    Float_t *fExciteEnerMixt; // Stores mean excitation energy in MeV of components.
    Float_t *fRadLengthMixt;  // Stores radiation length in mm of components.

public:

    HKalMixture();
    HKalMixture(const char *name, const char *title, Int_t nmixt=1);
    virtual ~HKalMixture();

    static  void     calcMassFracFromVolFrac(Float_t w[], Int_t n, const Float_t rho[], const Float_t vol[]);
    virtual void     calcMixture            ();
    virtual void     defineElement          (Int_t n, const Float_t mat[5], Float_t w);
    virtual void     defineElement          (Int_t n, Float_t a, Float_t z, Float_t dense, Float_t exener, Float_t radl, Float_t w);
    virtual void     print                  (const char *opt="") const;

    virtual Float_t* GetDensityMixt         () const { return fDensityMixt;    }
    virtual Float_t  GetExciteEner          () const { return fExciteEner;     }
    virtual Float_t* GetExciteEnerMixt      () const { return fExciteEnerMixt; }
    virtual Float_t* GetRadLengthMixt       () const { return fRadLengthMixt;  }

    ClassDef(HKalMixture, 0)
};

#endif // HKalMixture_h
 hkalmixture.h:1
 hkalmixture.h:2
 hkalmixture.h:3
 hkalmixture.h:4
 hkalmixture.h:5
 hkalmixture.h:6
 hkalmixture.h:7
 hkalmixture.h:8
 hkalmixture.h:9
 hkalmixture.h:10
 hkalmixture.h:11
 hkalmixture.h:12
 hkalmixture.h:13
 hkalmixture.h:14
 hkalmixture.h:15
 hkalmixture.h:16
 hkalmixture.h:17
 hkalmixture.h:18
 hkalmixture.h:19
 hkalmixture.h:20
 hkalmixture.h:21
 hkalmixture.h:22
 hkalmixture.h:23
 hkalmixture.h:24
 hkalmixture.h:25
 hkalmixture.h:26
 hkalmixture.h:27
 hkalmixture.h:28
 hkalmixture.h:29
 hkalmixture.h:30
 hkalmixture.h:31
 hkalmixture.h:32
 hkalmixture.h:33
 hkalmixture.h:34
 hkalmixture.h:35
 hkalmixture.h:36
 hkalmixture.h:37