hep-mc  0.8
Public Member Functions | List of all members
hep::multi_channel_weight_info< T > Class Template Reference

Detailed Description

template<typename T>
class hep::multi_channel_weight_info< T >

Class that displays the available information about the a-posterioi weights of a multi_channel_result.

Public Member Functions

 multi_channel_weight_info (multi_channel_result< T > const &result)
 
std::vector< std::size_t > const & calls () const
 
std::vector< std::size_t > const & channels () const
 
std::size_t minimal_weight_count () const
 
std::vector< T > const & weights () const
 

Constructor & Destructor Documentation

◆ multi_channel_weight_info()

template<typename T >
hep::multi_channel_weight_info< T >::multi_channel_weight_info ( multi_channel_result< T > const &  result)
inlineexplicit

Constructor.

Member Function Documentation

◆ calls()

template<typename T >
std::vector<std::size_t> const& hep::multi_channel_weight_info< T >::calls ( ) const
inline

Returns the number of expected calls for each weight in the same order as the channel indices returned by channels().

◆ channels()

template<typename T >
std::vector<std::size_t> const& hep::multi_channel_weight_info< T >::channels ( ) const
inline

Returns the channel indices sorted in ascending order of their corresponding weight.

◆ minimal_weight_count()

template<typename T >
std::size_t hep::multi_channel_weight_info< T >::minimal_weight_count ( ) const
inline

Returns the number of channels that have a weight that, multiplied with the number of calls, corresponds to the minimum number of calls.

◆ weights()

template<typename T >
std::vector<T> const& hep::multi_channel_weight_info< T >::weights ( ) const
inline

Returns the a-priori weights, starting with the lowest weights up to the largest one.