ATLAS Offline Software
Functions
RtCalibrationIntegration.cxx File Reference
#include "MdtCalibRt/RtCalibrationIntegration.h"
#include <algorithm>
#include <fstream>
#include <iostream>
#include "AthenaKernel/getMessageSvc.h"
#include "GaudiKernel/MsgStream.h"
#include "MdtCalibData/RtFromPoints.h"
#include "MdtCalibRt/RtParabolicExtrapolation.h"
#include "MdtCalibT0/T0MTHistos.h"
#include "TF1.h"
#include "TList.h"

Go to the source code of this file.

Functions

Double_t slope_function_C (Double_t *x, Double_t *par)
 
void update_parameter_on_mttmax (TH1 *h, TF1 *f, const float &b, const float &T, const T0MTSettingsTMax &tmax_settings)
 

Function Documentation

◆ slope_function_C()

Double_t slope_function_C ( Double_t *  x,
Double_t *  par 
)
inline

Definition at line 21 of file RtCalibrationIntegration.cxx.

21  {
22  Double_t &t(x[0]);
23  Double_t &a(par[0]), &b(par[1]), &t_0(par[2]), &back(par[3]);
24  return back + std::exp(a + b * (t - t_0));
25 }

◆ update_parameter_on_mttmax()

void update_parameter_on_mttmax ( TH1 h,
TF1 *  f,
const float &  b,
const float &  T,
const T0MTSettingsTMax tmax_settings 
)
inline

Definition at line 27 of file RtCalibrationIntegration.cxx.

27  {
28  Double_t rmin, rmax;
29  f->GetRange(rmin, rmax);
30  std::unique_ptr<TF1> slope_function =
31  std::make_unique<TF1>("slope_function", slope_function_C, rmin, rmin + tmax_settings.WidthAB(), 4);
32  slope_function->SetParameter(0, f->GetParameter(T0MTHistos::TMAX_PAR_NR_A));
33  slope_function->FixParameter(1, b);
34  slope_function->FixParameter(2, f->GetParameter(T0MTHistos::TMAX_PAR_NR_T0));
35  slope_function->FixParameter(3, f->GetParameter(T0MTHistos::TMAX_PAR_NR_BACK));
36  h->Fit("slope_function", "R+", "");
37  f->FixParameter(T0MTHistos::TMAX_PAR_NR_A, slope_function->GetParameter(0));
38  f->FixParameter(T0MTHistos::TMAX_PAR_NR_B, b);
39  f->FixParameter(T0MTHistos::TMAX_PAR_NR_T, T);
40 }
MuonCalib::T0MTSettingsTMax::WidthAB
const double & WidthAB() const
Width of the region in which the parameters a and b are estimated.
Definition: T0MTSettingsTMax.h:77
python.CaloRecoConfig.f
f
Definition: CaloRecoConfig.py:127
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
drawFromPickle.exp
exp
Definition: drawFromPickle.py:36
x
#define x
slope_function_C
Double_t slope_function_C(Double_t *x, Double_t *par)
Definition: RtCalibrationIntegration.cxx:21
h
createCoolChannelIdFile.par
par
Definition: createCoolChannelIdFile.py:29
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
a
TList * a
Definition: liststreamerinfos.cxx:10
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35