CMS 3D CMS Logo

HcalSimParametersFromDD.h
Go to the documentation of this file.
1 #ifndef HcalCommonData_HcalSimParametersFromDD_h
2 #define HcalCommonData_HcalSimParametersFromDD_h
3 
9 #include <string>
10 
12 
14 public:
15  HcalSimParametersFromDD() = default;
16 
19 
20 private:
22  void fillNameVector(const DDCompactView*, const std::string&, const std::string&, std::vector<std::string>&);
23  void fillNameVector(const cms::DDCompactView&, const std::string&, std::vector<std::string>&);
24  void fillPMTs(const std::vector<double>&, bool, HcalSimulationParameters&);
25  bool isItHF(const std::string&, const HcalSimulationParameters&);
26  std::vector<std::string> getNames(DDFilteredView& fv);
27  std::vector<std::string> getNames(cms::DDFilteredView& fv);
28  std::vector<double> getDDDArray(const std::string& str, const DDsvalues_type& sv, int& nmin);
29 
30  static constexpr double k_ScaleFromDD4hep = (1.0 / dd4hep::mm);
31  static constexpr double k_ScaleFromDD4hepInv = dd4hep::mm;
32 };
33 
34 #endif
std::vector< std::string > getNames(DDFilteredView &fv)
std::vector< double > getDDDArray(const std::string &str, const DDsvalues_type &sv, int &nmin)
static constexpr double k_ScaleFromDD4hep
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:81
bool isItHF(const std::string &, const HcalSimulationParameters &)
HcalSimParametersFromDD()=default
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
Definition: DDsvalues.h:12
bool buildParameters(const HcalSimulationParameters &)
static constexpr double k_ScaleFromDD4hepInv
bool build(const DDCompactView *, HcalSimulationParameters &)
void fillNameVector(const DDCompactView *, const std::string &, const std::string &, std::vector< std::string > &)
#define str(s)
void fillPMTs(const std::vector< double > &, bool, HcalSimulationParameters &)