CMS 3D CMS Logo

HGCalParametersFromDD.h
Go to the documentation of this file.
1 #ifndef HGCalCommonData_HGCalParametersFromDD_h
2 #define HGCalCommonData_HGCalParametersFromDD_h
3 
4 #include <string>
5 #include <vector>
9 
10 class HGCalParameters;
11 
13 public:
14  HGCalParametersFromDD() = default;
15  virtual ~HGCalParametersFromDD() = default;
16 
17  bool build(const DDCompactView* cpv,
18  HGCalParameters& php,
19  const std::string& name,
20  const std::string& namew,
21  const std::string& namec,
22  const std::string& namet);
23  bool build(const cms::DDCompactView* cpv,
24  HGCalParameters& php,
25  const std::string& name,
26  const std::string& namew,
27  const std::string& namec,
28  const std::string& namet,
29  const std::string& name2);
30 
31 private:
32  void getCellPosition(HGCalParameters& php, int type);
33  double getDDDValue(const char* s, const DDsvalues_type& sv);
34  std::vector<double> getDDDArray(const char* s, const DDsvalues_type& sv);
35  constexpr static double tan30deg_ = 0.5773502693;
36 };
37 
38 #endif
bool build(const DDCompactView *cpv, HGCalParameters &php, const std::string &name, const std::string &namew, const std::string &namec, const std::string &namet)
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:81
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
Definition: DDsvalues.h:12
virtual ~HGCalParametersFromDD()=default
HGCalParametersFromDD()=default
double getDDDValue(const char *s, const DDsvalues_type &sv)
std::vector< double > getDDDArray(const char *s, const DDsvalues_type &sv)
static constexpr double tan30deg_
void getCellPosition(HGCalParameters &php, int type)