Definition at line 37 of file SBNEventWeight_module.cc.
sbn::evwgh::SBNEventWeight::SBNEventWeight |
( |
fhicl::ParameterSet const & |
p | ) |
|
|
explicit |
Definition at line 57 of file SBNEventWeight_module.cc.
64 produces<std::vector<sbn::evwgh::EventWeightMap> >();
65 produces<art::Assns<simb::MCTruth, sbn::evwgh::EventWeightMap> >();
66 produces<std::vector<sbn::evwgh::EventWeightParameterSet>, art::InRun>();
std::string fGenieModuleLabel
size_t Configure(fhicl::ParameterSet const &cfg, Module &module)
WeightManager fWeightManager
void sbn::evwgh::SBNEventWeight::beginRun |
( |
art::Run & |
run | ) |
|
|
overrideprivate |
Definition at line 101 of file SBNEventWeight_module.cc.
102 auto p = std::make_unique<std::vector<EventWeightParameterSet> >();
105 p->push_back(it.second->fParameterSet);
108 run.put(std::move(
p));
WeightManager fWeightManager
std::map< std::string, WeightCalc * > GetWeightCalcMap()
void sbn::evwgh::SBNEventWeight::produce |
( |
art::Event & |
e | ) |
|
|
overrideprivate |
Definition at line 71 of file SBNEventWeight_module.cc.
72 auto mcwghvec = std::make_unique<std::vector<EventWeightMap> >();
73 auto wghassns = std::make_unique<art::Assns<simb::MCTruth, sbn::evwgh::EventWeightMap> >();
75 art::PtrMaker<sbn::evwgh::EventWeightMap> makeWeightPtr(
e);
78 std::vector<art::Ptr<simb::MCTruth> > mclist;
79 art::Handle<std::vector<simb::MCTruth>> mcTruthHandle;
84 art::fill_ptr_vector(mclist, mcTruthHandle);
87 for (
size_t i=0; i<mclist.size(); i++) {
89 mcwghvec->push_back(std::move(mcwgh));
91 art::Ptr<sbn::evwgh::EventWeightMap> wghPtr = makeWeightPtr(mcwghvec->size() - 1);
92 wghassns->addSingle(mclist.at(i), wghPtr);
96 e.put(std::move(mcwghvec));
97 e.put(std::move(wghassns));
std::string fGenieModuleLabel
std::map< std::string, std::vector< float > > EventWeightMap
Container for event-level weights.
WeightManager fWeightManager
EventWeightMap Run(art::Event &e, const int inu)
bool sbn::evwgh::SBNEventWeight::fAllowMissingTruth |
|
private |
std::string sbn::evwgh::SBNEventWeight::fGenieModuleLabel |
|
private |
The documentation for this class was generated from the following file: