GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TSRIM Class Reference

Detailed Description

Definition at line 21 of file TSRIM.h.

Public Member Functions

 TSRIM ()=default
 
 TSRIM (const char *infilename, double emax=-1.0, double emin=0.0, bool printfile=true)
 
 TSRIM (const TSRIM &)=default
 
 TSRIM (TSRIM &&) noexcept=default
 
virtual ~TSRIM ()=default
 
double GetAdjustedEnergy (double energy, double thickness, double stepsize=dx)
 
double GetEmax () const
 
double GetEmin () const
 
double GetEnergy (double energy, double dist)
 
double GetEnergyChange (double energy, double dist)
 
TGraph * GetEnergyLossGraph () const
 
double GetEnergyLost (double energy, double distance, double stepsize=dx)
 
TGraph * GetEvsXGraph () const
 
TSpline3 * GetEvsXSpline () const
 
double GetXmax () const
 
double GetXmin () const
 
TGraph * GetXvsEGraph () const
 
TSpline3 * GetXvsESpline () const
 
TSRIMoperator= (const TSRIM &)=default
 
TSRIMoperator= (TSRIM &&) noexcept=default
 
void ReadEnergyLossFile (const char *filename, double emax=-1.0, double emin=0.0, bool printfile=true)
 

Private Attributes

std::map< std::pair< double, double >, double > AdjustedEnergyMap
 
std::vector< double > fdEdX
 
std::vector< double > fE
 
TGraph * fEgetX {nullptr}
 
double fEmax {0.}
 
double fEmin {0.}
 
TGraph * fEnergyLoss {nullptr}
 
std::vector< double > fIonEnergy
 
TSpline3 * fsEgetX {nullptr}
 
TSpline3 * fsEnergyLoss {nullptr}
 
TSpline3 * fsXgetE {nullptr}
 
std::vector< double > fX
 
TGraph * fXgetE {nullptr}
 
double fXmax {0.}
 
double fXmin {0.}
 

Static Private Attributes

static const double dx = 1.0
 
+ Collaboration diagram for TSRIM:

Constructor & Destructor Documentation

◆ TSRIM() [1/4]

TSRIM::TSRIM ( )
default

◆ TSRIM() [2/4]

TSRIM::TSRIM ( const char * infilename,
double emax = -1.0,
double emin = 0.0,
bool printfile = true )
explicit

Definition at line 17 of file TSRIM.cxx.

References ReadEnergyLossFile().

◆ TSRIM() [3/4]

TSRIM::TSRIM ( const TSRIM & )
default

◆ TSRIM() [4/4]

TSRIM::TSRIM ( TSRIM && )
defaultnoexcept

◆ ~TSRIM()

virtual TSRIM::~TSRIM ( )
virtualdefault

Member Function Documentation

◆ GetAdjustedEnergy()

double TSRIM::GetAdjustedEnergy ( double energy,
double thickness,
double stepsize = dx )

Definition at line 221 of file TSRIM.cxx.

References fEnergyLoss, and fsEnergyLoss.

Referenced by GetEnergyLost().

◆ GetEmax()

double TSRIM::GetEmax ( ) const
inline

Definition at line 64 of file TSRIM.h.

References fEmax.

◆ GetEmin()

double TSRIM::GetEmin ( ) const
inline

Definition at line 65 of file TSRIM.h.

References fEmin.

◆ GetEnergy()

double TSRIM::GetEnergy ( double energy,
double dist )

Definition at line 204 of file TSRIM.cxx.

References DRED, DYELLOW, fEmax, fEmin, fsEgetX, fsXgetE, fXmax, fXmin, and RESET_COLOR.

Referenced by GetEnergyChange().

◆ GetEnergyChange()

double TSRIM::GetEnergyChange ( double energy,
double dist )
inline

Definition at line 62 of file TSRIM.h.

References GetEnergy().

◆ GetEnergyLossGraph()

TGraph * TSRIM::GetEnergyLossGraph ( ) const
inline

Definition at line 69 of file TSRIM.h.

References fEnergyLoss.

◆ GetEnergyLost()

double TSRIM::GetEnergyLost ( double energy,
double distance,
double stepsize = dx )
inline

Definition at line 56 of file TSRIM.h.

References GetAdjustedEnergy().

◆ GetEvsXGraph()

TGraph * TSRIM::GetEvsXGraph ( ) const
inline

Definition at line 70 of file TSRIM.h.

References fXgetE.

◆ GetEvsXSpline()

TSpline3 * TSRIM::GetEvsXSpline ( ) const
inline

Definition at line 72 of file TSRIM.h.

References fsXgetE.

◆ GetXmax()

double TSRIM::GetXmax ( ) const
inline

Definition at line 66 of file TSRIM.h.

References fXmax.

◆ GetXmin()

double TSRIM::GetXmin ( ) const
inline

Definition at line 67 of file TSRIM.h.

References fXmin.

◆ GetXvsEGraph()

TGraph * TSRIM::GetXvsEGraph ( ) const
inline

Definition at line 71 of file TSRIM.h.

References fEgetX.

◆ GetXvsESpline()

TSpline3 * TSRIM::GetXvsESpline ( ) const
inline

Definition at line 73 of file TSRIM.h.

References fsEgetX.

◆ operator=() [1/2]

TSRIM & TSRIM::operator= ( const TSRIM & )
default

◆ operator=() [2/2]

TSRIM & TSRIM::operator= ( TSRIM && )
defaultnoexcept

◆ ReadEnergyLossFile()

void TSRIM::ReadEnergyLossFile ( const char * filename,
double emax = -1.0,
double emin = 0.0,
bool printfile = true )

Definition at line 22 of file TSRIM.cxx.

References DirectoryExists(), dx, fdEdX, fE, fEgetX, fEmax, fEmin, fEnergyLoss, fIonEnergy, fsEgetX, fsEnergyLoss, fsXgetE, fX, fXgetE, fXmax, and fXmin.

Referenced by TSRIM().

Member Data Documentation

◆ AdjustedEnergyMap

std::map<std::pair<double, double>, double> TSRIM::AdjustedEnergyMap
private

Definition at line 50 of file TSRIM.h.

◆ dx

const double TSRIM::dx = 1.0
staticprivate

Definition at line 48 of file TSRIM.h.

Referenced by ReadEnergyLossFile().

◆ fdEdX

std::vector<double> TSRIM::fdEdX
private

Definition at line 35 of file TSRIM.h.

Referenced by ReadEnergyLossFile().

◆ fE

std::vector<double> TSRIM::fE
private

Definition at line 42 of file TSRIM.h.

Referenced by ReadEnergyLossFile().

◆ fEgetX

TGraph* TSRIM::fEgetX {nullptr}
private

Definition at line 37 of file TSRIM.h.

Referenced by GetXvsEGraph(), and ReadEnergyLossFile().

◆ fEmax

double TSRIM::fEmax {0.}
private

Definition at line 45 of file TSRIM.h.

Referenced by GetEmax(), GetEnergy(), and ReadEnergyLossFile().

◆ fEmin

double TSRIM::fEmin {0.}
private

Definition at line 44 of file TSRIM.h.

Referenced by GetEmin(), GetEnergy(), and ReadEnergyLossFile().

◆ fEnergyLoss

TGraph* TSRIM::fEnergyLoss {nullptr}
private

Definition at line 36 of file TSRIM.h.

Referenced by GetAdjustedEnergy(), GetEnergyLossGraph(), and ReadEnergyLossFile().

◆ fIonEnergy

std::vector<double> TSRIM::fIonEnergy
private

Definition at line 34 of file TSRIM.h.

Referenced by ReadEnergyLossFile().

◆ fsEgetX

TSpline3* TSRIM::fsEgetX {nullptr}
private

Definition at line 40 of file TSRIM.h.

Referenced by GetEnergy(), GetXvsESpline(), and ReadEnergyLossFile().

◆ fsEnergyLoss

TSpline3* TSRIM::fsEnergyLoss {nullptr}
private

Definition at line 39 of file TSRIM.h.

Referenced by GetAdjustedEnergy(), and ReadEnergyLossFile().

◆ fsXgetE

TSpline3* TSRIM::fsXgetE {nullptr}
private

Definition at line 41 of file TSRIM.h.

Referenced by GetEnergy(), GetEvsXSpline(), and ReadEnergyLossFile().

◆ fX

std::vector<double> TSRIM::fX
private

Definition at line 43 of file TSRIM.h.

Referenced by ReadEnergyLossFile().

◆ fXgetE

TGraph* TSRIM::fXgetE {nullptr}
private

Definition at line 38 of file TSRIM.h.

Referenced by GetEvsXGraph(), and ReadEnergyLossFile().

◆ fXmax

double TSRIM::fXmax {0.}
private

Definition at line 47 of file TSRIM.h.

Referenced by GetEnergy(), GetXmax(), and ReadEnergyLossFile().

◆ fXmin

double TSRIM::fXmin {0.}
private

Definition at line 46 of file TSRIM.h.

Referenced by GetEnergy(), GetXmin(), and ReadEnergyLossFile().