Skip to content
GitLab
Menu
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
a84c19aa
Commit
a84c19aa
authored
Jul 27, 2021
by
Keerthi Nakkalil
Browse files
Time difference vs voltage is plotted
parent
2d556f25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Time walk correction/TreeTest.C
View file @
a84c19aa
...
...
@@ -83,6 +83,14 @@ void TreeTPWrite(){
//Save only the new version of the tree
TPtree
->
Write
(
""
,
TObject
::
kOverwrite
);
long
N
=
TPtree
->
Draw
(
"voltage:toa:sqrt(toa_var) "
,
"row==1 && col==10 && toa>0"
,
"goff"
);
TGraphErrors
*
gr
=
new
TGraphErrors
(
N
,
TPtree
->
GetV1
(),
TPtree
->
GetV2
(),
0
,
TPtree
->
GetV3
());
gr
->
GetXaxis
()
->
SetTitle
(
"Volatge[mV]"
);
gr
->
GetYaxis
()
->
SetTitle
(
"time difference[ns]"
);
gr
->
SetTitle
(
" "
);
gr
->
SetMarkerStyle
(
7
);
gr
->
Draw
(
"AP"
);
TPfile
->
Close
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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