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&, const DDCompactView*,
36  const std::string&, const std::string&,
39  const DDCompactView*, const std::string&,
40  const std::string&);
42  void loadCellParsHexagon(const DDCompactView* cpv, HGCalParameters& php);
43 
44 private:
45 
46  struct layerParameters {
47  double rmin, rmax, zpos;
48  layerParameters(double rin=0, double rout=0,
49  double zp=0) : rmin(rin), rmax(rout), zpos(zp) {}
50  };
51  struct cellParameters {
52  bool half;
53  int wafer;
55  cellParameters(bool h=false, int w=0,
56  GlobalPoint p=GlobalPoint(0,0,0)) : half(h), wafer(w),
57  xyz(std::move(p)) {}
58  };
59 
60  std::vector<double> getDDDArray(const std::string&, const DDsvalues_type&,
61  int&);
62  std::pair<double,double> cellPosition(const std::vector<cellParameters>& wafers,
63  std::vector<cellParameters>::const_iterator& itrf,
64  int wafer, double xx, double yy);
65 
66  double waferSize_;
67 };
68 
69 #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)
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)