HEJ 2.1.4
High energy resummation for hadron colliders
|
Unweight events. More...
#include <Unweighter.hh>
Public Member Functions | |
Unweighter (double cut) | |
Unweighter ()=default | |
void | set_cut (double max_weight) |
Explicitly set cut. More... | |
void | set_cut_to_maxwt (std::vector< Event > const &events) |
Set cut as max(weight) of events. More... | |
template<class ConstIt > | |
void | set_cut_to_maxwt (ConstIt begin, ConstIt end) |
Iterator version of set_max() More... | |
void | set_cut_to_peakwt (std::vector< Event > const &events, double max_dev) |
Estimate some reasonable cut for partial unweighting. More... | |
template<class ConstIt > | |
void | set_cut_to_peakwt (ConstIt begin, ConstIt end, double max_dev) |
Iterator version of set_cut_to_peakwt() More... | |
double | get_cut () const |
Returns current value of the cut. More... | |
optional< Event > | unweight (Event ev, RNG &ran) const |
Unweight one event, returns original event if weight > get_cut() More... | |
std::vector< Event > | unweight (std::vector< Event > events, RNG &ran) const |
Unweight for multiple events at once. More... | |
template<class Iterator > | |
Iterator | unweight (Iterator begin, Iterator end, RNG &ran) const |
Iterator implementation of unweight(),. More... | |
Unweight events.
Throws away events below with abs(weight)<cut with probability wt/cut
|
inline |
Constructor
cut | Initial value of cut, negative values for no cut |
|
default |
|
inline |
Returns current value of the cut.
|
inline |
Explicitly set cut.
void HEJ::Unweighter::set_cut_to_maxwt | ( | ConstIt | begin, |
ConstIt | end | ||
) |
Iterator version of set_max()
|
inline |
Set cut as max(weight) of events.
void HEJ::Unweighter::set_cut_to_peakwt | ( | ConstIt | begin, |
ConstIt | end, | ||
double | max_dev | ||
) |
Iterator version of set_cut_to_peakwt()
|
inline |
Estimate some reasonable cut for partial unweighting.
events | Events used for the estimation |
max_dev | Standard derivation to include above mean weight |
Unweight one event, returns original event if weight > get_cut()
Iterator HEJ::Unweighter::unweight | ( | Iterator | begin, |
Iterator | end, | ||
RNG & | ran | ||
) | const |
Iterator implementation of unweight(),.
Usage similar to std::remove(), i.e. use with erase()
Unweight for multiple events at once.