LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Public Member Functions | |
PPFXCVWeightCalc () | |
void | Configure (fhicl::ParameterSet const &p, CLHEP::HepRandomEngine &engine) override |
std::vector< std::vector< double > > | GetWeight (art::Event &e) override |
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 | fGenieModuleLabel |
std::vector< std::string > | fInputLabels |
std::string | fPPFXMode |
std::string | fMode |
std::string | fHorn |
std::string | fTarget |
int | fSeed |
int | fVerbose |
NeutrinoFluxReweight::MakeReweight * | fPPFXrw |
Definition at line 16 of file PPFXCVWeightCalc.cxx.
evwgh::PPFXCVWeightCalc::PPFXCVWeightCalc | ( | ) |
Definition at line 37 of file PPFXCVWeightCalc.cxx.
|
overridevirtual |
Implements evwgh::WeightCalc.
Definition at line 39 of file PPFXCVWeightCalc.cxx.
References fGenieModuleLabel, fHorn, fInputLabels, fMode, fPPFXMode, fPPFXrw, fSeed, fTarget, fVerbose, fhicl::ParameterSet::get(), and evwgh::WeightCalc::GetName().
|
inlineinherited |
Definition at line 26 of file WeightCalc.h.
References lar::dump::vector().
Referenced by evwgh::GenieWeightCalc::CheckForIncompatibleSystematics(), evwgh::PPFXWeightCalc::Configure(), Configure(), evwgh::PPFXThinKaonWeightCalc::Configure(), evwgh::PPFXMIPPPionWeightCalc::Configure(), evwgh::PPFXOtherWeightCalc::Configure(), evwgh::PPFXTargAttenWeightCalc::Configure(), evwgh::PPFXMIPPKaonWeightCalc::Configure(), evwgh::PPFXThinPionWeightCalc::Configure(), evwgh::PPFXThinNeutronPionWeightCalc::Configure(), evwgh::PPFXThinNucAWeightCalc::Configure(), evwgh::PPFXThinNucWeightCalc::Configure(), evwgh::PPFXThinMesonWeightCalc::Configure(), evwgh::PPFXTotAbsorpWeightCalc::Configure(), and evwgh::GenieWeightCalc::Configure().
|
overridevirtual |
Implements evwgh::WeightCalc.
Definition at line 72 of file PPFXCVWeightCalc.cxx.
References fHorn, fInputLabels, fMode, fPPFXrw, fTarget, fVerbose, evgb::MCTruthAndFriendsItr::GetDk2Nu(), evgb::MCTruthAndFriendsItr::GetLabel(), art::ProductRetriever::getMany(), evgb::MCTruthAndFriendsItr::GetMCTruth(), evgb::MCTruthAndFriendsItr::Next(), REGISTER_WEIGHTCALC, and weight.
|
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 23 of file PPFXCVWeightCalc.cxx.
Referenced by Configure().
|
private |
Definition at line 28 of file PPFXCVWeightCalc.cxx.
Referenced by Configure(), and GetWeight().
|
private |
Definition at line 25 of file PPFXCVWeightCalc.cxx.
Referenced by Configure(), and GetWeight().
|
private |
Definition at line 27 of file PPFXCVWeightCalc.cxx.
Referenced by Configure(), and GetWeight().
|
private |
Definition at line 26 of file PPFXCVWeightCalc.cxx.
Referenced by Configure().
|
private |
Definition at line 32 of file PPFXCVWeightCalc.cxx.
Referenced by Configure(), and GetWeight().
|
private |
Definition at line 30 of file PPFXCVWeightCalc.cxx.
Referenced by Configure().
|
private |
Definition at line 29 of file PPFXCVWeightCalc.cxx.
Referenced by Configure(), and GetWeight().
|
private |
Definition at line 31 of file PPFXCVWeightCalc.cxx.
Referenced by Configure(), and GetWeight().