Loading src/core/geometry/RadialStripDetectorModel.hpp +60 −61 Original line number Diff line number Diff line Loading @@ -163,67 +163,6 @@ namespace allpix { return {inner_pitch_.at(row) + 2 * strip_length_.at(row) * tan(angular_pitch_.at(row) / 2), strip_length_.at(row)}; } /** * @brief Set the number of strips * @param val Vector describing number of strips in each strip row */ void setNumberOfStrips(std::vector<unsigned int> val) { number_of_strips_ = std::move(val); } /** * @brief Set the strip length * @param val Vector describing strip length in each strip row */ void setStripLength(std::vector<double> val) { strip_length_ = std::move(val); } /** * @brief Set the angular strip pitch * @param val Vector describing angular strip pitch in each row */ void setAngularPitch(std::vector<double> val) { angular_pitch_ = std::move(val); } /** * @brief Set the inner strip pitch * @param val Vector describing inner strip pitch in each strip row */ void setInnerPitch(std::vector<double> val) { inner_pitch_ = std::move(val); } /** * @brief Set the length of the trapezoidal sensor wrapper * @param val Length of the trapezoidal sensor wrapper */ void setSensorLength(double val) { sensor_length_ = val; } /** * @brief Set the smaller base length of the trapezoidal sensor wrapper * @param val Length of the smaller base of the trapezoidal sensor wrapper */ void setSensorBaseInner(double val) { sensor_base_.at(0) = val; } /** * @brief Set the larger base length of the trapezoidal sensor wrapper * @param val Length of the larger base of the trapezoidal sensor wrapper */ void setSensorBaseOuter(double val) { sensor_base_.at(1) = val; } /** * @brief Set the angle subtended by each strip row * @param val Vector describing angle subtended by each strip row */ void setRowAngle(std::vector<double> val) { row_angle_ = std::move(val); } /** * @brief Set outer radius of each strip row * @param val Vector describing outer radius of each strip row */ void setRowRadius(std::vector<double> val) { row_radius_ = std::move(val); } /** * @brief Set the sensor stereo angle * @param val Sensor stereo angle */ void setStereoAngle(double val) { stereo_angle_ = val; } /** * @brief Returns if a local position is within the sensitive device * @param position Position in local coordinates of the detector model Loading Loading @@ -318,6 +257,66 @@ namespace allpix { bool areNeighbors(const Pixel::Index& seed, const Pixel::Index& entrant, const size_t distance) const override; private: /** * @brief Set the number of strips * @param val Vector describing number of strips in each strip row */ void setNumberOfStrips(std::vector<unsigned int> val) { number_of_strips_ = std::move(val); } /** * @brief Set the strip length * @param val Vector describing strip length in each strip row */ void setStripLength(std::vector<double> val) { strip_length_ = std::move(val); } /** * @brief Set the angular strip pitch * @param val Vector describing angular strip pitch in each row */ void setAngularPitch(std::vector<double> val) { angular_pitch_ = std::move(val); } /** * @brief Set the inner strip pitch * @param val Vector describing inner strip pitch in each strip row */ void setInnerPitch(std::vector<double> val) { inner_pitch_ = std::move(val); } /** * @brief Set the length of the trapezoidal sensor wrapper * @param val Length of the trapezoidal sensor wrapper */ void setSensorLength(double val) { sensor_length_ = val; } /** * @brief Set the smaller base length of the trapezoidal sensor wrapper * @param val Length of the smaller base of the trapezoidal sensor wrapper */ void setSensorBaseInner(double val) { sensor_base_.at(0) = val; } /** * @brief Set the larger base length of the trapezoidal sensor wrapper * @param val Length of the larger base of the trapezoidal sensor wrapper */ void setSensorBaseOuter(double val) { sensor_base_.at(1) = val; } /** * @brief Set the angle subtended by each strip row * @param val Vector describing angle subtended by each strip row */ void setRowAngle(std::vector<double> val) { row_angle_ = std::move(val); } /** * @brief Set outer radius of each strip row * @param val Vector describing outer radius of each strip row */ void setRowRadius(std::vector<double> val) { row_radius_ = std::move(val); } /** * @brief Set the sensor stereo angle * @param val Sensor stereo angle */ void setStereoAngle(double val) { stereo_angle_ = val; } std::vector<unsigned int> number_of_strips_{}; std::vector<double> strip_length_{}; std::vector<double> angular_pitch_{}; Loading Loading
src/core/geometry/RadialStripDetectorModel.hpp +60 −61 Original line number Diff line number Diff line Loading @@ -163,67 +163,6 @@ namespace allpix { return {inner_pitch_.at(row) + 2 * strip_length_.at(row) * tan(angular_pitch_.at(row) / 2), strip_length_.at(row)}; } /** * @brief Set the number of strips * @param val Vector describing number of strips in each strip row */ void setNumberOfStrips(std::vector<unsigned int> val) { number_of_strips_ = std::move(val); } /** * @brief Set the strip length * @param val Vector describing strip length in each strip row */ void setStripLength(std::vector<double> val) { strip_length_ = std::move(val); } /** * @brief Set the angular strip pitch * @param val Vector describing angular strip pitch in each row */ void setAngularPitch(std::vector<double> val) { angular_pitch_ = std::move(val); } /** * @brief Set the inner strip pitch * @param val Vector describing inner strip pitch in each strip row */ void setInnerPitch(std::vector<double> val) { inner_pitch_ = std::move(val); } /** * @brief Set the length of the trapezoidal sensor wrapper * @param val Length of the trapezoidal sensor wrapper */ void setSensorLength(double val) { sensor_length_ = val; } /** * @brief Set the smaller base length of the trapezoidal sensor wrapper * @param val Length of the smaller base of the trapezoidal sensor wrapper */ void setSensorBaseInner(double val) { sensor_base_.at(0) = val; } /** * @brief Set the larger base length of the trapezoidal sensor wrapper * @param val Length of the larger base of the trapezoidal sensor wrapper */ void setSensorBaseOuter(double val) { sensor_base_.at(1) = val; } /** * @brief Set the angle subtended by each strip row * @param val Vector describing angle subtended by each strip row */ void setRowAngle(std::vector<double> val) { row_angle_ = std::move(val); } /** * @brief Set outer radius of each strip row * @param val Vector describing outer radius of each strip row */ void setRowRadius(std::vector<double> val) { row_radius_ = std::move(val); } /** * @brief Set the sensor stereo angle * @param val Sensor stereo angle */ void setStereoAngle(double val) { stereo_angle_ = val; } /** * @brief Returns if a local position is within the sensitive device * @param position Position in local coordinates of the detector model Loading Loading @@ -318,6 +257,66 @@ namespace allpix { bool areNeighbors(const Pixel::Index& seed, const Pixel::Index& entrant, const size_t distance) const override; private: /** * @brief Set the number of strips * @param val Vector describing number of strips in each strip row */ void setNumberOfStrips(std::vector<unsigned int> val) { number_of_strips_ = std::move(val); } /** * @brief Set the strip length * @param val Vector describing strip length in each strip row */ void setStripLength(std::vector<double> val) { strip_length_ = std::move(val); } /** * @brief Set the angular strip pitch * @param val Vector describing angular strip pitch in each row */ void setAngularPitch(std::vector<double> val) { angular_pitch_ = std::move(val); } /** * @brief Set the inner strip pitch * @param val Vector describing inner strip pitch in each strip row */ void setInnerPitch(std::vector<double> val) { inner_pitch_ = std::move(val); } /** * @brief Set the length of the trapezoidal sensor wrapper * @param val Length of the trapezoidal sensor wrapper */ void setSensorLength(double val) { sensor_length_ = val; } /** * @brief Set the smaller base length of the trapezoidal sensor wrapper * @param val Length of the smaller base of the trapezoidal sensor wrapper */ void setSensorBaseInner(double val) { sensor_base_.at(0) = val; } /** * @brief Set the larger base length of the trapezoidal sensor wrapper * @param val Length of the larger base of the trapezoidal sensor wrapper */ void setSensorBaseOuter(double val) { sensor_base_.at(1) = val; } /** * @brief Set the angle subtended by each strip row * @param val Vector describing angle subtended by each strip row */ void setRowAngle(std::vector<double> val) { row_angle_ = std::move(val); } /** * @brief Set outer radius of each strip row * @param val Vector describing outer radius of each strip row */ void setRowRadius(std::vector<double> val) { row_radius_ = std::move(val); } /** * @brief Set the sensor stereo angle * @param val Sensor stereo angle */ void setStereoAngle(double val) { stereo_angle_ = val; } std::vector<unsigned int> number_of_strips_{}; std::vector<double> strip_length_{}; std::vector<double> angular_pitch_{}; Loading