forked from AmbaPant/mantid
-
Notifications
You must be signed in to change notification settings - Fork 1
/
InstrumentCreationHelper.h
34 lines (30 loc) · 1.78 KB
/
InstrumentCreationHelper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
// NScD Oak Ridge National Laboratory, European Spallation Source,
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once
#include "MantidTestHelpers/ComponentCreationHelper.h"
namespace Mantid {
namespace API {
class MatrixWorkspace;
}
} // namespace Mantid
namespace InstrumentCreationHelper {
void addFullInstrumentToWorkspace(Mantid::API::MatrixWorkspace &workspace, bool includeMonitors, bool startYNegative,
const std::string &instrumentName);
void addInstrumentWithGeographicalDetectorsToWorkspace(Mantid::API::MatrixWorkspace &workspace, const int nlat,
const int nlong, const double anginc,
const std::string &instrumentName);
Mantid::Geometry::Component *addComponent(Mantid::Geometry::Instrument_sptr &instrument,
const Mantid::Kernel::V3D &position, const std::string &name);
void addSample(Mantid::Geometry::Instrument_sptr &instrument, const Mantid::Kernel::V3D &position,
const std::string &name);
void addSource(Mantid::Geometry::Instrument_sptr &instrument, const Mantid::Kernel::V3D &position,
const std::string &name);
void addMonitor(Mantid::Geometry::Instrument_sptr &instrument, const Mantid::Kernel::V3D &position, const int ID,
const std::string &name);
void addDetector(Mantid::Geometry::Instrument_sptr &instrument, const Mantid::Kernel::V3D &position, const int ID,
const std::string &name);
} // namespace InstrumentCreationHelper