KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
Macros | Functions | Variables
KVIonRangeTable.cpp File Reference
#include "KVIonRangeTable.h"
#include "KVIonRangeTableMaterial.h"
#include <TPluginManager.h>
#include <TError.h>
#include "TGeoManager.h"
Include dependency graph for KVIonRangeTable.cpp:

Macros

#define CHECK_ION_FIND_MAT_AND_EXEC(method, defval)
 
#define FIND_MAT_AND_EXEC(method, defval)
 

Functions

 if (M) return M -> method
 

Variables

KVIonRangeTableMaterialM = GetMaterial(mat)
 

Macro Definition Documentation

◆ CHECK_ION_FIND_MAT_AND_EXEC

#define CHECK_ION_FIND_MAT_AND_EXEC (   method,
  defval 
)
Value:
if(!CheckIon(Z,A)){ \
if(Z) Warning(#method , "Ion Z=%d out of range table limits", Z); \
return defval; \
} \
void Warning(const char *location, const char *va_(fmt),...)

Definition at line 17 of file KVIonRangeTable.cpp.

◆ FIND_MAT_AND_EXEC

#define FIND_MAT_AND_EXEC (   method,
  defval 
)
Value:
KVIonRangeTableMaterial* M = GetMaterial(mat); \
if(M) return M->method; \
return defval
KVIonRangeTableMaterial * M
Material for use in energy loss & range calculations.

Definition at line 13 of file KVIonRangeTable.cpp.

Function Documentation

◆ if()

if ( M  ) -> method

Variable Documentation

◆ M

KVIonRangeTableMaterial* M = GetMaterial(mat)

Definition at line 23 of file KVIonRangeTable.cpp.