33 std::string
type()
const override {
return "DetectorComponent"; }
36 Detector(
const std::string &name,
int id,
const std::shared_ptr<IObject> &shape,
IComponent *parent);
43 std::size_t
nDets()
const override {
return 1; }
44 double getDistance(
const IComponent &comp)
const override;
48 double getPhi()
const override;
49 double getPhiOffset(
const double &offset)
const override;
58 size_t index()
const override;
60 virtual size_t registerContents(
class ComponentVisitor &componentVisitor)
const override;
69 bool hasDetectorInfo()
const;
std::map< DeltaEMode::Type, std::string > index
ComponentVisitor : Visitor for IComponents.
Component is a wrapper for a Component which can modify some of its parameters, e....
This class represents a detector - i.e.
const detid_t m_id
The detector id.
std::string type() const override
A string representation of the component type.
Component * clone() const override
Clone method Make a copy of the Component.
std::size_t nDets() const override
A Detector object represents a single physical detector.
Detector * cloneParameterized(const ParameterMap *map) const override
Create a cloned instance with a parameter map applied.
base class for Geometric IComponent
Interface class for detector objects.
Object Component class, this class brings together the physical attributes of the component to the po...
det_topology
Describes the topology of a detectors group used to calculate angular position and angular measures f...
Helper class which provides the Collimation Length for SANS instruments.
int32_t detid_t
Typedef for a detector ID.