File indexing completed on 2024-04-06 12:14:50
0001 #ifndef HcalTestBeamData_HcalTB02ParametersFromDD_h
0002 #define HcalTestBeamData_HcalTB02ParametersFromDD_h
0003
0004 #include <string>
0005 #include <vector>
0006 #include "DetectorDescription/Core/interface/DDCompactView.h"
0007 #include "DetectorDescription/Core/interface/DDFilteredView.h"
0008 #include "DetectorDescription/DDCMS/interface/DDCompactView.h"
0009 #include "DetectorDescription/DDCMS/interface/DDFilteredView.h"
0010 #include "Geometry/HcalTestBeamData/interface/HcalTB02Parameters.h"
0011 #include "DD4hep/DD4hepUnits.h"
0012
0013 class HcalTB02ParametersFromDD {
0014 public:
0015 HcalTB02ParametersFromDD() = default;
0016
0017 bool build(const DDCompactView* cpv, HcalTB02Parameters& php, const std::string& name);
0018 bool build(const cms::DDCompactView* cpv, HcalTB02Parameters& php, const std::string& name);
0019
0020 private:
0021 static constexpr double k_ScaleFromDDDToG4 = 1.0;
0022 static constexpr double k_ScaleFromDD4hepToG4 = (1.0 / dd4hep::mm);
0023 };
0024
0025 #endif