6 #include <DD4hep/Filter.h> 9 for (
int subdet = 1; subdet <= 6; ++subdet) {
10 std::stringstream sstm;
11 sstm <<
"Subdetector" << subdet;
17 putOne(subdet, subdetPars, ptp);
28 for (
int subdet = 1; subdet <= 6; ++subdet) {
29 const auto&
v = vmap.at(
"trackerParameters:Subdetector" +
std::to_string(subdet));
30 std::vector<int> subdetPars;
31 std::transform(
v.begin(),
v.end(), std::back_inserter(subdetPars), [](
int i) ->
int {
return std::round(
i); });
32 putOne(subdet, subdetPars, ptp);
36 const auto& vPars = vmap.at(
"trackerParameters:vPars");
37 std::transform(vPars.begin(), vPars.end(), std::back_inserter(ptp.
vpars), [](
int i) ->
int {
return std::round(
i); });
void putOne(int, std::vector< int > &, PTrackerParameters &)
std::vector< Item > vitems
std::vector< double > const & vector(std::string_view iKey) const
returns an empty container if not found
const cms::DDDetector * detector() const
Compact representation of the geometrical detector hierarchy.
static std::string to_string(const XMLCh *ch)
std::vector< int > dbl_to_int(const std::vector< double > &vecdbl)
Converts a std::vector of doubles to a std::vector of int.
bool build(const DDCompactView *, PTrackerParameters &)
cms::DDVectorsMap const & vectors() const