StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StiElossCalculator.h
1 
2 #ifndef StiElossCalculator_H_INCLUDED
3 #define StiElossCalculator_H_INCLUDED
4 #include "Stiostream.h"
25 #include <string>
26 using namespace std;
27 
29 {
30  public:
32  StiElossCalculator(double zOverA, double ionization, double A, double Z, double Dens);
33  void set(double zOverA, double ionization, double A, double Z, double Dens);
34 
35  virtual ~StiElossCalculator();
36  double calculate(double charge2, double m, double beta2) const;
37  double calcError(double charge2, double m, double beta2) const;
38  double getzOverA() const {return _zOverA;}
39  double getionization2() const {return _ionization2;}
40  double getA() const {return _A;}
41  double getZ() const {return _Z;}
42  double getDens() const {return _Dens;}
43  protected:
44  static const double _k;
45 
47  double _zOverA;
49  double _ionization2;
50  double _A;
51  double _Z;
52  double _Dens;
53  int mId;
54 };
55 ostream& operator<<(ostream& os, const StiElossCalculator& m);
57 #endif
58 
double _ionization2
square of the ionization potential.
double _zOverA
Ratio of Z to A of the scattering material.