2020-11-16 13:38:39 -05:00
|
|
|
#include "ReactionSystem.h"
|
|
|
|
#include "KinematicsExceptions.h"
|
2021-06-08 09:58:24 -04:00
|
|
|
#include "LegendrePoly.h"
|
2020-12-11 16:56:27 -05:00
|
|
|
|
|
|
|
namespace Mask {
|
2020-11-16 13:38:39 -05:00
|
|
|
|
|
|
|
ReactionSystem::ReactionSystem() :
|
2021-08-23 10:00:36 -04:00
|
|
|
m_beamDist(0,0), m_theta1Range(0,0), m_phi1Range(0,0), m_exDist(0,0), generator(nullptr), target_set_flag(false), gen_set_flag(false), rxnLayer(0), m_sys_equation("")
|
2020-11-16 13:38:39 -05:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2021-08-24 11:55:32 -04:00
|
|
|
ReactionSystem::~ReactionSystem() {}
|
2020-11-16 13:38:39 -05:00
|
|
|
|
2021-08-23 10:00:36 -04:00
|
|
|
void ReactionSystem::SetRandomGenerator(TRandom3* gen) {
|
|
|
|
generator = gen;
|
|
|
|
gen_set_flag = true;
|
|
|
|
}
|
|
|
|
|
2020-11-16 13:38:39 -05:00
|
|
|
void ReactionSystem::AddTargetLayer(std::vector<int>& zt, std::vector<int>& at, std::vector<int>& stoich, double thickness) {
|
|
|
|
target.AddLayer(zt, at, stoich, thickness);
|
|
|
|
}
|
|
|
|
|
2020-12-11 16:56:27 -05:00
|
|
|
};
|