#include <poly2d_base.h>
|
static unsigned | Count () |
|
static int | GetMaxPow () |
|
static void | IncNPwr (const unsigned N) |
|
static void | PrintTab (std::ostream &out=std::cout, const std::streamsize prec=5) |
|
static void | SetPoint (const double r, const double z) |
|
Definition at line 45 of file poly2d_base.h.
◆ poly2d_base() [1/2]
magfieldparam::poly2d_base::poly2d_base |
( |
| ) |
|
|
inline |
◆ poly2d_base() [2/2]
magfieldparam::poly2d_base::poly2d_base |
( |
const poly2d_base & |
S | ) |
|
|
inline |
◆ ~poly2d_base()
poly2d_base::~poly2d_base |
( |
| ) |
|
|
virtual |
◆ AdjustTab()
void poly2d_base::AdjustTab |
( |
| ) |
|
|
staticprotected |
◆ Collect()
void poly2d_base::Collect |
( |
| ) |
|
Definition at line 171 of file poly2d_base.cc.
175 unsigned j1, j2, rpow, zpow, noff = 0, jend =
data.size();
177 std::vector<bool> mask(jend,
false);
180 for (j1 = 0; j1 < jend; ++j1) {
184 rpow =
data[j1].np[0];
185 zpow =
data[j1].np[1];
186 for (j2 = j1 + 1; j2 < jend; ++j2) {
189 if ((rpow ==
data[j2].
np[0]) && (zpow ==
data[j2].
np[1])) {
197 if ((rpow = rpow + zpow) >
max_pwr)
204 std::vector<poly2d_term> newdata;
205 newdata.reserve(jend - noff);
206 for (j1 = 0; j1 < jend; ++j1) {
208 newdata.push_back(
data[j1]);
References gen::C, data, max_pwr, MIN_COEFF, and np.
Referenced by Compress(), magfieldparam::rz_harm_poly::LadderDwn(), and magfieldparam::rz_harm_poly::LadderUp().
◆ Compress()
void magfieldparam::poly2d_base::Compress |
( |
| ) |
|
|
inline |
◆ Count()
static unsigned magfieldparam::poly2d_base::Count |
( |
| ) |
|
|
inlinestatic |
◆ DecPow()
void poly2d_base::DecPow |
( |
int |
nvar | ) |
|
◆ Diff()
void poly2d_base::Diff |
( |
int |
nvar | ) |
|
◆ Eval()
double poly2d_base::Eval |
( |
| ) |
|
◆ FillTable()
void poly2d_base::FillTable |
( |
const double |
r, |
|
|
const double |
z |
|
) |
| |
|
staticprotected |
◆ GetMaxPow()
int poly2d_base::GetMaxPow |
( |
| ) |
|
|
static |
◆ GetVal() [1/2]
double magfieldparam::poly2d_base::GetVal |
( |
| ) |
|
|
inline |
◆ GetVal() [2/2]
double magfieldparam::poly2d_base::GetVal |
( |
const double |
r, |
|
|
const double |
z |
|
) |
| |
|
inline |
◆ IncNPwr()
static void magfieldparam::poly2d_base::IncNPwr |
( |
const unsigned |
N | ) |
|
|
inlinestatic |
◆ IncPow()
void poly2d_base::IncPow |
( |
int |
nvar | ) |
|
◆ Int()
void poly2d_base::Int |
( |
int |
nvar | ) |
|
◆ IsOn()
bool magfieldparam::poly2d_base::IsOn |
( |
| ) |
|
|
inline |
◆ IsRZSet()
bool magfieldparam::poly2d_base::IsRZSet |
( |
| ) |
|
|
inline |
◆ Print()
void poly2d_base::Print |
( |
std::ostream & |
out = std::cout , |
|
|
const std::streamsize |
prec = 5 |
|
) |
| |
◆ PrintTab()
void poly2d_base::PrintTab |
( |
std::ostream & |
out = std::cout , |
|
|
const std::streamsize |
prec = 5 |
|
) |
| |
|
static |
Definition at line 127 of file poly2d_base.cc.
128 out <<
"poly2d_base table size NTab = " <<
NTab <<
"\tmax. power NPwr = " <<
NPwr << std::endl;
131 std::streamsize old_prec =
out.precision(), wdt = prec + 7;
133 out <<
"Table content:" << std::endl;
135 for (jr = 0; jr <=
NPwr; ++jr) {
136 for (jz = 0; jz <= (
NPwr - jr); ++jz) {
137 out << std::setw(wdt) << std::left <<
rz_pow[jr][jz];
139 out <<
"|" << std::endl;
141 out.precision(old_prec);
143 out <<
"\tTable size is not adjusted." << std::endl;
146 out <<
"\tTable is not allocated." << std::endl;
References NPwr, NTab, MillePedeFileConverter_cfg::out, and rz_pow.
◆ Scale()
void poly2d_base::Scale |
( |
const double |
C | ) |
|
◆ SetPoint()
void poly2d_base::SetPoint |
( |
const double |
r, |
|
|
const double |
z |
|
) |
| |
|
static |
◆ SetTabSize()
void poly2d_base::SetTabSize |
( |
const unsigned |
N | ) |
|
|
staticprotected |
◆ data
std::vector<poly2d_term> magfieldparam::poly2d_base::data |
|
protected |
Definition at line 69 of file poly2d_base.h.
Referenced by data_sources.node::__str__(), data_sources.json_list::as_dicts(), data_sources.json_list::as_table(), Collect(), DecPow(), Diff(), Eval(), data_sources.json_list::get_members(), IncPow(), Int(), IsOn(), magfieldparam::rz_harm_poly::LadderDwn(), magfieldparam::rz_harm_poly::LadderUp(), data_sources.json_list::last(), poly2d_base(), Print(), magfieldparam::rz_harm_poly::rz_harm_poly(), Scale(), and cuy.FindIssue::startElement().
◆ max_pwr
unsigned magfieldparam::poly2d_base::max_pwr |
|
protected |
◆ MIN_COEFF
const double poly2d_base::MIN_COEFF = DBL_EPSILON |
|
staticprotected |
◆ NPwr
unsigned poly2d_base::NPwr = 0 |
|
staticprotected |
Definition at line 55 of file poly2d_base.h.
Referenced by AdjustTab(), DecPow(), Diff(), FillTable(), IncNPwr(), IncPow(), Int(), PrintTab(), magfieldparam::rz_harm_poly::rz_harm_poly(), SetPoint(), and ~poly2d_base().
◆ NTab
unsigned poly2d_base::NTab = 0 |
|
staticprotected |
◆ poly2d_base_set
◆ rval
double poly2d_base::rval = 0. |
|
staticprotected |
◆ rz_pow
double ** poly2d_base::rz_pow = nullptr |
|
staticprotected |
◆ rz_set
bool poly2d_base::rz_set = false |
|
staticprotected |
◆ zval
double poly2d_base::zval = 0. |
|
staticprotected |
double S(const TLorentzVector &, const TLorentzVector &)