Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:15:13

0001 #ifndef HGCalCommonData_HGCalTBParametersFromDD_h
0002 #define HGCalCommonData_HGCalTBParametersFromDD_h
0003 
0004 #include <string>
0005 #include <vector>
0006 #include "DetectorDescription/Core/interface/DDsvalues.h"
0007 #include "DetectorDescription/Core/interface/DDCompactView.h"
0008 #include "DetectorDescription/DDCMS/interface/DDCompactView.h"
0009 
0010 class HGCalTBParameters;
0011 
0012 class HGCalTBParametersFromDD {
0013 public:
0014   HGCalTBParametersFromDD() = default;
0015   virtual ~HGCalTBParametersFromDD() = default;
0016 
0017   bool build(const DDCompactView* cpv,
0018              HGCalTBParameters& php,
0019              const std::string& name,
0020              const std::string& namew,
0021              const std::string& namec,
0022              const std::string& namet);
0023   bool build(const cms::DDCompactView* cpv,
0024              HGCalTBParameters& php,
0025              const std::string& name,
0026              const std::string& namew,
0027              const std::string& namec,
0028              const std::string& namet,
0029              const std::string& name2);
0030 
0031 private:
0032   double getDDDValue(const char* s, const DDsvalues_type& sv);
0033   std::vector<double> getDDDArray(const char* s, const DDsvalues_type& sv);
0034   constexpr static double tan30deg_ = 0.5773502693;
0035 };
0036 
0037 #endif