TkN 2.3
Toolkit for Nuclei
Loading...
Searching...
No Matches
draw_FY.C
1#include "Rtypes.h"
2#include "Riostream.h"
3#include "tkmanager.h"
4#include "tknuclear_chart.h"
5
6using namespace tkn;
7
8void draw_FY239Pu()
9{
10
12 auto *nn = new tknuclear_chart("^{239}Pu fission yield (in %)", tknuclear_chart::kAll, 1e-6, true);
13 for (const auto &nuc : dtm.get_nuclei()) {
14 double yy = nuc->get_fission_yield("239Pu", false);
15 if (yy > 0) nn->set_value(nuc->get_z(), nuc->get_n(), yy * 100);
16 }
17
18 nn->draw();
19 nn->save_as("draw_FY239Pu.png");
20}
21
22void draw_FY252Cf()
23{
24
26 auto *nn = new tknuclear_chart("^{252}Cf fission yield (in %)", tknuclear_chart::kAll, 1e-6, true);
27 for (const auto &nuc : dtm.get_nuclei()) {
28 double yy = nuc->get_fission_yield("252Cf", false);
29 if (yy > 0) nn->set_value(nuc->get_z(), nuc->get_n(), yy * 100);
30 }
31 nn->draw();
32 nn->save_as("draw_FY252Cf.png");
33}
34
35void draw_cumulative_238U()
36{
37
39 auto *nn = new tknuclear_chart("^{238}U cumulative fission yield (in %)", tknuclear_chart::kAll, 1e-6, true);
40 for (const auto &nuc : dtm.get_nuclei()) {
41 double yy = nuc->get_fission_yield("238U", true);
42 if (yy > 0) nn->set_value(nuc->get_z(), nuc->get_n(), yy * 100);
43 }
44 nn->draw();
45 nn->save_as("draw_cFY238U.png");
46}
Manages the database loading and provides access to the physics properties.
Definition tkmanager.h:74
vector< shared_ptr< tknucleus > > get_nuclei(std::function< bool(shared_ptr< tknucleus >)>const &_selection)
return a vector containing all the known nuclei filtered by the lambda function
nuclear chart plot with ROOT
Definition tklog.cpp:39