Skip to content
Snippets Groups Projects
Commit 1aa7a673 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

SphericalDetector: 4-argument c'tor for quadratic ranges

parent b7be2c12
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,10 @@ SphericalDetector::SphericalDetector(size_t n_phi, double phi_min, double phi_ma
setDetectorParameters(n_phi, phi_min, phi_max, n_alpha, alpha_min, alpha_max);
}
SphericalDetector::SphericalDetector(size_t n_bin, double width, double phi, double alpha)
: SphericalDetector(n_bin, phi-width/2, phi+width/2, n_bin, alpha-width/2, alpha+width/2) {
}
SphericalDetector::SphericalDetector(const SphericalDetector& other) : IDetector2D(other) {
setName("SphericalDetector");
}
......
......@@ -37,6 +37,13 @@ public:
SphericalDetector(size_t n_phi, double phi_min, double phi_max, size_t n_alpha,
double alpha_min, double alpha_max);
//! Spherical detector constructor with quadratic angle ranges
//! @param n_bin number of bins per direction
//! @param width angular width
//! @param phi central phi angle
//! @param alpha central alpha angle
SphericalDetector(size_t n_bin, double width, double phi, double alpha);
SphericalDetector(const SphericalDetector& other);
SphericalDetector* clone() const override;
......
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