StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
dEdx_formula.cc
1 #include "TMath.h"
2 #include "StarClassLibrary/BetheBloch.h"
3 
4 static BetheBloch* bb = 0;
5 double dEdx_formula(double x,double massin){
6  if (bb==0) bb = new BetheBloch();
7  double real_momentum = x;
8  double mass = massin;
9  double bg2 = real_momentum*real_momentum/(mass*mass);
10  double bg = ::sqrt(bg2);
11  //double result = bb->operator()(bg);
12  double result = bb->Sirrf(bg);
13  return result;
14 }
15