Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Keerthi Nakkalil
gain_measurement
Commits
5bf7482c
Commit
5bf7482c
authored
Jul 13, 2021
by
Keerthi Nakkalil
Browse files
Delete caliberation.C
parent
1b8925de
Changes
1
Hide whitespace changes
Inline
Side-by-side
caliberation.C
deleted
100644 → 0
View file @
1b8925de
void
caliberation
(){
auto
c
=
new
TCanvas
();
gStyle
->
SetOptFit
(
1
);
TGraphErrors
*
graph
=
new
TGraphErrors
(
"125_125.txt"
,
"%lg %lg %lg"
,
""
);
graph
->
SetTitle
(
" "
);
graph
->
GetXaxis
()
->
SetTitle
(
"Voltage [mV]"
);
graph
->
GetYaxis
()
->
SetTitle
(
"Time difference [ns]"
);
graph
->
SetMarkerStyle
(
8
);
graph
->
SetMarkerColor
(
4
);
// graph->GetYaxis()->SetRangeUser(15.5,17.35);
TF1
*
fitfuncTOA
=
new
TF1
(
"fitfuncTOA"
,
"(([0]/(x-[1]))+ [2])"
,
25
.
0
,
700
.
0
);
fitfuncTOA
->
SetParNames
(
"curvature"
,
"asymtote"
,
"offset"
);
fitfuncTOA
->
SetParameter
(
0
,
600
.
0
);
auto
ymax
=
TMath
::
MaxElement
(
graph
->
GetN
(),
graph
->
GetY
());
auto
ttoa
=
graph
->
Eval
(
ymax
);
// cout << ymax << " " << ttoa;
fitfuncTOA
->
SetParameter
(
1
,
ttoa
);
auto
dtoa
=
graph
->
Eval
(
688
.
35
);
fitfuncTOA
->
SetParameter
(
2
,
dtoa
);
fitfuncTOA
->
SetLineColor
(
kRed
);
graph
->
Fit
(
fitfuncTOA
,
"R"
);
graph
->
Draw
(
"AP"
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment