LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "WeightCalc.h"
Public Member Functions | |
virtual void | Configure (fhicl::ParameterSet const &pset, CLHEP::HepRandomEngine &)=0 |
virtual std::vector< std::vector< double > > | GetWeight (art::Event &e)=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 Attributes | |
std::string | fName |
Definition at line 21 of file WeightCalc.h.
|
pure virtual |
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.
|
inline |
Definition at line 26 of file WeightCalc.h.
References lar::dump::vector().
Referenced by evwgh::GenieWeightCalc::CheckForIncompatibleSystematics(), evwgh::PPFXWeightCalc::Configure(), evwgh::PPFXTotAbsorpWeightCalc::Configure(), evwgh::PPFXThinMesonWeightCalc::Configure(), evwgh::PPFXThinNucWeightCalc::Configure(), evwgh::PPFXThinNucAWeightCalc::Configure(), evwgh::PPFXThinNeutronPionWeightCalc::Configure(), evwgh::PPFXThinPionWeightCalc::Configure(), evwgh::PPFXThinKaonWeightCalc::Configure(), evwgh::PPFXTargAttenWeightCalc::Configure(), evwgh::PPFXOtherWeightCalc::Configure(), evwgh::PPFXMIPPPionWeightCalc::Configure(), evwgh::PPFXMIPPKaonWeightCalc::Configure(), evwgh::PPFXCVWeightCalc::Configure(), and evwgh::GenieWeightCalc::Configure().
|
pure virtual |
Implemented in evwgh::GenieWeightCalc, 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.
Referenced by evwgh::Weight_t::GetWeight().
|
static |
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.
|
static |
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.
|
static |
Definition at line 151 of file WeightCalc.cxx.
References col, and art::errors::StdException.
|
inline |
Definition at line 25 of file WeightCalc.h.
|
private |
Definition at line 54 of file WeightCalc.h.