ATLAS Offline Software
Functions
CscFit.cxx File Reference
#include "CscFit.h"
#include <cmath>
#include "AthenaKernel/getMessageSvc.h"
#include "GaudiKernel/MsgStream.h"
#include "TF1.h"
#include "TH1F.h"
Include dependency graph for CscFit.cxx:

Go to the source code of this file.

Functions

Double_t f1gauss (const Double_t *x, const Double_t *par)
 one Gaussing fitting method More...
 
Double_t f2gauss (const Double_t *x, const Double_t *par)
 two-Gaussian fitting method More...
 

Function Documentation

◆ f1gauss()

Double_t f1gauss ( const Double_t *  x,
const Double_t *  par 
)

one Gaussing fitting method

Definition at line 349 of file CscFit.cxx.

349  {
350  Double_t arg = 0;
351  arg = (x[0] - par[1]) / par[2];
352  Double_t fitval = par[3] + par[0] * std::exp(-0.5 * arg * arg);
353  return fitval;
354 }

◆ f2gauss()

Double_t f2gauss ( const Double_t *  x,
const Double_t *  par 
)

two-Gaussian fitting method

Definition at line 357 of file CscFit.cxx.

357  {
358  Double_t arg1 = 0;
359  Double_t arg2 = 0;
360  if (par[2] != 0) arg1 = (x[0] - par[1]) / par[2];
361  if (par[5] != 0) arg2 = (x[0] - par[4]) / par[5];
362  Double_t fitval = par[0] * std::exp(-0.5 * arg1 * arg1) + par[3] * std::exp(-0.5 * arg2 * arg2) + par[6];
363  return fitval;
364 }
drawFromPickle.exp
exp
Definition: drawFromPickle.py:36
x
#define x
create_dcsc_inputs_sqlite.arg
list arg
Definition: create_dcsc_inputs_sqlite.py:48
createCoolChannelIdFile.par
par
Definition: createCoolChannelIdFile.py:29