2020-11-16 13:38:39 -05:00
|
|
|
#ifndef TWOSTEPSYSTEM_H
|
|
|
|
#define TWOSTEPSYSTEM_H
|
|
|
|
|
|
|
|
#include "ReactionSystem.h"
|
2021-08-24 11:55:32 -04:00
|
|
|
#include "AngularDistribution.h"
|
2020-11-16 13:38:39 -05:00
|
|
|
|
2020-12-11 16:56:27 -05:00
|
|
|
namespace Mask {
|
|
|
|
|
2020-11-16 13:38:39 -05:00
|
|
|
class TwoStepSystem : public ReactionSystem {
|
|
|
|
public:
|
|
|
|
TwoStepSystem();
|
|
|
|
TwoStepSystem(std::vector<int>& z, std::vector<int>& a);
|
|
|
|
~TwoStepSystem();
|
2021-08-24 11:55:32 -04:00
|
|
|
bool SetNuclei(std::vector<int>& z, std::vector<int>& a) override;
|
|
|
|
void RunSystem() override;
|
2020-11-16 13:38:39 -05:00
|
|
|
|
2021-08-24 11:55:32 -04:00
|
|
|
void SetRandomGenerator(TRandom3* gen) override;
|
|
|
|
|
|
|
|
inline void SetDecay1Distribution(const std::string& filename) { decay1dist.ReadDistributionFile(filename); };
|
|
|
|
|
|
|
|
inline void SetReactionThetaType(int type) { step1.SetEjectileThetaType(type); };
|
|
|
|
inline const Nucleus& GetTarget() const { return step1.GetTarget(); };
|
|
|
|
inline const Nucleus& GetProjectile() const { return step1.GetProjectile(); };
|
|
|
|
inline const Nucleus& GetEjectile() const { return step1.GetEjectile(); };
|
|
|
|
inline const Nucleus& GetResidual() const { return step1.GetResidual(); };
|
2020-11-16 13:38:39 -05:00
|
|
|
inline const Nucleus& GetBreakup1() const { return step2.GetEjectile(); };
|
|
|
|
inline const Nucleus& GetBreakup2() const { return step2.GetResidual(); };
|
|
|
|
|
2021-08-24 11:55:32 -04:00
|
|
|
inline int GetDecay1AngularMomentum() { return decay1dist.GetL(); };
|
|
|
|
inline double GetDecay1BranchingRatio() { return decay1dist.GetBranchingRatio(); };
|
|
|
|
|
2020-11-16 13:38:39 -05:00
|
|
|
private:
|
2021-08-24 11:55:32 -04:00
|
|
|
void LinkTarget() override;
|
|
|
|
void SetSystemEquation() override;
|
2020-11-16 13:38:39 -05:00
|
|
|
|
2021-08-24 11:55:32 -04:00
|
|
|
Reaction step1, step2;
|
|
|
|
|
|
|
|
AngularDistribution decay1dist;
|
2020-11-16 13:38:39 -05:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2020-12-11 16:56:27 -05:00
|
|
|
};
|
|
|
|
|
2020-11-16 13:38:39 -05:00
|
|
|
#endif
|