37 Set(std::map<int, T>
const& in);
68 T
const&
at(
int const&
id)
const {
return _objects.at(
id); }
101 T
Combine(std::vector<double>
const& weigths)
const;
106 void Print()
const { std::cout << *
this << std::endl; }
120 template<
class A,
class B>
The ConvolutionMap class encapsulates the set of rules to multiply a sets of operators with a set of ...
Definition convolutionmap.h:22
The Set template class allocates a collection of objects of type T along the ConvolutionMap and provi...
Definition set.h:22
Set< T > & operator-=(Set< T > const &d)
this -= Set
ConvolutionMap _map
The shared pointer containing the convolution map.
Definition set.h:109
Set< T > & operator+=(Set< T > const &d)
this += Set
Set(ConvolutionMap const &Map=ConvolutionMap{"UNDEFINED"}, std::map< int, T > const &in=std::map< int, T > {})
The Set constructor.
T Combine(std::vector< double > const &weigths) const
This function sums up all the objects of the set into one using the components of input vector as wei...
Set< V > operator*=(Set< V > const &d) const
operator *= product object
void Print() const
Print the Operator object.
Definition set.h:106
T const & at(int const &id) const
This returns object with ID "id" in the map.
Definition set.h:68
T Combine() const
This function sums up all the objects of the set into one.
void SetObjects(std::map< int, T > const &objects)
This function (re)sets the map of objects.
Definition set.h:88
friend std::ostream & operator<<(std::ostream &os, Set< U > const &s)
Set(std::map< int, T > const &in)
The Set constructor.
Set< T > & operator/=(double const &s)
this /= scalar
std::map< int, T > _objects
The container for the map.
Definition set.h:110
void SetMap(ConvolutionMap const &map)
This function (re)sets the convolution map.
Definition set.h:82
std::map< int, T > const & GetObjects() const
This returns the full map of objects.
Definition set.h:76
ConvolutionMap const & GetMap() const
This returns the convolution map.
Definition set.h:72
Namespace for all APFEL++ functions and classes.
Definition alphaqcd.h:14
Distribution operator/(Distribution lhs, double const &s)
Distribution/Scalar.
Distribution operator*(double const &s, Distribution rhs)
Scalar*Distribution.
Distribution operator+(Distribution lhs, Distribution const &rhs)
Distribution+Distribution.
Distribution operator-(Distribution lhs, Distribution const &rhs)
Distribution-Distribution.