This is an example showing how to use KV2Body in order to draw kinematical correlations \(E-\theta\) for different binary reactions, here concerning the inverse kinematics entrance channel \(^{238}\)U+ \(^{12}\)C at 5.9 MeV/ \(A\).
See method KV2Body::GraphELabVsThetaLab().
Compile and run it like this in the kaliveda CLI:
The result should look something like this:
#include "KV2Body.h"
{
auto dg = kk.GraphELabVsThetaLab(4);
dg.LineWidth(2)->Draw("al");
dg->GetHistogram()->GetXaxis()->SetTitle("Lab angle [^{o}]");
dg->GetHistogram()->GetYaxis()->SetTitle("Energy [MeV]");
dg->GetHistogram()->GetYaxis()->SetRangeUser(0, 275);
kk.SetOutgoing("240Pu");
kk.CalculateKinematics();
kk.GraphELabVsThetaLab(4).LineWidth(2).LineStyle(2)->Draw("l");
kk.SetEDiss(10);
kk.CalculateKinematics();
kk.GraphELabVsThetaLab(4).LineWidth(2).LineStyle(7).LineColor(
kRed)->Draw(
"l");
kk.SetEDiss(20);
kk.CalculateKinematics();
kk.GraphELabVsThetaLab(4).LineWidth(2).LineStyle(9).LineColor(
kBlue)->Draw(
"l");
}
Relativistic binary kinematics calculator.
void CalculateKinematics()