32 class WeightCalculator {
37 WeightCalculator(
const std::string& name );
38 virtual ~WeightCalculator() =
default;
58 const std::string& name()
const {
return name_; }
67 class TrivialWeightCalculator :
public WeightCalculator {
72 : WeightCalculator( config ) {}
73 virtual ~TrivialWeightCalculator() =
default;
Stores event-related information.
The MARLEY Event generator.
virtual double weight(HepMC3::GenEvent &, marley::Generator &) const override
Compute the weight for the given event.
virtual double weight(HepMC3::GenEvent &event, marley::Generator &gen) const =0
Compute the weight for the given event.
std::string name_
Name used to label the output event weight.