|
MARLEY (Model of Argon Reaction Low Energy Yields) v2.0.0
A Monte Carlo event generator for tens-of-MeV neutrino interactions
|
Abstract base class for objects that compute numerical weights for an input event. More...
#include <WeightCalculator.hh>
Public Member Functions | |
| WeightCalculator (const marley::JSON &config) | |
| WeightCalculator (const std::string &name) | |
| const std::string & | name () const |
| virtual double | weight (HepMC3::GenEvent &event, marley::Generator &gen) const =0 |
| Compute the weight for the given event. | |
Protected Attributes | |
| std::string | name_ |
| Name used to label the output event weight. | |
Abstract base class for objects that compute numerical weights for an input event.
Definition at line 32 of file WeightCalculator.hh.
| marley::WeightCalculator::WeightCalculator | ( | const marley::JSON & | config | ) |
Definition at line 22 of file WeightCalculator.cc.
| marley::WeightCalculator::WeightCalculator | ( | const std::string & | name | ) |
Definition at line 37 of file WeightCalculator.cc.
|
inline |
Definition at line 58 of file WeightCalculator.hh.
|
pure virtual |
Compute the weight for the given event.
Implemented in marley::OMPWeightCalculator, marley::StrengthVariationWeightCalculator, and marley::TrivialWeightCalculator.
References name_.
|
protected |
Name used to label the output event weight.
Definition at line 63 of file WeightCalculator.hh.
Referenced by weight().