1 #ifndef CORE_DDVECTOR_GETTER_H 2 #define CORE_DDVECTOR_GETTER_H 14 DDVector::iterator<DDVector> vit;
17 for (; vit != ved; ++vit) {
18 if (vit->isDefined().second) {
20 if (vname.name() ==
str)
29 DDVector::iterator<DDVector> vit;
32 throw cms::Exception(
"DDException") <<
"DDVectorGetter: vectors are empty, cannot get array " <<
str;
34 for (; vit != ved; ++vit) {
35 if (vit->isDefined().second) {
37 if (vname.name() ==
str) {
38 const std::vector<double>& fvec = vit->values();
44 throw cms::Exception(
"DDException") <<
"DDVectorGetter: cannot get array " <<
str;
48 DDVector::iterator<DDVector> vit;
51 for (; vit != ved; ++vit) {
52 if (vit->isDefined().second) {
54 if (vname.name().compare(0, str.size(),
str) == 0)
55 vstring.emplace_back(vname.name());
61 #endif // CORE_DDVECTOR_GETTER_H
DDName is used to identify DDD entities uniquely.
bool check(const std::string &)
void beginWith(const std::string &, std::vector< std::string > &)