Commit 58e8b0cf authored by Dominik Arominski's avatar Dominik Arominski
Browse files

Moved all initial class variables values to initializer list

parent 92118fea
......@@ -19,6 +19,7 @@ namespace DataHandling {
*/
class DLLExport LoadILLIndirect2 : public API::IFileLoader<Kernel::NexusDescriptor> {
public:
LoadILLIndirect2();
/// Returns a confidence value that this algorithm can load a file
int confidence(Kernel::NexusDescriptor &descriptor) const override;
......@@ -57,13 +58,13 @@ private:
size_t m_numberOfPixelsPerTube; // number of pixels per tube - Y
size_t m_numberOfChannels; // time channels - Z
size_t m_numberOfSimpleDetectors; // number of simple detector
size_t m_numberOfMonitors{1}; // number of monitors
size_t m_numberOfMonitors; // number of monitors
std::set<int> m_activeSDIndices; // set of Single Detector indices,
// that were actually active
bool m_bats{false}; // A flag marking the BATS mode
bool m_bats; // A flag marking the BATS mode
size_t m_firstTubeAngleRounded; // A flag holding the rounded angle of the first tube
std::vector<std::string> m_supportedInstruments{"IN16B"};
std::vector<std::string> m_supportedInstruments;
LoadHelper m_loader;
std::string m_loadOption;
};
......
......@@ -34,6 +34,13 @@ using namespace NeXus;
// Register the algorithm into the AlgorithmFactory
DECLARE_NEXUS_FILELOADER_ALGORITHM(LoadILLIndirect2)
//----------------------------------------------------------------------------------------------
/** Constructor
*/
LoadILLIndirect2::LoadILLIndirect2()
: m_numberOfTubes{16}, m_numberOfChannels{1024}, m_numberOfSimpleDetectors{8}, m_numberOfMonitors{1}, m_bats{false},
m_firstTubeAngleRounded{251}, m_supportedInstruments{"IN16B"} {}
//----------------------------------------------------------------------------------------------
/// Algorithm's name for identification. @see Algorithm::name
const std::string LoadILLIndirect2::name() const { return "LoadILLIndirect"; }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment