Public Member Functions | List of all members
calib::IBetheBloch Class Referenceabstract

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-03/Calibration/func/BetheBloch.h"

Inheritance diagram for calib::IBetheBloch:
calib::BetheBlochAnalytic calib::BetheBlochTables

Public Member Functions

virtual double dEdx (double T) const =0
 
virtual double MPV (double T, double dist, double localDensity) const
 
virtual double MIP () const =0
 
TGraph * GetdEdxGraph (double localDensity) const
 
TGraph * GetMPVGraph (double localDensity, double dist) const
 

Detailed Description

Definition at line 21 of file BetheBloch.h.

Member Function Documentation

virtual double calib::IBetheBloch::dEdx ( double  T) const
pure virtual
TGraph * calib::IBetheBloch::GetdEdxGraph ( double  localDensity) const
Parameters
locaDensityDensity of material in g/cm^3
Returns
Mean dE/dx in MeV/cm vs. kinetic energy in MeV

Definition at line 33 of file BetheBloch.cxx.

References dEdx(), runNovaSAM::ret, and T.

Referenced by calib::BetheBlochFit::endJob(), and MPV().

34  {
35  TGraph* ret = new TGraph;
36  // 1MeV to 100GeV
37  for(double T = 1; T < 1e5; T *= 1.05){
38  ret->SetPoint(ret->GetN(), T, dEdx(T)*localDensity);
39  }
40 
41  return ret;
42  }
virtual double dEdx(double T) const =0
double T
Definition: Xdiff_gwt.C:5
TGraph * calib::IBetheBloch::GetMPVGraph ( double  localDensity,
double  dist 
) const
Parameters
localDensityDensity of material in g/cm^3
distThickness of each layer in cm
Returns
Most probable dE/dx in MeV/cm vs. KE in MeV

Definition at line 45 of file BetheBloch.cxx.

References dist, MPV(), runNovaSAM::ret, and T.

Referenced by calib::BetheBlochFit::endJob(), and MPV().

46  {
47  TGraph* ret = new TGraph;
48  // 1MeV to 100GeV
49  for(double T = 1; T < 1e5; T *= 1.05){
50  ret->SetPoint(ret->GetN(), T,
51  MPV(T, dist, localDensity)*localDensity/dist);
52  }
53 
54  return ret;
55  }
virtual double MPV(double T, double dist, double localDensity) const
Definition: BetheBloch.h:31
double dist
Definition: runWimpSim.h:113
double T
Definition: Xdiff_gwt.C:5
virtual double calib::IBetheBloch::MIP ( ) const
pure virtual
Returns
Mean energy loss of mininum ionizing particle in MeV/g cm^2

Implemented in calib::BetheBlochAnalytic, and calib::BetheBlochTables.

Referenced by calib::BetheBlochFit::endJob(), and MPV().

virtual double calib::IBetheBloch::MPV ( double  T,
double  dist,
double  localDensity 
) const
inlinevirtual
Parameters
TKinetic energy in MeV
distThickness of the layer in cm
localDensityDensity of the layer in g/cm^3
Returns
Most probable energy loss in MeV/g cm^3

Reimplemented in calib::BetheBlochAnalytic.

Definition at line 31 of file BetheBloch.h.

References dist, GetdEdxGraph(), GetMPVGraph(), and MIP().

Referenced by GetMPVGraph().

32  {
33  return 0;
34  }

The documentation for this class was generated from the following files: