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 
22 
23 class DDCompactView;
24 class DDFilteredView;
25 class HGCalParameters;
26 
28  public:
32  const std::string&, const DDCompactView*,
33  const std::string&, const std::string&,
37  const DDCompactView*, const std::string&,
38  const std::string&);
43  void loadCellParsHexagon(const DDCompactView* cpv, HGCalParameters& php);
45 
46  private:
47  struct layerParameters {
48  double rmin, rmax, zpos;
49  layerParameters(double rin = 0, double rout = 0, double zp = 0)
50  : rmin(rin), rmax(rout), zpos(zp) {}
51  };
52  struct cellParameters {
53  bool half;
54  int wafer;
56  cellParameters(bool h = false, int w = 0,
57  GlobalPoint p = GlobalPoint(0, 0, 0))
58  : half(h), wafer(w), xyz(std::move(p)) {}
59  };
60 
61  std::vector<double> getDDDArray(const std::string&, const DDsvalues_type&,
62  const int);
63  std::pair<double, double> cellPosition(
64  const std::vector<cellParameters>& wafers,
65  std::vector<cellParameters>::const_iterator& itrf, int wafer, double xx,
66  double yy);
67 
68  const double sqrt3_;
69  double waferSize_;
70 };
71 
72 #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
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
void loadSpecParsHexagon8(const DDFilteredView &, HGCalParameters &)
void loadCellTrapezoid(HGCalParameters &php)
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)
void loadSpecParsTrapezoid(const DDFilteredView &, HGCalParameters &)
void loadGeometryHexagon8(const DDFilteredView &, HGCalParameters &, int)
std::vector< double > getDDDArray(const std::string &, const DDsvalues_type &, const int)
void loadWaferHexagon(HGCalParameters &php)
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
Definition: DDsvalues.h:12
def move(src, dest)
Definition: eostools.py:511
void loadWaferHexagon8(HGCalParameters &php)
void loadGeometryHexagon(const DDFilteredView &, HGCalParameters &, const std::string &, const DDCompactView *, const std::string &, const std::string &, HGCalGeometryMode::WaferMode)