Mantid
Loading...
Searching...
No Matches
SpectraDetectorTypes.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8//------------------------------------------------------------------------------
9// Includes
10//------------------------------------------------------------------------------
12#include <set>
13#include <unordered_map>
14
15namespace Mantid {
16
18using spec2index_map = std::unordered_map<specnum_t, size_t>;
20using detid2index_map = std::unordered_map<detid_t, size_t>;
22using det2group_map = std::unordered_map<detid_t, std::set<detid_t>>;
23} // namespace Mantid
Helper class which provides the Collimation Length for SANS instruments.
std::unordered_map< specnum_t, size_t > spec2index_map
Map with key = spectrum number, value = workspace index.
std::unordered_map< detid_t, std::set< detid_t > > det2group_map
Map single det ID of group to its members.
std::unordered_map< detid_t, size_t > detid2index_map
Map with key = detector ID, value = workspace index.