ATLAS Offline Software
Classes | Namespaces | Functions
Chi2LJets.h File Reference
#include "TopEventSelectionTools/EventSelectorBase.h"
#include "TLorentzVector.h"
Include dependency graph for Chi2LJets.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  top::FitInfo
 Hold the information that is required for the chi^2 minimisation. More...
 
class  top::Chi2LJets
 Not complete. More...
 

Namespaces

 top
 TopConfig A simple configuration that is NOT a singleton.
 

Functions

void fcn (int &npar, double *deriv, double &result, double par[], int flag)
 this is where we write out chi2 More...
 

Function Documentation

◆ fcn()

void fcn ( int &  npar,
double *  deriv,
double &  result,
double  par[],
int  flag 
)

this is where we write out chi2

Definition at line 183 of file Chi2LJets.cxx.

183  {
184  const top::FitInfo* params = (top::FitInfo*) gMinuit->GetObjectFit();
185 
186  double mytopmass = par[0];
187  double pz = par[1];
188 
189  TLorentzVector neutrino(params->neutrino_px, params->neutrino_py, pz, sqrt(
190  params->neutrino_px* params->neutrino_px + params->neutrino_py* params->neutrino_py +
191  pz* pz));
192  double w_lep_term = ((params->lepton + neutrino).M() - top::Chi2LJets::input_wmass) / top::Chi2LJets::input_wsigma;
193  double t_lep_term = ((params->lepton + neutrino + params->leptonic_b).M() - mytopmass) /
195 
196  double w_term = (params->hadronic_w_mass - top::Chi2LJets::input_wmass) / top::Chi2LJets::input_wsigma;
197  double t_term = (params->hadronic_t_mass - mytopmass) / top::Chi2LJets::input_topsigma;
198 
199  result = w_lep_term * w_lep_term +
200  t_lep_term * t_lep_term +
201  w_term * w_term +
202  t_term * t_term;
203 
204  // cout << "SJH fcn hadw " << fit->hadronicW << " " << TopWidth::input_wmass << " " << TopWidth::input_wsigma <<
205  // endl;
206  // cout << "SJH fcn hadt " << fit->hadronicTop << " " << mytopmass << " " << TopWidth::input_topsigma << endl;
207 }
get_generator_info.result
result
Definition: get_generator_info.py:21
top::Chi2LJets::input_wmass
static const double input_wmass
The W mass that we're using as the baseline - used in chi2 function.
Definition: Chi2LJets.h:64
Amg::pz
@ pz
Definition: GeoPrimitives.h:40
createCoolChannelIdFile.par
par
Definition: createCoolChannelIdFile.py:29
top::Chi2LJets::input_wsigma
static const double input_wsigma
The W resolution that we're using as the baseline - used in chi2 function.
Definition: Chi2LJets.h:70
top::FitInfo
Hold the information that is required for the chi^2 minimisation.
Definition: Chi2LJets.h:20
PowhegControl_ttFCNC_NLO.params
params
Definition: PowhegControl_ttFCNC_NLO.py:226
top::Chi2LJets::input_topsigma
static const double input_topsigma
The top resolution that we're using as the baseline - used in chi2 function.
Definition: Chi2LJets.h:67