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  public:
11  static void radius(double zf, double zb,
12  std::vector<double> const& zFront1,
13  std::vector<double> const& rFront1,
14  std::vector<double> const& slope1,
15  std::vector<double> const& zFront2,
16  std::vector<double> const& rFront2,
17  std::vector<double> const& slope2, int flag,
18  std::vector<double>& zz, std::vector<double>& rin,
19  std::vector<double>& rout);
20  static double radius(double z, std::vector<double> const& zFront,
21  std::vector<double> const& rFront,
22  std::vector<double> const& slope);
23  static double radius(double z, int layer0, int layerf,
24  std::vector<double> const& zFront,
25  std::vector<double> const& rFront);
26  static double slope(double z, std::vector<double> const& zFront,
27  std::vector<double> const& slope);
28  static std::pair<double, double> zradius(double z1, double z2,
29  std::vector<double> const& zFront,
30  std::vector<double> const& rFront);
31  static std::pair<int32_t, int32_t> waferCorner(double xpos, double ypos,
32  double r, double R,
33  double rMin, double rMax,
34  bool oldBug = false);
35 
36  private:
37  static constexpr double tol = 0.0001;
38 };
39 
40 #endif
static void radius(double zf, double zb, std::vector< double > const &zFront1, std::vector< double > const &rFront1, std::vector< double > const &slope1, std::vector< double > const &zFront2, std::vector< double > const &rFront2, std::vector< double > const &slope2, int flag, std::vector< double > &zz, std::vector< double > &rin, std::vector< double > &rout)
static double slope(double z, std::vector< double > const &zFront, std::vector< double > const &slope)
static std::pair< int32_t, int32_t > waferCorner(double xpos, double ypos, double r, double R, double rMin, double rMax, bool oldBug=false)
static std::pair< double, double > zradius(double z1, double z2, std::vector< double > const &zFront, std::vector< double > const &rFront)
static constexpr double tol
#define constexpr