CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
21 
22 class DDCompactView;
23 class DDFilteredView;
24 class HGCalParameters;
25 
27 
28 public:
29 
33  const std::string&);
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(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
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
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 loadGeometryHexagon(const DDFilteredView &, HGCalParameters &, const std::string &, const DDCompactView *, const std::string &, const std::string &)
void loadGeometrySquare(const DDFilteredView &, HGCalParameters &, const std::string &)