CMS 3D CMS Logo

Classes | Enumerations | Functions
SiPixelLAHarvestMCS Namespace Reference

Classes

class  FitFPixMuH
 
struct  FPixMuH
 

Enumerations

enum  fitStatus { kFitNotPerformed = -2, kNoFitResult = -1, kFitConverged = 0, kFitFailed = 1 }
 

Functions

void fcn_func (Int_t &npar, Double_t *deriv, Double_t &f, Double_t *par, Int_t flag)
 
Double_t MCSFitFunction (Double_t *x, Double_t *par)
 

Enumeration Type Documentation

◆ fitStatus

Function Documentation

◆ fcn_func()

void SiPixelLAHarvestMCS::fcn_func ( Int_t &  npar,
Double_t *  deriv,
Double_t &  f,
Double_t *  par,
Int_t  flag 
)

Definition at line 139 of file SiPixelLorentzAnglePCLHarvesterMCS.cc.

References f.

139  {
140  f = ((dynamic_cast<FitFPixMuH*>((TVirtualFitter::GetFitter())->GetObjectFit()))->calcChi2(par[0]));
141  }
double f[11][100]

◆ MCSFitFunction()

Double_t SiPixelLAHarvestMCS::MCSFitFunction ( Double_t *  x,
Double_t *  par 
)

Definition at line 55 of file SiPixelLorentzAnglePCLHarvesterMCS.cc.

References mathSSE::sqrt(), and x.

Referenced by SiPixelLorentzAnglePCLHarvesterMCS::dqmEndJob().

55  {
56  Double_t arg;
57 
58  if (x[0] < par[3]) {
59  arg = par[1] * par[1] + par[2] * par[2] * (x[0] - par[3]) * (x[0] - par[3]);
60  } else {
61  arg = par[1] * par[1] + par[4] * par[4] * (x[0] - par[3]) * (x[0] - par[3]);
62  }
63  Double_t fitval = par[0] + sqrt(arg);
64  return fitval;
65  }
A arg
Definition: Factorize.h:31
T sqrt(T t)
Definition: SSEVec.h:23
float x