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
Javier Galan
rest-framework
Commits
88e2344a
Commit
88e2344a
authored
Nov 22, 2020
by
Javier Galan
Browse files
TRestReadoutPixel::Print() now does not receive an index
parent
8abf046c
Changes
4
Hide whitespace changes
Inline
Side-by-side
source/metadata/readout/inc/TRestReadoutPixel.h
View file @
88e2344a
...
...
@@ -111,7 +111,7 @@ class TRestReadoutPixel : public TObject {
TVector2
TransformToPixelCoordinates
(
TVector2
p
);
void
Print
(
int
index
=
-
1
);
void
Print
();
// Construtor
TRestReadoutPixel
();
...
...
source/metadata/readout/src/TRestReadoutChannel.cxx
View file @
88e2344a
...
...
@@ -99,7 +99,7 @@ void TRestReadoutChannel::Print(int DetailLevel) {
if
(
DetailLevel
-
1
>=
0
)
for
(
int
n
=
0
;
n
<
GetNumberOfPixels
();
n
++
)
{
fReadoutPixel
[
n
].
Print
(
n
);
fReadoutPixel
[
n
].
Print
();
}
}
}
source/metadata/readout/src/TRestReadoutPixel.cxx
View file @
88e2344a
...
...
@@ -153,9 +153,9 @@ TVector2 TRestReadoutPixel::TransformToPixelCoordinates(TVector2 p) {
///////////////////////////////////////////////
/// \brief Prints on screen the pixel details, origin, size, rotation
///
void
TRestReadoutPixel
::
Print
(
int
index
)
{
metadata
<<
" ## Pixel
: "
<<
index
<<
"
position : ("
<<
GetOriginX
()
<<
","
<<
GetOriginY
()
<<
") mm size : ("
<<
GetSizeX
()
<<
","
<<
GetSizeY
()
<<
") mm"
<<
endl
;
void
TRestReadoutPixel
::
Print
()
{
metadata
<<
" ## Pixel position : ("
<<
GetOriginX
()
<<
","
<<
GetOriginY
()
<<
") mm size : ("
<<
GetSizeX
()
<<
","
<<
GetSizeY
()
<<
") mm"
<<
endl
;
metadata
<<
" rotation : "
<<
fRotation
<<
" degrees"
<<
" type : "
;
if
(
fTriangle
)
...
...
source/restcore/src/TRestBrowser.cxx
View file @
88e2344a
...
...
@@ -245,7 +245,7 @@ Bool_t TRestBrowser::LoadEventId(Int_t id, Int_t subid) {
if
(
r
->
GetAnalysisTree
()
!=
NULL
&&
r
->
GetAnalysisTree
()
->
GetEntries
()
>
0
)
{
TRestEvent
*
ev
=
r
->
GetEventWithID
(
id
,
subid
);
if
(
!
ev
)
{
warning
<<
"Event ID : "
<<
id
<<
" with sub ID : "
<<
subid
<<
" not found!"
<<
endl
;
warning
<<
"Event ID : "
<<
id
<<
" with sub ID : "
<<
subid
<<
" not found!"
<<
endl
;
return
kFALSE
;
}
else
{
fEventRow
=
r
->
GetCurrentEntry
();
...
...
@@ -300,6 +300,7 @@ Bool_t TRestBrowser::OpenFile(TString filename) {
fEventSubIdNumberBox
->
SetIntNumber
(
ev
->
GetSubID
());
}
}
return
true
;
}
void
TRestBrowser
::
NextPlotOptionAction
()
{
...
...
Write
Preview
Supports
Markdown
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