2018-04-03 00:49:44 +02:00
|
|
|
//
|
|
|
|
// Parameters.hh
|
|
|
|
// medtech
|
|
|
|
//
|
|
|
|
// Created by Baranyai David on 2018. 04. 03..
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef Parameters_hh
|
|
|
|
#define Parameters_hh
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
class Parameters
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
/* Here will be the instance stored. */
|
|
|
|
static Parameters* instance;
|
|
|
|
|
|
|
|
/* Private constructor to prevent instancing. */
|
|
|
|
Parameters();
|
|
|
|
|
|
|
|
int ParticleEnergy;
|
2018-04-03 01:32:56 +02:00
|
|
|
int hdegree;
|
|
|
|
int vdegree;
|
2018-04-03 00:49:44 +02:00
|
|
|
|
2018-04-03 10:40:26 +02:00
|
|
|
double box_size;
|
|
|
|
|
2018-04-06 21:21:48 +02:00
|
|
|
double tube_size;
|
|
|
|
double cone_size;
|
|
|
|
double radius;
|
|
|
|
|
2018-04-03 00:49:44 +02:00
|
|
|
public:
|
|
|
|
/* Static access method. */
|
|
|
|
static Parameters* getInstance();
|
|
|
|
|
2018-04-03 01:32:56 +02:00
|
|
|
double GetParticleEnergy();
|
|
|
|
double GetHDegree();
|
|
|
|
double GetVDegree();
|
|
|
|
|
|
|
|
double GetHShift();
|
|
|
|
double GetVShift();
|
2018-04-03 00:49:44 +02:00
|
|
|
|
|
|
|
void SetParticleEnergy(int);
|
2018-04-03 01:32:56 +02:00
|
|
|
void SetHDegree(int);
|
|
|
|
void SetVDegree(int);
|
2018-04-03 10:40:26 +02:00
|
|
|
|
|
|
|
void SetBoxSize(double);
|
|
|
|
double GetBoxSize();
|
2018-04-06 21:21:48 +02:00
|
|
|
|
|
|
|
void SetRadius(double);
|
|
|
|
double GetRadius();
|
|
|
|
|
|
|
|
void SetConeSize(double);
|
|
|
|
double GetConeSize();
|
|
|
|
|
|
|
|
void SetTubeSize(double);
|
|
|
|
double GetTubeSize();
|
2018-04-03 00:49:44 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* Parameters_hh */
|