20 #ifndef PHFIELD_PHFIELD3DCYLINDRICAL_H
21 #define PHFIELD_PHFIELD3DCYLINDRICAL_H
25 #include <boost/tuple/tuple.hpp>
33 typedef boost::tuple<float, float, float>
trio;
38 void GetFieldValue(
const double Point[4],
double* Bfield)
const override;
39 void GetFieldCyl(
const double CylPoint[4],
double* Bfield)
const;
43 std::vector<std::vector<std::vector<float> > >
BFieldZ_;
44 std::vector<std::vector<std::vector<float> > >
BFieldR_;
45 std::vector<std::vector<std::vector<float> > >
BFieldPHI_;
55 bool bin_search(
const std::vector<float>& vec,
unsigned start,
unsigned end,
const float& key,
unsigned& index)
const;
56 void print_map(std::map<trio, trio>::iterator&
it)
const;