1 #ifndef CORE_DDVECTOR_GETTER_H 2 # define CORE_DDVECTOR_GETTER_H 17 DDVector::iterator<DDVector> vit;
20 for(; vit != ved; ++vit )
22 if( vit->isDefined().second )
24 DDName vname( vit->name());
25 if( vname.name() ==
str )
33 inline std::vector<double>
36 DDVector::iterator<DDVector> vit;
39 throw cms::Exception(
"DDException" ) <<
"DDVectorGetter: vectors are empty, cannot get array " <<
str;
41 for (; vit != ved; ++vit )
43 if( vit->isDefined().second )
45 DDName vname( vit->name());
46 if( vname.name() ==
str )
48 const std::vector<double> & fvec = vit->values();
54 throw cms::Exception(
"DDException" ) <<
"DDVectorGetter: cannot get array " <<
str;
60 DDVector::iterator<DDVector> vit;
63 for(; vit != ved; ++vit )
65 if( vit->isDefined().second )
67 DDName vname( vit->name());
68 if( vname.name().compare( 0, str.size(),
str ) == 0 )
69 vstring.emplace_back( vname.name());
75 #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 > &)