Skip to content
Snippets Groups Projects
Commit 4516b851 authored by Paul Schuetze's avatar Paul Schuetze Committed by Simon Spannagel
Browse files

Add skeleton for a BigPixelDetector (name still to discuss), a detector with a...

Add skeleton for a BigPixelDetector (name still to discuss), a detector with a configurable set of big pixels
parent bf223a9a
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,7 @@ ADD_LIBRARY(CorryvreckanCore SHARED ...@@ -29,6 +29,7 @@ ADD_LIBRARY(CorryvreckanCore SHARED
detector/Detector.cpp detector/Detector.cpp
detector/PixelDetector.cpp detector/PixelDetector.cpp
detector/HexagonalPixelDetector.cpp detector/HexagonalPixelDetector.cpp
detector/BigPixelDetector.cpp
detector/exceptions.cpp detector/exceptions.cpp
clipboard/Clipboard.cpp clipboard/Clipboard.cpp
config/ConfigManager.cpp config/ConfigManager.cpp
......
/** @file
* @brief Detector model class
* @copyright Copyright (c) 2017-2020 CERN and the Corryvreckan authors.
* This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md".
* In applying this license, CERN does not waive the privileges and immunities granted to it by virtue of its status as an
* Intergovernmental Organization or submit itself to any jurisdiction.
*/
#include "BigPixelDetector.hpp"
#include "core/utils/log.h"
#include "exceptions.h"
using namespace ROOT::Math;
using namespace corryvreckan;
BigPixelDetector::BigPixelDetector(const Configuration& config) : PixelDetector(config) {
LOG(DEBUG) << "Constructing a BIG Pixel Detector";
// Get the information on big pixels here?
}
// Function to get local position from row and column
PositionVector3D<Cartesian3D<double>> BigPixelDetector::getLocalPosition(double column, double row) const {
// FIXME: Replace with new coordinate transformation
return PositionVector3D<Cartesian3D<double>>(m_pitch.X() * (column - static_cast<double>(m_nPixels.X() - 1) / 2.),
m_pitch.Y() * (row - static_cast<double>(m_nPixels.Y() - 1) / 2.),
0.);
}
/** @file
* @brief Detector model class
* @copyright Copyright (c) 2017-2020 CERN and the Corryvreckan authors.
* This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md".
* In applying this license, CERN does not waive the privileges and immunities granted to it by virtue of its status as an
* Intergovernmental Organization or submit itself to any jurisdiction.
*/
#ifndef CORRYVRECKAN_BIGPLANARDETECTOR_H
#define CORRYVRECKAN_BIGPLANARDETECTOR_H
#include "Detector.hpp"
#include "core/config/Configuration.hpp"
#include "core/utils/ROOT.h"
#include "core/utils/log.h"
namespace corryvreckan {
class BigPixelDetector : public PixelDetector {
public:
/**
* Delete default constructor
*/
BigPixelDetector() = delete;
/**
* Default destructor
*/
~BigPixelDetector() = default;
/**
* @brief Constructs a detector in the geometry
* @param config Configuration object describing the detector
*/
BigPixelDetector(const Configuration& config);
// Function to get local position from column (x) and row (y) coordinates
PositionVector3D<Cartesian3D<double>> getLocalPosition(double column, double row) const override;
};
} // namespace corryvreckan
#endif // CORRYVRECKAN_BIGPLANARDETECTOR_H
...@@ -208,4 +208,5 @@ namespace corryvreckan { ...@@ -208,4 +208,5 @@ namespace corryvreckan {
}; };
} // namespace corryvreckan } // namespace corryvreckan
#include "BigPixelDetector.hpp"
#endif // CORRYVRECKAN_DETECTOR_H #endif // CORRYVRECKAN_DETECTOR_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment