CMS 3D CMS Logo

HGCalTBParametersFromDD.h
Go to the documentation of this file.
1 #ifndef HGCalCommonData_HGCalTBParametersFromDD_h
2 #define HGCalCommonData_HGCalTBParametersFromDD_h
3 
4 #include <string>
5 #include <vector>
9 
10 class HGCalTBParameters;
11 
13 public:
14  HGCalTBParametersFromDD() = default;
15  virtual ~HGCalTBParametersFromDD() = default;
16 
17  bool build(const DDCompactView* cpv,
18  HGCalTBParameters& 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  HGCalTBParameters& 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  double getDDDValue(const char* s, const DDsvalues_type& sv);
33  std::vector<double> getDDDArray(const char* s, const DDsvalues_type& sv);
34  constexpr static double tan30deg_ = 0.5773502693;
35 };
36 
37 #endif
bool build(const DDCompactView *cpv, HGCalTBParameters &php, const std::string &name, const std::string &namew, const std::string &namec, const std::string &namet)
HGCalTBParametersFromDD()=default
double getDDDValue(const char *s, const DDsvalues_type &sv)
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:81
virtual ~HGCalTBParametersFromDD()=default
std::vector< double > getDDDArray(const char *s, const DDsvalues_type &sv)
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
Definition: DDsvalues.h:12
static constexpr double tan30deg_