CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes | Friends
hitfit::Constrained_Top Class Reference

Do a constrained kinematic fitting for a $t\bar{t}\to\ell + \rm{jets}$ event. More...

#include <Constrained_Top.h>

Public Member Functions

double constrain (Lepjets_Event &ev, double &mt, double &sigmt, Column_Vector &pullx, Column_Vector &pully)
 Do a constrained fit of $t\bar{t}\to\ell + \rm{jets}$ events. Returns the top mass and its error in mt and sigmt, and the pull quantities in pullx and pully. Returns the $\chi^{2}$, this will be negative if the fit failed to converge. More...
 
 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 constraints. More...
 

Private Attributes

const Constrained_Top_Args _args
 
Fourvec_Constrainer _constrainer
 

Friends

std::ostream & operator<< (std::ostream &s, const Constrained_Top &ct)
 Output stream operator, print the content of this Constrained_Top object to an output stream. More...
 

Detailed Description

Do a constrained kinematic fitting for a $t\bar{t}\to\ell + \rm{jets}$ event.

Definition at line 128 of file Constrained_Top.h.

Constructor & Destructor Documentation

hitfit::Constrained_Top::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 constraints.

Parameters
argsArgument for this instance of Constrained_Top object.
lepw_massThe mass to which the leptonic W should be constrained. If this parameter is set to 0, the constraint is skied.
hadw_massThe mass to which the hadronic W should be constrained. If this parameter is set to 0, the constraint is skied.
top_massThe mass to which the top quarks should be constrained. If this parameter is set to 0, the constraints is skied.

Definition at line 106 of file Constrained_Top.cc.

Member Function Documentation

double hitfit::Constrained_Top::constrain ( Lepjets_Event ev,
double &  mt,
double &  sigmt,
Column_Vector pullx,
Column_Vector pully 
)

Do a constrained fit of $t\bar{t}\to\ell + \rm{jets}$ events. Returns the top mass and its error in mt and sigmt, and the pull quantities in pullx and pully. Returns the $\chi^{2}$, this will be negative if the fit failed to converge.

Parameters
evThe event to be fitted (input), and the event after fitting (output).
mtThe fitted top mass.
sigmtThe uncertainty on the fitted top mass.
pullxPull quantities for the well-measured variables.
pullyPull quantities for the poorly-measured variables.
Input:
Output:
  • Lepjets_Event ev.
  • double mt.
  • double sigmt.
  • Column_Vector pullx.
  • Column_Vector pully.
Return:
The $\chi^{2}$ of the fit. Return a negative value if the fit didn't converge.

Definition at line 290 of file Constrained_Top.cc.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const Constrained_Top ct 
)
friend

Output stream operator, print the content of this Constrained_Top object to an output stream.

Parameters
sThe output stream to which to write.
ctThe instance of Constrained_Top to be printed.

Definition at line 333 of file Constrained_Top.cc.

Member Data Documentation

const Constrained_Top_Args hitfit::Constrained_Top::_args
private

Parameter settings for the $\chi^{2}$ constrainer.

Definition at line 208 of file Constrained_Top.h.

Fourvec_Constrainer hitfit::Constrained_Top::_constrainer
private

The guy that actually does the work.

Definition at line 214 of file Constrained_Top.h.