#include <SBNWeightSysts.h>
Definition at line 14 of file SBNWeightSysts.h.
ana::UniverseWeight::UniverseWeight |
( |
const std::string & |
psetName, |
|
|
int |
univIdx |
|
) |
| |
Definition at line 21 of file SBNWeightSysts.cxx.
23 if(sr->truth.index < 0)
return 1;
30 const caf::Proxy<std::vector<caf::SRMultiverse>>& wgts = sr->truth.wgt;
31 if(wgts.empty())
return 1;
33 const int Nwgts = wgts[
fPSetIdx].univ.size();
35 static bool once =
true;
38 std::cout <<
"UniverseWeight: WARNING requesting universe " <<
fUnivIdx <<
" in parameter set " <<
fPSetName <<
" which only has size " << Nwgts <<
". Will wrap-around and suppress future warnings." << std::endl;
41 const unsigned int unividx =
fUnivIdx % Nwgts;
static UniverseOracle & Instance()
BEGIN_PROLOG could also be cout
int ana::UniverseWeight::fPSetIdx |
|
mutableprotected |
std::string ana::UniverseWeight::fPSetName |
|
protected |
int ana::UniverseWeight::fUnivIdx |
|
protected |
The documentation for this class was generated from the following files: