Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 3dcfb480 authored by kraus's avatar kraus
Browse files

adding comments to describe the variable names

parent 88d38ccf
No related branches found
No related tags found
1 merge request!70Resolve "ParallelTTracker crashes when using particle matter integration and space charge solver if all particles are in material"
......@@ -41,7 +41,6 @@ typedef struct __align__(16) {
int Binincol;
double DTincol;
double Qincol;
long LastSecincol;
Vector_t Bfincol;
Vector_t Efincol;
} PART;
......@@ -54,18 +53,17 @@ typedef struct {
} PART_DKS;
#else
typedef struct {
int label;
unsigned localID;
Vector_t Rincol;
Vector_t Pincol;
long IDincol;
int Binincol;
double DTincol;
double Qincol;
long LastSecincol;
Vector_t Bfincol;
Vector_t Efincol;
typedef struct { // struct for description of particle in material
int label; // the status of the particle (0 = in material / -1 = move back to bunch
unsigned localID; // not so unique identifier of the particle
Vector_t Rincol; // position
Vector_t Pincol; // momentum
long IDincol; // unique identifier of the particle inherited from the bunch
int Binincol; // bin number
double DTincol; // time step size
double Qincol; // charge
Vector_t Bfincol; // magnetic field
Vector_t Efincol; // electric field
} PART;
#endif
......@@ -127,16 +125,16 @@ private:
void calcStat(double Eng);
double T_m; // own time, maybe larger than in the bunch object
double dT_m; // dt from bunch
gsl_rng *rGen_m;
gsl_rng *rGen_m; // random number generator
std::string material_m;
std::string FN_m;
ElementBase::ElementType collshape_m;
std::string collshapeStr_m;
std::string material_m; // type of material e.g. aluminum
std::string FN_m; // name of element
ElementBase::ElementType collshape_m; // the type of element (DEGRADER, CCOLLIMATOR or FLEXIBLECOLLIMATOR)
std::string collshapeStr_m; // the type of element as string
// material parameters
double Z_m;
double A_m;
double A2_c;
......@@ -148,20 +146,24 @@ private:
double I_m;
double n_m;
// number of particles that enter the material in current step (count for single step)
unsigned bunchToMatStat_m;
// number of particles that are stopped by the material in current step
unsigned stoppedPartStat_m;
// number of particles that leave the material in current step
unsigned rediffusedStat_m;
// number of local particles that are in the material
size_t locPartsInMat_m;
// some statistics
double Eavg_m;
double Emax_m;
double Emin_m;
double Eavg_m; // average kinetic energy
double Emax_m; // maximum kinetic energy
double Emin_m; // minimum kinetic energy
std::vector<PART> locParts_m;
std::vector<PART> locParts_m; // local particles that are in material
std::unique_ptr<LossDataSink> lossDs_m;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment