CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch1/src/RecoTracker/DeDx/src/UnbinnedLikelihoodFit.cc File Reference

#include "RecoTracker/DeDx/interface/UnbinnedLikelihoodFit.h"
#include <TMath.h>

Go to the source code of this file.

Functions

void UnbinnedLL (Int_t &, Double_t *, Double_t &val, Double_t *par, Int_t)

Function Documentation

void UnbinnedLL ( Int_t &  ,
Double_t *  ,
Double_t &  val,
Double_t *  par,
Int_t   
)

Definition at line 22 of file UnbinnedLikelihoodFit.cc.

                                                                        {
  // retrieve the data object (it's also the fitter)
  // - sign to have a minimum
  // factor 2 to have the right errors (see for example the pdg)
  val = -2*((dynamic_cast<const UnbinnedLikelihoodFit*>((TVirtualFitter::GetFitter())->GetObjectFit()))->logL(par));
}