ATLAS Offline Software
svec2dvec.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "./svec2dvec.h"
6 #include "./ArgStrToDouble.h"
7 #include <algorithm>
8 
9 std::vector<double> svec2dvec(const std::vector<std::string>& svec){
10 
11  std::vector<double> result;
12  result.resize(svec.size());
13 
14  std::transform(svec.cbegin(), svec.cend(), result.begin(), ArgStrToDouble());
15  return result;
16 }
get_generator_info.result
result
Definition: get_generator_info.py:21
svec2dvec.h
ArgStrToDouble
Definition: ArgStrToDouble.h:13
ArgStrToDouble.h
svec2dvec
std::vector< double > svec2dvec(const std::vector< std::string > &svec)
Definition: svec2dvec.cxx:9
Amg::transform
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
Definition: GeoPrimitivesHelpers.h:156