57 : _zmass(defs.get_float(
"zmass")), _fourvec_constrainer_args(defs) {}
85 : _args(
args), _constrainer(
args.fourvec_constrainer_args()) {
138 void do_import(
const Lepjets_Event&
ev, Fourvec_Event& fe)
157 fe.set_kt_error(
ev.kt_res().sigma(kt.x()),
ev.kt_res().sigma(kt.y()), 0);
158 fe.set_x_p(
ev.met());
177 void do_export(
const Fourvec_Event& fe, Lepjets_Event&
ev)
189 ev.lep(0).p() =
fe.obj(0).p;
190 ev.lep(1).p() =
fe.obj(1).p;
193 ev.jet(
j).p() =
fe.obj(
k++).p;
const Constrained_Z_Args & _args
Define an abstract interface for getting parameter settings.
Represent a lepton in an instance of Lepjets_Event class. This class hold the following information: ...
Represent an event for kinematic fitting as a collection of four-momenta. Each object is represented ...
CLHEP::HepVector Column_Vector
Do a constrained kinematic fitting for a event.
Do a constrained kinematic fit of a event.
Fourvec_Constrainer _constrainer
Represent a simple event consisting of lepton(s) and jet(s).
Represent a simple event consisting of lepton(s) and jet(s). An instance of this class holds a list o...
CLHEP::HepLorentzVector Fourvec
Typedef for a HepLorentzVector.
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.
Fourvec_Constrainer_Args _fourvec_constrainer_args
Constrained_Z(const Constrained_Z_Args &args)
Constructor, create an instance of the Constrained_Z object from the argument object.
Hold on to parameters for the Constrained_Z class.
double constrain(Fourvec_Event &ev, double &m, double &sigm, Column_Vector &pullx, Column_Vector &pully)
Do a constrained fit for event ev. Returns the requested mass and its uncertainty in m and sigm...
Define an interface for getting parameter settings.
std::ostream & operator<<(std::ostream &s, const Constraint_Intermed &ci)
Output stream operator, print the content of this Constraint_Intermed to an output stream...
const Fourvec_Constrainer_Args & fourvec_constrainer_args() const
Represent a single object in a Fourvec_Event, this is just a dumb data container. Each object in a Fo...
Constrained_Z_Args(const Defaults &defs)
Constructor, initialize from a Defaults object.
void add_constraint(std::string s)
Specify an additional constraint s for the problem. The format for s is described in the class descri...
Hold on to parameters for the Fourvec_Constrainer class.
Represent an event for kinematic fitting as a collection of four-momenta.