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 <cmath>
5 #include <cstdint>
6 #include <vector>
7 
9 public:
12 
13  static const int k_allCorners = 6;
14  static const int k_fiveCorners = 5;
15  static const int k_fourCorners = 4;
16  static const int k_threeCorners = 3;
17 
18  static void radius(double zf,
19  double zb,
20  std::vector<double> const& zFront1,
21  std::vector<double> const& rFront1,
22  std::vector<double> const& slope1,
23  std::vector<double> const& zFront2,
24  std::vector<double> const& rFront2,
25  std::vector<double> const& slope2,
26  int flag,
27  std::vector<double>& zz,
28  std::vector<double>& rin,
29  std::vector<double>& rout);
30  static double radius(double z,
31  std::vector<double> const& zFront,
32  std::vector<double> const& rFront,
33  std::vector<double> const& slope);
34  static double radius(
35  double z, int layer0, int layerf, std::vector<double> const& zFront, std::vector<double> const& rFront);
36  std::pair<double, double> shiftXY(int waferPosition, double waferSize) const;
37  static double slope(double z, std::vector<double> const& zFront, std::vector<double> const& slope);
38  static std::pair<double, double> zradius(double z1,
39  double z2,
40  std::vector<double> const& zFront,
41  std::vector<double> const& rFront);
42  static std::pair<int32_t, int32_t> waferCorner(
43  double xpos, double ypos, double r, double R, double rMin, double rMax, bool oldBug = false);
44 
45 private:
46  static constexpr double tol_ = 0.0001;
47  double factor_;
48 };
49 
50 #endif
photonAnalyzer_cfi.rMax
rMax
Definition: photonAnalyzer_cfi.py:91
HGCalGeomTools::waferCorner
static std::pair< int32_t, int32_t > waferCorner(double xpos, double ypos, double r, double R, double rMin, double rMax, bool oldBug=false)
Definition: HGCalGeomTools.cc:219
geometryCSVtoXML.zz
zz
Definition: geometryCSVtoXML.py:19
HGCalGeomTools::slope
static double slope(double z, std::vector< double > const &zFront, std::vector< double > const &slope)
Definition: HGCalGeomTools.cc:192
HGCalGeomTools::factor_
double factor_
Definition: HGCalGeomTools.h:47
HGCalGeomTools::shiftXY
std::pair< double, double > shiftXY(int waferPosition, double waferSize) const
Definition: HGCalGeomTools.cc:166
testProducerWithPsetDescEmpty_cfi.z2
z2
Definition: testProducerWithPsetDescEmpty_cfi.py:41
HGCalGeomTools::zradius
static std::pair< double, double > zradius(double z1, double z2, std::vector< double > const &zFront, std::vector< double > const &rFront)
Definition: HGCalGeomTools.cc:204
HGCalGeomTools::~HGCalGeomTools
~HGCalGeomTools()
Definition: HGCalGeomTools.h:11
HGCalGeomTools::k_fiveCorners
static const int k_fiveCorners
Definition: HGCalGeomTools.h:14
DDAxes::z
HGCalGeomTools::k_allCorners
static const int k_allCorners
Definition: HGCalGeomTools.h:13
HGCalGeomTools
Definition: HGCalGeomTools.h:8
alignCSCRings.r
r
Definition: alignCSCRings.py:93
HGCalGeomTools::radius
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)
Definition: HGCalGeomTools.cc:11
HGCalGeomTools::HGCalGeomTools
HGCalGeomTools()
Definition: HGCalGeomTools.cc:9
HGCalGeomTools::k_threeCorners
static const int k_threeCorners
Definition: HGCalGeomTools.h:16
HGCalGeomTools::k_fourCorners
static const int k_fourCorners
Definition: HGCalGeomTools.h:15
photonAnalyzer_cfi.rMin
rMin
Definition: photonAnalyzer_cfi.py:90
dttmaxenums::R
Definition: DTTMax.h:29
HGCalGeomTools::tol_
static constexpr double tol_
Definition: HGCalGeomTools.h:46
RemoveAddSevLevel.flag
flag
Definition: RemoveAddSevLevel.py:116