Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
d4f37007
Commit
d4f37007
authored
May 22, 2015
by
Raquel Alvarez Banos
Browse files
Re #11825 Applying naming conventions
parent
e3201031
Changes
2
Hide whitespace changes
Inline
Side-by-side
Code/Mantid/Framework/DataHandling/inc/MantidDataHandling/AppendGeometryToSNSNexus.h
View file @
d4f37007
...
...
@@ -77,16 +77,16 @@ private:
bool
m_makeNexusCopy
;
/// Algorithm progress keeper
API
::
Progress
*
progress
;
API
::
Progress
*
m_
progress
;
/// The workspace to load instrument and logs
API
::
MatrixWorkspace_sptr
ws
;
/// Was the instrument loaded?
bool
instrument
_l
oaded
_c
orrectly
;
bool
m_
instrument
L
oaded
C
orrectly
;
/// Were the logs loaded?
bool
logs
_l
oaded
_c
orrectly
;
bool
m_
logs
L
oaded
C
orrectly
;
};
}
// namespace DataHandling
...
...
Code/Mantid/Framework/DataHandling/src/AppendGeometryToSNSNexus.cpp
View file @
d4f37007
...
...
@@ -24,8 +24,8 @@ DECLARE_ALGORITHM(AppendGeometryToSNSNexus)
/** Constructor
*/
AppendGeometryToSNSNexus
::
AppendGeometryToSNSNexus
()
:
m_makeNexusCopy
(
false
),
progress
(),
instrument
_l
oaded
_c
orrectly
(
false
),
logs
_l
oaded
_c
orrectly
(
false
)
{}
:
m_makeNexusCopy
(
false
),
m_
progress
(),
m_
instrument
L
oaded
C
orrectly
(
false
),
m_
logs
L
oaded
C
orrectly
(
false
)
{}
//----------------------------------------------------------------------------------------------
/** Destructor
...
...
@@ -146,23 +146,23 @@ void AppendGeometryToSNSNexus::exec() {
if
(
m_instrument
==
"HYSPEC"
||
m_instrument
==
"HYSPECA"
||
m_instrument
==
"SNAP"
)
{
g_log
.
debug
()
<<
"Run LoadNexusLogs Child Algorithm."
<<
std
::
endl
;
logs
_l
oaded
_c
orrectly
=
runLoadNexusLogs
(
m_filename
,
ws
,
this
);
m_
logs
L
oaded
C
orrectly
=
runLoadNexusLogs
(
m_filename
,
ws
,
this
);
if
(
!
logs
_l
oaded
_c
orrectly
)
if
(
!
m_
logs
L
oaded
C
orrectly
)
throw
std
::
runtime_error
(
"Failed to run LoadNexusLogs Child Algorithm."
);
}
g_log
.
debug
()
<<
"Run LoadInstrument Child Algorithm."
<<
std
::
endl
;
instrument
_l
oaded
_c
orrectly
=
runLoadInstrument
(
m_idf_filename
,
ws
,
this
);
m_
instrument
L
oaded
C
orrectly
=
runLoadInstrument
(
m_idf_filename
,
ws
,
this
);
if
(
!
instrument
_l
oaded
_c
orrectly
)
if
(
!
m_
instrument
L
oaded
C
orrectly
)
throw
std
::
runtime_error
(
"Failed to run LoadInstrument Child Algorithm."
);
// Get the number of detectors (just for progress reporting)
// Get the number of histograms/detectors
const
size_t
numDetectors
=
ws
->
getInstrument
()
->
getDetectorIDs
().
size
();
this
->
progress
=
new
API
::
Progress
(
this
,
0.0
,
1.0
,
numDetectors
);
this
->
m_
progress
=
new
API
::
Progress
(
this
,
0.0
,
1.0
,
numDetectors
);
// Get the instrument
Geometry
::
Instrument_const_sptr
instrument
=
ws
->
getInstrument
();
...
...
@@ -252,7 +252,7 @@ void AppendGeometryToSNSNexus::exec() {
nxfile
.
closeGroup
();
// close NXdetector
this
->
progress
->
report
(
dets
.
size
());
this
->
m_
progress
->
report
(
dets
.
size
());
}
else
{
throw
std
::
runtime_error
(
"Could not find any detectors for the bank named "
+
...
...
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