Concrete realization of the Constraint_Calculator class. Evaluate constraints at the point described by x and y (well-measured and poorly-measured variables, respectively). The results should be stored in F. Bx and By should be set to the gradients of F with respect to x and y, respectively. More...
Public Member Functions | |
bool | calculate_constraints (Row_Vector &F, Matrix &Bx, Matrix &By) const |
Calculate the constraint functions and gradients. More... | |
virtual bool | eval (const Column_Vector &x, const Column_Vector &y, Row_Vector &F, Matrix &Bx, Matrix &By) override |
Evaluate constraints at the point described by x and y (well-measured and poorly-measured variables, respectively). The results should be stored in F. Bx and By should be set to the gradients of F with respect to x and y, respectively. More... | |
Fourvec_Constraint_Calculator (Fourvec_Event &ev, const vector< Constraint > &constraints, const Fourvec_Constrainer_Args &args) | |
Constructor. More... | |
virtual | ~Fourvec_Constraint_Calculator () |
Public Member Functions inherited from hitfit::Constraint_Calculator | |
Constraint_Calculator (int nconstraints) | |
int | nconstraints () const |
virtual | ~Constraint_Calculator () |
Private Attributes | |
const Fourvec_Constrainer_Args & | _args |
const vector< Constraint > & | _constraints |
Fourvec_Event & | _ev |
Pair_Table | _pt |
Concrete realization of the Constraint_Calculator class. Evaluate constraints at the point described by x and y (well-measured and poorly-measured variables, respectively). The results should be stored in F. Bx and By should be set to the gradients of F with respect to x and y, respectively.
x | Column_Vector of well-measured variables. |
y | Column_Vector of poorly-measured variables. |
F | Row_Vector contains the results of the constraint evaluation. |
Bx | Gradients of F with respect to x |
By | Gradients of F with respect to y |
Definition at line 1375 of file Fourvec_Constrainer.cc.
hitfit::Fourvec_Constraint_Calculator::Fourvec_Constraint_Calculator | ( | Fourvec_Event & | ev, |
const vector< Constraint > & | constraints, | ||
const Fourvec_Constrainer_Args & | args | ||
) |
Constructor.
ev | The event we are fitting. |
constraints | The list of constraints. |
args | The parameter settings for this instance. |
Definition at line 1433 of file Fourvec_Constrainer.cc.
|
inlinevirtual |
Definition at line 1386 of file Fourvec_Constrainer.cc.
bool hitfit::Fourvec_Constraint_Calculator::calculate_constraints | ( | Row_Vector & | F, |
Matrix & | Bx, | ||
Matrix & | By | ||
) | const |
Calculate the constraint functions and gradients.
F | Vector of constraint values. |
Bx | The gradient of well-measured variables. |
By | The gradient of poorly-measured variables. |
Definition at line 1471 of file Fourvec_Constrainer.cc.
References hitfit::eta_offs, F(), relval_steps::k, hitfit::FE_Obj::muon_p, hitfit::FE_Obj::p, and hitfit::p_offs.
Referenced by eval().
|
overridevirtual |
Evaluate constraints at the point described by x and y (well-measured and poorly-measured variables, respectively). The results should be stored in F. Bx and By should be set to the gradients of F with respect to x and y, respectively.
x | Column_Vector of well-measured variables. |
y | Column_Vector of poorly-measured variables. |
F | Row_Vector contains the results of the constraint evaluation. |
Bx | Gradients of F with respect to x |
By | Gradients of F with respect to y |
Implements hitfit::Constraint_Calculator.
Definition at line 1567 of file Fourvec_Constrainer.cc.
References _args, _ev, calculate_constraints(), hitfit::eta_offs, hitfit::Fourvec_Event::has_neutrino(), hitfit::Fourvec_Constrainer_Args::ignore_met(), hitfit::Fourvec_Event::nobjs(), hitfit::p_offs, and hitfit::Fourvec_Constrainer_Args::use_e().
|
private |
Definition at line 1416 of file Fourvec_Constrainer.cc.
Referenced by Vispa.Main.Application.Application::_readCommandLineAttributes(), and eval().
|
private |
Definition at line 1413 of file Fourvec_Constrainer.cc.
|
private |
Definition at line 1410 of file Fourvec_Constrainer.cc.
Referenced by eval().
|
private |
Definition at line 1419 of file Fourvec_Constrainer.cc.