1 #ifndef TkNavigation_TkMSParameterization_H 2 #define TkNavigation_TkMSParameterization_H 8 #include <unordered_map> 19 return std::make_tuple(lid >> 8, lid & 255);
37 auto p = find_if(
data.begin(),
data.end(), [=](
Elem const&
d) {
return d.vo >
v; });
38 if (
p !=
data.begin())
51 Elems const&
get(
float tnLambda)
const {
59 std::array<Elems, nLmBins()>
data;
63 using AllData = std::unordered_map<unsigned short, FromToData>;
68 os <<
d.vi <<
'/' <<
d.vo <<
':' <<
d.uerr <<
'/' <<
d.verr;
82 auto p =
data.find(
id);
95 #endif // TkNavigation_TkMSParameterization_H constexpr unsigned int nLmBins()
tkMSParameterization::AllData AllData
constexpr std::tuple< unsigned short, unsigned short > unpackLID(unsigned short lid)
friend TkMSParameterizationBuilder
std::array< Elems, nLmBins()> data
FromToData const * fromTo(int in, int out) const
constexpr unsigned short packLID(unsigned int id, unsigned int od)
auto const & operator()() const
FromToData const * fromTo(DetLayer const &in, DetLayer const &out) const
std::ostream & operator<<(std::ostream &os, tkMSParameterization::Elem d)
friend TkMSParameterizationBuilder
auto const & operator()() const
auto const & operator()() const
Abs< T >::type abs(const T &t)
std::unordered_map< unsigned short, FromToData > AllData
friend TkMSParameterizationBuilder
constexpr float lmBinInv()