test
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&);
41 
42 private:
43  std::vector<double> getDDDArray(const std::string&, const DDsvalues_type&,
44  int&);
45  std::pair<double,double> cellPosition(const std::vector<GlobalPoint>& wafers,
46  std::vector<GlobalPoint>::const_iterator& itrf,
47  unsigned int num, double rmax,
48  double ymax, double xx, double yy,
49  unsigned int ncells);
50 
51  struct layerParameters {
52  double rmin, rmax, zpos;
53  layerParameters(double rin=0, double rout=0,
54  double zp=0) : rmin(rin), rmax(rout), zpos(zp) {}
55  };
56  struct cellParameters {
57  bool half;
59  cellParameters(bool h=false,
60  GlobalPoint p=GlobalPoint(0,0,0)) : half(h), xyz(p) {}
61  };
62 
63  double waferSize_;
64 };
65 
66 #endif
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
void loadSpecParsHexagon(const DDFilteredView &, HGCalParameters &, const DDCompactView *, const std::string &, const std::string &)
cellParameters(bool h=false, GlobalPoint p=GlobalPoint(0, 0, 0))
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
type of data representation of DDCompactView
Definition: DDCompactView.h:77
layerParameters(double rin=0, double rout=0, double zp=0)
std::pair< double, double > cellPosition(const std::vector< GlobalPoint > &wafers, std::vector< GlobalPoint >::const_iterator &itrf, unsigned int num, double rmax, double ymax, double xx, double yy, unsigned int ncells)
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:19
std::vector< double > getDDDArray(const std::string &, const DDsvalues_type &, int &)
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 &)