CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
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.

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