CMS 3D CMS Logo

HGCalGeomTools.h
Go to the documentation of this file.
1 #ifndef Geometry_HGCalCommonData_HGCalGeomTools_h
2 #define Geometry_HGCalCommonData_HGCalGeomTools_h
3 
4 #include <cstdint>
5 #include <vector>
6 
8 
9 public:
10 
13  static double radius(double z, std::vector<double> const& zFront,
14  std::vector<double> const& rFront,
15  std::vector<double> const& slope);
16  static double radius(double z, int layer0, int layerf,
17  std::vector<double> const& zFront,
18  std::vector<double> const& rFront);
19  static std::pair<int32_t,int32_t> waferCorner(double xpos, double ypos,
20  double r, double R,
21  double rMin, double rMax,
22  bool oldBug=false);
23 
24 private:
25  static constexpr double tol = 0.0001;
26 };
27 
28 #endif
static double radius(double z, std::vector< double > const &zFront, std::vector< double > const &rFront, std::vector< double > const &slope)
static const double slope[3]
#define constexpr
static std::pair< int32_t, int32_t > waferCorner(double xpos, double ypos, double r, double R, double rMin, double rMax, bool oldBug=false)
static constexpr double tol