LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Public Member Functions | |
GenieWeightCalc () | |
void | Configure (const fhicl::ParameterSet &pset, CLHEP::HepRandomEngine &engine) override |
std::vector< std::vector< double > > | GetWeight (art::Event &e) override |
virtual void | Configure (fhicl::ParameterSet const &pset, CLHEP::HepRandomEngine &)=0 |
void | SetName (std::string name) |
std::string | GetName () |
Static Public Member Functions | |
static std::vector< std::vector< double > > | MultiGaussianSmearing (std::vector< double > const ¢ralValues, std::vector< std::vector< double >> const &inputCovarianceMatrix, int n_multisims, CLHEP::RandGaussQ &GaussRandom) |
Applies Gaussian smearing to a set of data. More... | |
static std::vector< double > | MultiGaussianSmearing (std::vector< double > const ¢ralValue, TMatrixD *const &inputCovarianceMatrix, std::vector< double > rand) |
Over load of the above function that only returns a single varied parameter set. More... | |
static std::vector< double > | MultiGaussianSmearing (std::vector< double > const ¢ralValue, TMatrixD *const &LowerTriangleCovarianceMatrix, bool isDecomposed, std::vector< double > rand) |
Private Member Functions | |
std::map< std::string, int > | CheckForIncompatibleSystematics (const std::vector< genie::rew::GSyst_t > &knob_vec) |
void | SetupWeightCalculators (genie::rew::GReWeight &rw, const std::map< std::string, int > &modes_to_use) |
Private Attributes | |
std::vector< genie::rew::GReWeight > | reweightVector |
std::string | fGenieModuleLabel |
bool | fQuietMode |
Definition at line 211 of file GenieWeightCalc.cxx.
evwgh::GenieWeightCalc::GenieWeightCalc | ( | ) |
Definition at line 233 of file GenieWeightCalc.cxx.
|
private |
Definition at line 556 of file GenieWeightCalc.cxx.
References evwgh::WeightCalc::GetName().
Referenced by Configure().
|
pure virtualinherited |
Implemented in evwgh::PPFXCVWeightCalc, evwgh::PPFXMIPPKaonWeightCalc, evwgh::PPFXMIPPPionWeightCalc, evwgh::PPFXOtherWeightCalc, evwgh::PPFXTargAttenWeightCalc, evwgh::PPFXThinKaonWeightCalc, evwgh::PPFXThinMesonWeightCalc, evwgh::PPFXThinNeutronPionWeightCalc, evwgh::PPFXThinNucAWeightCalc, evwgh::PPFXThinNucWeightCalc, evwgh::PPFXThinPionWeightCalc, evwgh::PPFXTotAbsorpWeightCalc, and evwgh::PPFXWeightCalc.
|
override |
Definition at line 235 of file GenieWeightCalc.cxx.
References util::begin(), CheckForIncompatibleSystematics(), util::end(), fGenieModuleLabel, fQuietMode, fhicl::ParameterSet::get(), fhicl::ParameterSet::get_all_keys(), evwgh::WeightCalc::GetName(), MF_LOG_INFO, reweightVector, and SetupWeightCalculators().
|
inlineinherited |
Definition at line 26 of file WeightCalc.h.
References lar::dump::vector().
Referenced by CheckForIncompatibleSystematics(), evwgh::PPFXWeightCalc::Configure(), evwgh::PPFXTotAbsorpWeightCalc::Configure(), evwgh::PPFXThinPionWeightCalc::Configure(), evwgh::PPFXThinNucWeightCalc::Configure(), evwgh::PPFXThinNucAWeightCalc::Configure(), evwgh::PPFXThinNeutronPionWeightCalc::Configure(), evwgh::PPFXThinMesonWeightCalc::Configure(), evwgh::PPFXMIPPKaonWeightCalc::Configure(), evwgh::PPFXTargAttenWeightCalc::Configure(), evwgh::PPFXOtherWeightCalc::Configure(), evwgh::PPFXMIPPPionWeightCalc::Configure(), evwgh::PPFXThinKaonWeightCalc::Configure(), evwgh::PPFXCVWeightCalc::Configure(), and Configure().
|
overridevirtual |
Implements evwgh::WeightCalc.
Definition at line 506 of file GenieWeightCalc.cxx.
References fGenieModuleLabel, art::ProductRetriever::getProduct(), lcvn::interaction, evgb::RetrieveGHEP(), and reweightVector.
|
staticinherited |
Applies Gaussian smearing to a set of data.
centralValues | the values to be smeared |
inputCovarianceMatrix | covariance matrix for smearing |
n_multisims | number of sets of smeared values to be produced |
If centralValues is of dimension N, inputCovarianceMatrix needs to be NxN, and each of the returned data sets will be also of dimension N.
Definition at line 14 of file WeightCalc.cxx.
References col, art::errors::Configuration, n, and art::errors::StdException.
|
staticinherited |
Over load of the above function that only returns a single varied parameter set.
Definition at line 97 of file WeightCalc.cxx.
References col, and art::errors::StdException.
|
staticinherited |
Definition at line 151 of file WeightCalc.cxx.
References col, and art::errors::StdException.
|
inlineinherited |
Definition at line 25 of file WeightCalc.h.
|
private |
Definition at line 589 of file GenieWeightCalc.cxx.
References REGISTER_WEIGHTCALC.
Referenced by Configure().
|
private |
Definition at line 226 of file GenieWeightCalc.cxx.
Referenced by Configure(), and GetWeight().
|
private |
Definition at line 228 of file GenieWeightCalc.cxx.
Referenced by Configure().
|
private |
Definition at line 224 of file GenieWeightCalc.cxx.
Referenced by Configure(), and GetWeight().