File indexing completed on 2024-04-06 12:14:50
0001 #ifndef HcalTestBeamData_HcalTB06BeamParametersFromDD_h
0002 #define HcalTestBeamData_HcalTB06BeamParametersFromDD_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/HcalTB06BeamParameters.h"
0011
0012 class HcalTB06BeamParametersFromDD {
0013 public:
0014 HcalTB06BeamParametersFromDD() = default;
0015
0016 bool build(const DDCompactView* cpv, HcalTB06BeamParameters& php, const std::string& name1, const std::string& name2);
0017 bool build(const cms::DDCompactView* cpv,
0018 HcalTB06BeamParameters& php,
0019 const std::string& name1,
0020 const std::string& name2);
0021
0022 private:
0023 bool build(HcalTB06BeamParameters& php,
0024 const std::vector<std::string>& matNames,
0025 const std::vector<int>& nocc,
0026 const std::string& name1,
0027 const std::string& name2);
0028 std::vector<std::string> getNames(DDFilteredView& fv);
0029 std::vector<std::string> getNames(cms::DDFilteredView& fv);
0030 };
0031
0032 #endif