23 :
Detector(base, map), m_panel(base->m_panel), m_col(base->m_col), m_row(base->m_row), m_layer(base->m_layer) {}
40 :
Detector(name, id, shape, parent), m_panel(panel), m_col(col), m_row(row), m_layer(layer) {
42 throw std::runtime_error(
"GridDetectorPixel::ctor(): pixel " + name +
" has no valid GridDetector parent.");
69 z *= scalez->value<
double>();
const ParameterMap * m_map
A pointer to const ParameterMap containing the parameters.
This class represents a detector - i.e.
bool hasDetectorInfo() const
GridrDetectorPixel: a sub-class of Detector that is one pixel inside a GridDetector.
const GridDetector * m_panel
GridDetector that is the parent of this pixel.
Kernel::V3D getRelativePos() const override
Get the position relative to the parent IComponent (absolute if no parent) This is calculated on-the-...
size_t m_row
Column of the pixel in the panel (y/row index)
GridDetectorPixel(const std::string &name, int id, const std::shared_ptr< IObject > &shape, IComponent *parent, const GridDetector *panel, size_t col, size_t row, size_t layer)
Constructor.
size_t m_col
Row of the pixel in the panel (x/col index)
size_t m_layer
Plane of the pixel in the panel (z/layer index)
GridDetector is a type of CompAssembly, an assembly of components.
double ystart() const
Returns the start position in the Y direction.
double ystep() const
Returns the step size in the Y direction.
double xstep() const
Returns the step size in the X direction.
double xstart() const
Returns the start position in the X direction.
double zstart() const
Returns the start position in the Z direction.
double zstep() const
Returns the step size in the Z direction.
base class for Geometric IComponent
virtual Kernel::V3D getRelativePos() const =0
Get the position relative to the parent IComponent (absolute if no parent)
std::shared_ptr< Parameter > get(const IComponent *comp, const std::string &name, const std::string &type="") const
Get a parameter with a given name and type (std::string version)
adjust instrument component position and orientation
: detector size scale at y-direction