65 : _bmass (defs.get_float (
"bmass")),
66 _fourvec_constrainer_args (defs),
67 _equal_side(defs.get_bool(
"equal_side"))
123 _constrainer (args.fourvec_constrainer_args())
137 sprintf (buf,
"(%d %d %d) = (%d %d %d)",
144 sprintf (buf,
"(%d %d %d) = %f",
208 void do_import (
const Lepjets_Event&
ev,
double bmass, Fourvec_Event& fe)
223 bool saw_lepb =
false;
224 bool saw_hadb =
false;
233 else if (ev.jet(
j).type() ==
hadb_label && !saw_hadb) {
237 fe.add (make_fe_obj (ev.jet(
j), mass, ev.jet(
j).type()));
240 fe.set_nu_p (ev.met());
242 fe.set_kt_error (ev.kt_res().sigma (kt.x()),
243 ev.kt_res().sigma (kt.y()),
264 void do_export (
const Fourvec_Event& fe, Lepjets_Event& ev)
276 ev.lep(0).p() = fe.obj(0).p;
280 ev.jet(
j).p() = fe.obj(
k++).p;
Hold on to parameters for the Constrained_Top class.
Define an abstract interface for getting parameter settings.
Constrained_Top(const Constrained_Top_Args &args, double lepw_mass, double hadw_mass, double top_mass)
Constructor, create an instance of the Constrained_Top object from the arguments object and the mass ...
Represent a lepton in an instance of Lepjets_Event class. This class hold the following information: ...
const Fourvec_Constrainer_Args & fourvec_constrainer_args() const
Represent an event for kinematic fitting as a collection of four-momenta. Each object is represented ...
Do a constrained kinematic fitting for a event.
bool inverse() const
Return the setting of the inverse flag.
CLHEP::HepVector Column_Vector
Fourvec_Constrainer _constrainer
double eta_sigma() const
Return the uncertainty in pseudorapidity .
const Vector_Resolution & res() const
Return a constant reference to the resolution.
double phi_sigma() const
Return the uncertainty in azimuthal angle .
double p_sigma() const
Return the uncertainty in momentum or ( or if the lepton is a tracking object).
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, double &mt, double &sigmt, Column_Vector &pullx, Column_Vector &pully)
Do a constrained fit of events. Returns the top mass and its error in mt and sigmt, and the pull quantities in pullx and pully. Returns the , this will be negative if the fit failed to converge.
const Resolution & p_res() const
Return a constant reference to the momentum resolution.
Constrained_Top_Args(const Defaults &defs)
Do a constrained kinematic fit of a event.
Fourvec & p()
Return a reference to the four-momentum.
Fourvec_Constrainer_Args _fourvec_constrainer_args
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...
const Constrained_Top_Args _args
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...
void mass_constraint(std::string s)
Specify a combination of objects that will be returned by the constrain() method as mass...
Represent a single object in a Fourvec_Event, this is just a dumb data container. Each object in a Fo...
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.