Do a constrained kinematic fitting for a event. More...
#include <Constrained_Z.h>
Public Member Functions | |
double | constrain (Lepjets_Event &ev, Column_Vector &pull) |
Do a constrained fit of event. Returns the pull quantities in pull. Returns the , this will be negative if the fit failed to converge. | |
Constrained_Z (const Constrained_Z_Args &args) | |
Constructor, create an instance of the Constrained_Z object from the argument object. | |
Private Attributes | |
const Constrained_Z_Args & | _args |
Fourvec_Constrainer | _constrainer |
Friends | |
std::ostream & | operator<< (std::ostream &s, const Constrained_Z &cz) |
Output stream operator, print the content of this Constrained_Z to an output stream. |
Do a constrained kinematic fitting for a event.
Definition at line 111 of file Constrained_Z.h.
hitfit::Constrained_Z::Constrained_Z | ( | const Constrained_Z_Args & | args | ) |
Constructor, create an instance of the Constrained_Z object from the argument object.
args | Argument for this instance of Constrained_Z object. |
Definition at line 91 of file Constrained_Z.cc.
References _args, _constrainer, hitfit::Fourvec_Constrainer::add_constraint(), hitfit::lepton_label, and hitfit::Constrained_Z_Args::zmass().
: _args (args), _constrainer (args.fourvec_constrainer_args()) { char buf[256]; sprintf (buf, "(%d) = %f", lepton_label, _args.zmass()); _constrainer.add_constraint (buf); }
double hitfit::Constrained_Z::constrain | ( | Lepjets_Event & | ev, |
Column_Vector & | pull | ||
) |
Do a constrained fit of event. Returns the pull quantities in pull. Returns the , this will be negative if the fit failed to converge.
ev | The event to be fitted (input), and the event after fitting (output). |
pull | Pull quantities for the well-measured variables. |
Definition at line 226 of file Constrained_Z.cc.
References _constrainer, hitfit::Fourvec_Constrainer::constrain(), and m.
{ Fourvec_Event fe; do_import (ev, fe); Column_Vector pully; double m, sigm; double chisq = _constrainer.constrain (fe, m, sigm, pull, pully); do_export (fe, ev); return chisq; }
std::ostream& operator<< | ( | std::ostream & | s, |
const Constrained_Z & | cz | ||
) | [friend] |
Output stream operator, print the content of this Constrained_Z to an output stream.
s | The output stream to which to wrire. |
cz | The instance of Constrained_Z to be printed. |
Definition at line 262 of file Constrained_Z.cc.
{ return s << cz._constrainer; }
const Constrained_Z_Args& hitfit::Constrained_Z::_args [private] |
Parameter settings for the constrainer.
Definition at line 157 of file Constrained_Z.h.
Referenced by Constrained_Z().
The guy that actually does the work.
Definition at line 163 of file Constrained_Z.h.
Referenced by constrain(), Constrained_Z(), and hitfit::operator<<().