CMS 3D CMS Logo

HGCalGeomParameters.h
Go to the documentation of this file.
1 #ifndef HGCalCommonData_HGCalGeomParameters_h
2 #define HGCalCommonData_HGCalGeomParameters_h
3 
15 #include <string>
16 #include <utility>
17 #include <vector>
18 #include <iostream>
19 
23 
24 class DDCompactView;
25 class DDFilteredView;
26 class HGCalParameters;
27 
29 
30 public:
31 
35  const std::string&);
37  const std::string&, const DDCompactView*,
38  const std::string&, const std::string&,
42  const DDCompactView*, const std::string&,
43  const std::string&);
45  void loadCellParsHexagon(const DDCompactView* cpv, HGCalParameters& php);
46 
47 private:
48 
49  struct layerParameters {
50  double rmin, rmax, zpos;
51  layerParameters(double rin=0, double rout=0,
52  double zp=0) : rmin(rin), rmax(rout), zpos(zp) {}
53  };
54  struct cellParameters {
55  bool half;
56  int wafer;
58  cellParameters(bool h=false, int w=0,
59  GlobalPoint p=GlobalPoint(0,0,0)) : half(h), wafer(w),
60  xyz(std::move(p)) {}
61  };
62 
63  std::vector<double> getDDDArray(const std::string&, const DDsvalues_type&,
64  int&);
65  std::pair<double,double> cellPosition(const std::vector<cellParameters>& wafers,
66  std::vector<cellParameters>::const_iterator& itrf,
67  int wafer, double xx, double yy);
68 
69  double waferSize_;
70 };
71 
72 #endif
const double w
Definition: UKUtility.cc:23
cellParameters(bool h=false, int w=0, GlobalPoint p=GlobalPoint(0, 0, 0))
void loadSpecParsHexagon(const DDFilteredView &, HGCalParameters &, const DDCompactView *, const std::string &, const std::string &)
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
type of data representation of DDCompactView
Definition: DDCompactView.h:90
std::pair< double, double > cellPosition(const std::vector< cellParameters > &wafers, std::vector< cellParameters >::const_iterator &itrf, int wafer, double xx, double yy)
layerParameters(double rin=0, double rout=0, double zp=0)
void loadCellParsHexagon(const DDCompactView *cpv, HGCalParameters &php)
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
std::maps an index to a DDValue. The index corresponds to the index assigned to the name of the std::...
Definition: DDsvalues.h:20
std::vector< double > getDDDArray(const std::string &, const DDsvalues_type &, int &)
void loadWaferHexagon(HGCalParameters &php)
void loadSpecParsSquare(const DDFilteredView &, HGCalParameters &)
void loadGeometrySquare(const DDFilteredView &, HGCalParameters &, const std::string &)
def move(src, dest)
Definition: eostools.py:510
void loadGeometryHexagon(const DDFilteredView &, HGCalParameters &, const std::string &, const DDCompactView *, const std::string &, const std::string &, HGCalGeometryMode::WaferMode)