Ticket #10975 (assigned)
Clarify issues with static methods in LoadEventNexus being used by other algorithms
Reported by: | Federico M Pouzols | Owned by: | Federico M Pouzols |
---|---|---|---|
Priority: | major | Milestone: | Release 3.5 |
Component: | Framework | Keywords: | Maintenance, CORE |
Cc: | Blocked By: | ||
Blocking: | #10619 | Tester: |
Description
As explained in http://trac.mantidproject.org/mantid/ticket/8172#comment:18, the LoadEventNexus algorithm class has several static methods that are used from other algorithms:
- LoadEventNexus::LoadEntryMetadata: used by LoadTOFRawNexus, LoadNexusMonitors
- LoadEventNexus::runLoadIDFFromNexus: used by LoadISISNexus2
- LoadEventNexus::runLoadInstrument: used by LoadTOFRawNexus, LoadPreNexus
- LoadEventNexus::runLoadNexusLogs: used by LoadTOFRawNexus
To re-use the already open NeXus file instead of re-opening it several times, these algorithms would need to be updated at once, so this was left out of ticket #8172.
In principle it should be possible to pass the (static) methods listed above a reference or pointer to the NeXus::File objects instead of/in addition to the file name.
Also, this use of static methods looks a bit suspicious and calling for maintenance trouble. Clarify and/or fix this issue.