Mantid
Loading...
Searching...
No Matches
Namespaces | Functions
JSONGeometryParserTestHelper.cpp File Reference
#include "MantidFrameworkTestHelpers/JSONGeometryParserTestHelper.h"
#include "json/json.h"
#include <iostream>
#include <numeric>

Go to the source code of this file.

Namespaces

namespace  Mantid
 Helper class which provides the Collimation Length for SANS instruments.
 
namespace  Mantid::FrameworkTestHelpers
 
namespace  Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder
 

Functions

Json::Value & Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addCylindricalShape (Json::Value &nxDetector, const std::string &name="pixel_shape")
 
void Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addCylindricalShapeCylinders (Json::Value &shape, const std::vector< int > &arrayShape={3}, const std::vector< int > &indices={0, 1, 2})
 
void Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addCylindricalShapeVertices (Json::Value &shape, const std::vector< int > &arrayShape={3, 3}, const std::vector< double > &vertices={-0.001, 0, 0, 0.001, 0.00405, 0, 0.001, 0, 0})
 
void Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addDetectorNumbers (Json::Value &nxDetector, const std::vector< int32_t > &arrayShape, const std::vector< int32_t > &values)
 
Json::Value & Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addNXChopper (Json::Value &instrument, const std::string &name)
 
void Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addNXChopperName (Json::Value &chopper, const std::string &chopperName)
 
void Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addNXChopperRadius (Json::Value &chopper, const double radius=350)
 
void Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addNXChopperSlitEdges (Json::Value &chopper, const std::vector< double > &edges={0.0, 23.0})
 
void Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addNXChopperSlitHeight (Json::Value &chopper, const double slitHeight=150)
 
void Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addNXChopperSlits (Json::Value &chopper, const int32_t value)
 
void Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addNXChopperTopDeadCenter (Json::Value &chopper, const std::string &topic, const std::string &source, const std::string &writerModule)
 
Json::Value & Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addNXDetector (Json::Value &instrument, const std::string &name)
 
Json::Value & Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addNXEntry (Json::Value &root, const std::string &name)
 
Json::Value & Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addNXInstrument (Json::Value &entry, const std::string &name)
 
void Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addNXInstrumentName (Json::Value &instrument, const std::string &name)
 
Json::Value & Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addNXMonitor (Json::Value &entry, const std::string &name)
 
void Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addNXMonitorDetectorID (Json::Value &monitor, const int32_t detectorID)
 
void Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addNXMonitorEventStreamInfo (Json::Value &monitor, const std::string &topic, const std::string &source, const std::string &writerModule)
 
void Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addNXMonitorName (Json::Value &monitor, const std::string &name)
 
void Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addNXMonitorWaveformStreamInfo (Json::Value &monitor, const std::string &topic, const std::string &source, const std::string &writerModule)
 
Json::Value & Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addNXSample (Json::Value &entry, const std::string &name)
 
Json::Value & Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addNXSource (Json::Value &instrument, const std::string &name)
 
Json::Value & Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addNXTransformation (Json::Value &nxDetector, const std::string &name)
 
void Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addNXTransformationBeamDirectionOffset (Json::Value &nxTransformation, const std::vector< int > &arrayShape={1}, const std::vector< double > &values={0.049}, const std::vector< double > &vec={0, 0, -1})
 
void Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addNXTransformationDependency (Json::Value &nxDetector, const std::string &dependencyPath)
 
void Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addNXTransformationLocation (Json::Value &nxTransformation, const std::vector< int > &arrayShape={1}, const std::vector< double > &values={0.971}, const std::vector< double > &vec={1, 0, 0})
 
void Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addNXTransformationOrientation (Json::Value &nxTransformation, const std::vector< int > &arrayShape={1}, const std::vector< double > &values={90}, const std::vector< double > &vec={0, 1, 0})
 
Json::Value & Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addOffShape (Json::Value &nxDetector, const std::string &name="pixel_shape")
 
void Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addOffShapeFaces (Json::Value &shape, const std::vector< int > &arrayShape={1}, const std::vector< int > &faces={0})
 
void Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addOffShapeVertices (Json::Value &shape, const std::vector< int > &arrayShape={4, 3}, const std::vector< double > &vertices={-0.001, -0.001, 0, 0.001, -0.001, 0, 0.001, 0.001, 0, -0.001, 0.001, 0})
 
void Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addOffShapeWindingOrder (Json::Value &shape, const std::vector< int > &arrayShape={4}, const std::vector< int > &windingOrder={0, 1, 2, 3})
 
void Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addXPixelOffset (Json::Value &nxDetector, const std::vector< int32_t > &arrayShape, const std::vector< double > &values)
 
void Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addYPixelOffset (Json::Value &nxDetector, const std::vector< int32_t > &arrayShape, const std::vector< double > &values)
 
void Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::addZPixelOffset (Json::Value &nxDetector, const std::vector< int32_t > &arrayShape, const std::vector< double > &values)
 
const std::string Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::convertToString (const Json::Value &value)
 
std::string Mantid::FrameworkTestHelpers::getFullJSONInstrumentSimpleCylindrical ()
 
std::string Mantid::FrameworkTestHelpers::getFullJSONInstrumentSimpleOFF ()
 
std::string Mantid::FrameworkTestHelpers::getFullJSONInstrumentSimpleWithChopper ()
 
std::string Mantid::FrameworkTestHelpers::getFullJSONInstrumentSimpleWithMonitor ()
 
std::string Mantid::FrameworkTestHelpers::getFullJSONInstrumentSimpleWithMonitorNoShape ()
 
std::string Mantid::FrameworkTestHelpers::getFullJSONInstrumentSimpleWithSource ()
 
std::string Mantid::FrameworkTestHelpers::getFullJSONInstrumentSimpleWithZPixelOffset ()
 
std::string Mantid::FrameworkTestHelpers::getJSONGeometryEmptyCylindricalGeometry ()
 
std::string Mantid::FrameworkTestHelpers::getJSONGeometryEmptyOffGeometry ()
 
std::string Mantid::FrameworkTestHelpers::getJSONGeometryInvalidCylindricalGeometry ()
 
std::string Mantid::FrameworkTestHelpers::getJSONGeometryInvalidOffGeometry ()
 
std::string Mantid::FrameworkTestHelpers::getJSONGeometryMissingBeamDirectionOffset ()
 
std::string Mantid::FrameworkTestHelpers::getJSONGeometryMissingChopperInformation ()
 
std::string Mantid::FrameworkTestHelpers::getJSONGeometryMissingMonitorInformation ()
 
std::string Mantid::FrameworkTestHelpers::getJSONGeometryMissingOrientation ()
 
std::string Mantid::FrameworkTestHelpers::getJSONGeometryMissingTransformations ()
 
std::string Mantid::FrameworkTestHelpers::getJSONGeometryNoDetectorIDs ()
 
std::string Mantid::FrameworkTestHelpers::getJSONGeometryNoDetectors ()
 
std::string Mantid::FrameworkTestHelpers::getJSONGeometryNoInstrument ()
 
std::string Mantid::FrameworkTestHelpers::getJSONGeometryNoPixelShape ()
 
std::string Mantid::FrameworkTestHelpers::getJSONGeometryNoSample ()
 
std::string Mantid::FrameworkTestHelpers::getJSONGeometryNoXPixelOffset ()
 
std::string Mantid::FrameworkTestHelpers::getJSONGeometryNoYPixelOffset ()
 
void Mantid::FrameworkTestHelpers::JSONTestInstrumentBuilder::initialiseRoot (const Json::Value &root, const std::string &name)