|
|
Go to the documentation of this file.
15 edm::LogVerbatim(
"HCalGeom") <<
"CaloSimParametersFromDD: " << vec.size() <<
" entries for " <<
value <<
":";
17 for (
const auto&
e : vec) {
26 <<
"Inside CaloSimParametersFromDD::build(const DDCompactView*, CaloSimulationParameters&)";
50 <<
"Inside CaloSimParametersFromDD::build(const cms::DDCompactView*, CaloSimulationParameters&)";
54 php.
caloNames_ = fv.get<std::vector<std::string> >(
"calo",
"Calorimeter");
57 php.
insideNames_ = fv.get<std::vector<std::string> >(
"calo",
"Inside");
59 php.
fCaloNames_ = fv.get<std::vector<std::string> >(
"calo",
"FineCalorimeter");
78 <<
" does not match with " << php.
neighbours_.size() <<
" ==> illegal ";
80 <<
"Calorimeter array size does not match with size of neighbours\n";
97 const std::vector<std::string>& fvec =
value.strings();
98 int nval = fvec.size();
99 if ((nval < 1) && (!
ignore)) {
100 edm::LogError(
"HCalGeom") <<
"CaloSimParametersFromDD: # of " <<
str <<
" bins " << nval <<
" < 1 ==> illegal ";
101 throw cms::Exception(
"Unknown",
"CaloSimParametersFromDD") <<
"nval < 2 for array " <<
str <<
"\n";
106 std::vector<std::string> fvec;
109 edm::LogError(
"HCalGeom") <<
"CaloSimParametersFromDD: cannot get array " <<
str;
110 throw cms::Exception(
"Unknown",
"CaloSimParametersFromDD") <<
"cannot get array " <<
str <<
"\n";
123 const std::vector<double>& fvec =
value.doubles();
124 int nval = fvec.size();
125 if ((nval < 1) && (!
ignore)) {
126 edm::LogError(
"HCalGeom") <<
"CaloSimParametersFromDD: # of " <<
str <<
" bins " << nval <<
" < 1 ==> illegal ";
127 throw cms::Exception(
"Unknown",
"CaloSimParametersFromDD") <<
"nval < 2 for array " <<
str <<
"\n";
131 std::vector<int> fvec;
134 edm::LogError(
"HCalGeom") <<
"CaloSimParametersFromDD: cannot get array " <<
str;
135 throw cms::Exception(
"Unknown",
"CaloSimParametersFromDD") <<
"cannot get array " <<
str <<
"\n";
bool build(const DDCompactView *, CaloSimulationParameters &)
std::vector< int > neighbours_
std::vector< int > insideLevel_
DDsvalues_type mergedSpecifics() const
std::vector< std::string > getNames(const std::string &, const DDsvalues_type &, bool)
std::vector< int > levels_
std::vector< int > dbl_to_int(const std::vector< double > &vecdbl)
Converts a std::vector of doubles to a std::vector of int.
void myPrint(std::string value, const std::vector< T > &vec)
std::vector< std::string > caloNames_
bool firstChild()
set the current node to the first child ...
std::vector< int > fLevels_
Compact representation of the geometrical detector hierarchy.
std::vector< int > getNumbers(const std::string &, const DDsvalues_type &, bool)
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
dd4hep::Volume worldVolume() const
Handle to the world volume containing everything.
std::vector< std::string > insideNames_
Log< level::Error, false > LogError
Log< level::Info, true > LogVerbatim
std::vector< std::string > fCaloNames_
bool buildParameters(const CaloSimulationParameters &)
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
const cms::DDDetector * detector() const