Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fernando Hueso González
Pulse Surfer
Commits
db3486d6
Commit
db3486d6
authored
6 months ago
by
Fernando Hueso González
Browse files
Options
Download
Email Patches
Plain Diff
fix start args
parent
10711eec
main
pre
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test_gui.cpp
+5
-5
test_gui.cpp
with
5 additions
and
5 deletions
+5
-5
test_gui.cpp
View file @
db3486d6
...
...
@@ -26,12 +26,12 @@ PulseSurfer* ps = NULL;//global variable pointer
* \param bytesPerSample 2 bytes (int16) are used per sample point. Other things are not supported
* \param subtractBaseline automatic baseline subtraction
* \param persist set 2D persistency accumulation
* \param xmin zoom min x value
* \param xmin zoom min x value
, use == xmax to skip this setting
* \param xmax zoom max x value
* \param ymin zoom min y value
* \param ymin zoom min y value
, use == ymax to autozoom instead
* \param ymax zoom max y value
*/
void
test_gui
(
const
TString
fileName
,
const
UInt_t
samplesPerPulse
=
32768
,
const
UInt_t
preTrigger
=
0
,
const
Short_t
overflow
=
32767
,
const
UShort_t
bytesPerSample
=
2
,
const
Bool_t
subtractBaseline
=
kFALSE
,
const
Bool_t
persist
=
kFALSE
,
const
Int_t
xmin
=
0
,
const
Int_t
xmax
=
32767
,
const
Int_t
ymin
=
0
,
const
Int_t
ymax
=
16383
)
void
test_gui
(
const
TString
fileName
,
const
UInt_t
samplesPerPulse
=
32768
,
const
UInt_t
preTrigger
=
0
,
const
Short_t
overflow
=
32767
,
const
UShort_t
bytesPerSample
=
2
,
const
Bool_t
subtractBaseline
=
kFALSE
,
const
Bool_t
persist
=
kFALSE
,
const
Int_t
xmin
=
0
,
const
Int_t
xmax
=
0
,
const
Int_t
ymin
=
0
,
const
Int_t
ymax
=
0
)
{
ps
=
new
PulseSurfer
();
ps
->
Open
(
fileName
,
samplesPerPulse
,
preTrigger
,
overflow
,
bytesPerSample
);
...
...
@@ -43,8 +43,8 @@ void test_gui(const TString fileName, const UInt_t samplesPerPulse=32768, const
if
(
!
c
)
return
;
TH1
*
h
=
(
TH1
*
)
gROOT
->
FindObject
(
kHistName
);
if
(
!
h
)
return
;
h
->
GetXaxis
()
->
SetRangeUser
(
xmin
,
xmax
);
h
->
GetYaxis
()
->
SetRangeUser
(
ymin
,
ymax
);
if
(
xmin
!=
xmax
)
h
->
GetXaxis
()
->
SetRangeUser
(
xmin
,
xmax
);
if
(
ymin
!=
ymax
)
h
->
GetYaxis
()
->
SetRangeUser
(
ymin
,
ymax
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help