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 <vector>
17 #include <iostream>
18 
22 
23 class DDCompactView;
24 class DDFilteredView;
25 class HGCalParameters;
26 
28 
29 public:
30 
34  const std::string&);
36  const std::string&, const DDCompactView*,
37  const std::string&, const std::string&,
41  const DDCompactView*, const std::string&,
42  const std::string&);
44  void loadCellParsHexagon(const DDCompactView* cpv, HGCalParameters& php);
45 
46 private:
47 
48  struct layerParameters {
49  double rmin, rmax, zpos;
50  layerParameters(double rin=0, double rout=0,
51  double zp=0) : rmin(rin), rmax(rout), zpos(zp) {}
52  };
53  struct cellParameters {
54  bool half;
55  int wafer;
57  cellParameters(bool h=false, int w=0,
58  GlobalPoint p=GlobalPoint(0,0,0)) : half(h), wafer(w),
59  xyz(p) {}
60  };
61 
62  std::vector<double> getDDDArray(const std::string&, const DDsvalues_type&,
63  int&);
64  std::pair<double,double> cellPosition(const std::vector<cellParameters>& wafers,
65  std::vector<cellParameters>::const_iterator& itrf,
66  int wafer, double xx, double yy);
67 
68  double waferSize_;
69 };
70 
71 #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 &)
void loadGeometryHexagon(const DDFilteredView &, HGCalParameters &, const std::string &, const DDCompactView *, const std::string &, const std::string &, HGCalGeometryMode::WaferMode)