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

Detailed Description

template<typename T, typename M>
class hep::multi_channel_point2< T, M >

Point in the unit-hypercube for multi-channel Monte Carlo integration. This type also captures the map that is used to generate coordinates.

Inheritance diagram for hep::multi_channel_point2< T, M >:
hep::multi_channel_point< T > hep::mc_point< T >

Public Member Functions

 multi_channel_point2 (std::vector< T > const &point, std::vector< T > &coordinates, std::size_t channel, std::vector< T > &densities, std::vector< T > const &channel_weights, std::vector< std::size_t > const &enabled_channels, M &map)
 
M const & map () const
 
weight () const override
 
- Public Member Functions inherited from hep::multi_channel_point< T >
 multi_channel_point (std::vector< T > const &point, T weight, std::vector< T > &coordinates, std::size_t channel)
 
 multi_channel_point (multi_channel_point< T > const &)=delete
 
 multi_channel_point (multi_channel_point< T > &&)=delete
 
multi_channel_pointoperator= (multi_channel_point< T > const &)=delete
 
multi_channel_pointoperator= (multi_channel_point< T > &&)=delete
 
 ~multi_channel_point () override=default
 
std::size_t channel () const
 
std::vector< T > const & coordinates () const
 
- Public Member Functions inherited from hep::mc_point< T >
 mc_point (std::vector< T > const &point, T weight=T(1.0))
 
 mc_point (mc_point< T > const &)=delete
 
 mc_point (mc_point< T > &&)=delete
 
mc_pointoperator= (mc_point< T > const &)=delete
 
mc_pointoperator= (mc_point< T > &&)=delete
 
virtual ~mc_point ()=default
 
std::vector< T > const & point () const
 

Additional Inherited Members

- Protected Attributes inherited from hep::multi_channel_point< T >
std::size_t channel_
 
std::vector< T > & coordinates_
 
- Protected Attributes inherited from hep::mc_point< T >
weight_
 
std::vector< T > const & point_
 

Constructor & Destructor Documentation

◆ multi_channel_point2()

template<typename T , typename M >
hep::multi_channel_point2< T, M >::multi_channel_point2 ( std::vector< T > const &  point,
std::vector< T > &  coordinates,
std::size_t  channel,
std::vector< T > &  densities,
std::vector< T > const &  channel_weights,
std::vector< std::size_t > const &  enabled_channels,
M &  map 
)
inline

Constructor.

Member Function Documentation

◆ map()

template<typename T , typename M >
M const& hep::multi_channel_point2< T, M >::map ( ) const
inline

The map function that constructed this point. See multi_channel_iteration for reference on the signature of this function.

◆ weight()

template<typename T , typename M >
T hep::multi_channel_point2< T, M >::weight ( ) const
inlineoverridevirtual

Returns the weight for this Monte Carlo point.

Reimplemented from hep::mc_point< T >.