Commit 730d5658 authored by Lennart Huth's avatar Lennart Huth
Browse files

added thickness to detetcor

parent 925497ff
......@@ -57,7 +57,8 @@ Detector::Detector(const Configuration& config) : m_role(DetectorRole::NONE) {
m_nPixels = config.get<ROOT::Math::DisplacementVector2D<Cartesian2D<int>>>("number_of_pixels");
// Size of the pixels
m_pitch = config.get<ROOT::Math::XYVector>("pixel_pitch");
// Detector thickness in radiationb length
m_thickness = config.get<double>("thickness", 0.02); // fixme: no default here pls
// Intrinsic position resolution, defaults to 4um:
m_resolution = config.get<ROOT::Math::XYVector>("resolution", ROOT::Math::XYVector(0.004, 0.004));
......
......@@ -257,6 +257,12 @@ namespace corryvreckan {
*/
bool isWithinROI(Cluster* cluster) const;
/**
* @brief Return the thickness of the senosr layer in radiation length
* @return thickness in in radiation length
*/
double thickness() const { return m_thickness; }
private:
// Roles of the detector
DetectorRole m_role;
......@@ -275,6 +281,7 @@ namespace corryvreckan {
XYVector m_resolution;
ROOT::Math::DisplacementVector2D<ROOT::Math::Cartesian2D<int>> m_nPixels;
double m_timingOffset;
double m_thickness;
std::vector<std::vector<int>> m_roi;
static int winding_number(std::pair<int, int> probe, std::vector<std::vector<int>> polygon);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment