StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StSpectraPool
StRareMaker
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
BetheBloch
Definition:
BetheBloch.h:39
Generated by
1.8.5