Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:14:28

0001 #ifndef EcalCommonData_EcalSimParametersFromDD_h
0002 #define EcalCommonData_EcalSimParametersFromDD_h
0003 
0004 #include "DetectorDescription/Core/interface/DDsvalues.h"
0005 #include "DetectorDescription/Core/interface/DDCompactView.h"
0006 #include "DetectorDescription/DDCMS/interface/DDCompactView.h"
0007 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0008 #include <string>
0009 #include <vector>
0010 
0011 class DDFilteredView;
0012 class EcalSimulationParameters;
0013 
0014 class EcalSimParametersFromDD {
0015 public:
0016   EcalSimParametersFromDD() = default;
0017 
0018   bool build(const DDCompactView*, const std::string& name, EcalSimulationParameters&);
0019   bool build(const cms::DDCompactView*, const std::string& name, EcalSimulationParameters&);
0020 
0021 private:
0022   bool buildParameters(const EcalSimulationParameters&);
0023   std::vector<std::string> getStringArray(const std::string&, const DDsvalues_type&);
0024   std::vector<double> getDDDArray(const std::string&, const DDsvalues_type&);
0025 };
0026 
0027 #endif