12 items_.resize(items.size());
13 for(
unsigned i = 0;
i < items.size(); ++
i) {
16 item.vpars_ = items[
i].getParameter<std::vector<int32_t> >(
"subdetPars");
25 for(
int subdet = 1; subdet <= 6; ++subdet )
27 std::stringstream sstm;
28 sstm <<
"Subdetector" << subdet;
34 putOne( subdet, subdetPars, ptp );
56 ptp.
vitems_.emplace_back( item );
T getParameter(std::string const &) const
VParameterSet const & getParameterSetVector(std::string const &name) const
std::vector< Item > vitems_
std::vector< ParameterSet > VParameterSet
void putOne(int, std::vector< int > &, PMTDParameters &)
Compact representation of the geometrical detector hierarchy.
std::vector< int > vpars_
std::vector< int > dbl_to_int(const std::vector< double > &vecdbl)
Converts a std::vector of doubles to a std::vector of int.
std::vector< int > vpars_
bool check(const std::string &)
std::vector< PMTDParameters::Item > items_
std::vector< double > get(const std::string &)
bool build(const DDCompactView *, PMTDParameters &)