23 throw cet::exception(__PRETTY_FUNCTION__) <<
"Have not configured yet!" << std::endl;
31 auto const & weights = it->second->GetWeight(e);
33 if(weights.size() == 0){
34 std::vector<double>
empty;
35 std::pair<std::string, std::vector <double> >
p(
"empty",empty);
39 std::pair<std::string, std::vector<double> >
40 p(it->first+
"_"+it->second->fWeightCalcType,
std::map< std::string, std::vector< double > > fWeight
bool _configured
Readiness flag.
WeightManager(const std::string name="WeightManager")
Default constructor.
std::map< std::string, Weight_t * > fWeightCalcMap
A set of custom weight calculators.
MCEventWeight Run(art::Event &e, const int inu)
Core function (previous call to Configure is needed)
bool empty(FixedBins< T, C > const &) noexcept
const std::string & Name() const
Name getter.