Helper struct for the cache. Might not need this. More...
#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-03-03/CAFAna/Core/StanTypedefs.h"
Public Member Functions | |
_OscCalcDMP () | |
_OscCalcDMP (std::vector< double > energies) | |
~_OscCalcDMP ()=default | |
_IOscCalcAdjustable< T > * | Copy () const override |
T | P (int flavBefore, int flavAfter, double E) override |
E in GeV; flavors as PDG codes (so, neg==>antinu) More... | |
T | P (int flavBefore, int flavAfter, double E, bool fast_and_loose) |
Array< T, Dynamic, Dynamic > | P () |
Array< T, Dynamic, 1 > | P (int flavBefore, int flavAfter, const std::vector< double > &E) override |
void | SetL (double L) override |
void | SetRho (double rho) override |
void | SetDmsq21 (const T &dmsq21) override |
void | SetDmsq32 (const T &dmsq32) override |
void | SetTh12 (const T &th12) override |
void | SetTh13 (const T &th13) override |
void | SetTh23 (const T &th23) override |
void | SetdCP (const T &dCP) override |
void | InvalidateCache () override |
Invalidate any caching used internally by the calculator. More... | |
std::string | Name () const |
virtual double | GetL () const |
virtual double | GetRho () const |
virtual T | GetDmsq21 () const |
virtual T | GetDmsq32 () const |
virtual T | GetTh12 () const |
virtual T | GetTh13 () const |
virtual T | GetTh23 () const |
virtual T | GetdCP () const |
virtual Eigen::Array< T, Eigen::Dynamic, 1 > | P (int flavBefore, int flavAfter, const Eigen::ArrayXd &E) |
Protected Member Functions | |
TMD5 * | GetParamsHashDefault (const std::string &txt) const |
This is only a safe implementation if your calculator only depends on these eight parameters. More... | |
Protected Attributes | |
double | fRho |
double | fL |
T | fDmsq21 |
T | fDmsq32 |
T | fTh12 |
T | fTh13 |
T | fTh23 |
T | fdCP |
Private Member Functions | |
void | FillCache (std::vector< double > const &energies) |
TMD5 * | GetParamsHash () const override |
Use to check two calculators are in the same state. More... | |
int | ChannelCacheIdx (int flavBefore, int flavAfter) const |
virtual void | FillCache () |
void | SaveLastParams () |
void | SetCachedEnergies (std::vector< double > const &energies) |
bool | ParamsAreCached () |
Private Attributes | |
_OscCache< T > | fCache |
std::string | name = "OscCalcDMP" |
_OscParameters< T > | fLastParams |
Helper struct for the cache. Might not need this.
Struct of the cache A DMP based implementation of OscCalcPMNS
Uses DMP
Definition at line 25 of file StanTypedefs.h.
|
inline |
Definition at line 38 of file OscCalcDMP.h.
|
inline |
Definition at line 39 of file OscCalcDMP.h.
|
default |
|
inlineprivate |
Definition at line 67 of file OscCalcDMP.cxx.
References abs(), MECModelEnuComparisons::i, compare_h5_caf::idx, and calib::j.
|
overridevirtual |
Implements osc::_IOscCalcAdjustable< T >.
Definition at line 48 of file OscCalcDMP.cxx.
|
private |
Definition at line 165 of file OscCalcDMP.cxx.
|
privatevirtual |
Definition at line 145 of file OscCalcDMP.cxx.
References nbins, and osc::_PMNS_DMP< T >::P().
|
inlinevirtualinherited |
Reimplemented in osc::OscCalcCPT.
Definition at line 95 of file IOscCalc.h.
Referenced by osc::CopyParams(), osc::OscCalcCPT::GetdCP(), getHists_FNEX(), joint_fit_2017_make_fc_slice(), joint_fit_2017_make_fc_surf(), jointsensitivity(), ana::ResetOscCalcToTemplate(), ana::ResetSterileCalcToDefault(), ana::SaveTo(), ana::FitSinSq2Theta13::SetValue(), test_ana(), and test_nue2018_fitter().
|
inlinevirtualinherited |
Reimplemented in osc::OscCalcCPT.
Definition at line 90 of file IOscCalc.h.
Referenced by osc::CopyParams(), ana::SolarConstraints::Dmsq21(), osc::OscCalcCPT::GetDmsq21(), ana::FitDmSq21::GetValue(), ana::ResetOscCalcToTemplate(), ana::ResetSterileCalcToDefault(), and ana::SaveTo().
|
inlinevirtualinherited |
Reimplemented in osc::OscCalcCPT.
Definition at line 91 of file IOscCalc.h.
Referenced by CAF_makeCAFSensitivities_for_FNEX(), cc(), ana::Dmsq32Constraint::ChiSq(), ana::AtmConstraint::ChiSq(), osc::CopyParams(), demoFitContours(), demoFitSlices(), getBestFit(), osc::OscCalcCPT::GetDmsq32(), getHists_FNEX(), ana::FitDmSq32::GetValue(), ana::FitDmSq32Scaled::GetValue(), ana::FitDmSq32NormalHierarchy::GetValue(), ana::FitDmSq32ScaledNH::GetValue(), ana::FitDmSq32ScaledIH::GetValue(), ana::FitDmSq32InvertedHierarchy::GetValue(), joint_fit_2017_contours(), joint_fit_2017_slices(), joint_fit_2018_contours(), joint_fit_2018_slices(), joint_fit_2019_contours(), joint_fit_2019_slices(), joint_fit_future_contour_univ(), jointsensitivity(), MakeCAFSensitivities_for_FNEX(), plot_3NDvsFD(), plot_NDvsFD_REW(), plot_NDvsFD_weights(), plot_nueFD_Signal_REWvsNOM(), ana::ResetOscCalcToTemplate(), ana::ResetSterileCalcToDefault(), run_joint_fit_2020_contours(), run_joint_fit_2020_slices(), ana::SaveTo(), sensitivity2018(), sensitivity2020(), test_nue2018_fitter(), test_nueextrapsyst(), Tutorial2019FitContours(), and Tutorial2019FitSlices().
|
inlinevirtualinherited |
Reimplemented in osc::OscCalcCPT, and osc::OscCalcSterile.
Definition at line 88 of file IOscCalc.h.
Referenced by ana::T2KToyExperiment::ChiSq(), osc::CopyParams(), osc::OscCalcCPT::GetL(), ana::ResetSterileCalcToDefault(), ana::SaveTo(), and ana::T2KToyExperiment::SetTruthParams().
|
overrideprivatevirtual |
Use to check two calculators are in the same state.
Reimplemented from osc::_IOscCalc< T >.
Definition at line 10 of file OscCalcDMP.cxx.
References runNovaSAM::ret, string, and T.
|
protectedinherited |
This is only a safe implementation if your calculator only depends on these eight parameters.
txt | A string to uniquely identify your calculator class |
Definition at line 49 of file IOscCalc.cxx.
References runNovaSAM::ret, and T.
Referenced by osc::_OscCalcPMNS< T >::GetParamsHash(), osc::_OscCalcPMNSOpt< T >::GetParamsHash(), and osc::analytic::_OscCalc< T >::GetParamsHash().
|
inlinevirtualinherited |
Reimplemented in osc::OscCalcCPT, and osc::OscCalcSterile.
Definition at line 89 of file IOscCalc.h.
Referenced by osc::CopyParams(), osc::OscCalcCPT::GetRho(), ana::ResetSterileCalcToDefault(), and ana::SaveTo().
|
inlinevirtualinherited |
Reimplemented in osc::OscCalcCPT.
Definition at line 92 of file IOscCalc.h.
Referenced by osc::CopyParams(), osc::OscCalcCPT::GetTh12(), ana::FitTanSqTheta12::GetValue(), ana::FitSinSq2Theta12::GetValue(), ana::ResetOscCalcToTemplate(), ana::ResetSterileCalcToDefault(), ana::SaveTo(), and ana::SolarConstraints::Th12().
|
inlinevirtualinherited |
Reimplemented in osc::OscCalcCPT.
Definition at line 93 of file IOscCalc.h.
Referenced by osc::CopyParams(), demoFitContours(), osc::OscCalcCPT::GetTh13(), ana::FitTheta13::GetValue(), ana::FitSinSq2Theta13::GetValue(), joint_fit_2018_contours(), joint_fit_future_bestfit_univ(), monoprob(), ana::ResetOscCalcToTemplate(), ana::ResetSterileCalcToDefault(), ana::SaveTo(), sensitivity2020(), test_ana(), and Tutorial2019FitContours().
|
inlinevirtualinherited |
Reimplemented in osc::OscCalcCPT.
Definition at line 94 of file IOscCalc.h.
Referenced by cc(), ana::AtmConstraint::ChiSq(), ana::Ssth23Constraint::ChiSq(), osc::CopyParams(), getBestFit(), osc::OscCalcCPT::GetTh23(), ana::FitSinSqTheta23::GetValue(), FitSinSqTheta23UO::GetValue(), ana::FitSinSqTheta23UpperOctant::GetValue(), FitSinSqTheta23LO::GetValue(), ana::FitSinSqTheta23LowerOctant::GetValue(), ana::FitSinSq2Theta23::GetValue(), FitSinSqTheta23MaxMix::GetValue(), FitSinSqTheta23LowerOctant::GetValue(), FitSinSqTheta23UpperOctant::GetValue(), jointsensitivity(), ana::ResetOscCalcToTemplate(), ana::ResetSterileCalcToDefault(), ana::SaveTo(), and test_nue2018_fitter().
|
inlineoverridevirtual |
Invalidate any caching used internally by the calculator.
Some calculators use a cache that can become stale in ways that the calculator may not know about (e.g., Stan var clearing). Default implementation does nothing.
Reimplemented from osc::_IOscCalcAdjustable< T >.
Definition at line 62 of file OscCalcDMP.h.
|
inline |
Definition at line 64 of file OscCalcDMP.h.
|
virtualinherited |
Default implementation forawrds to vector<double> version. Override if your calculator has a more efficient implementation.
Reimplemented in osc::analytic::_OscCalc< T >.
Definition at line 37 of file IOscCalc.cxx.
References P.
|
overridevirtual |
E in GeV; flavors as PDG codes (so, neg==>antinu)
Implements osc::_IOscCalc< T >.
Definition at line 117 of file OscCalcDMP.cxx.
References E.
T osc::_OscCalcDMP< T >::P | ( | int | flavBefore, |
int | flavAfter, | ||
double | E, | ||
bool | fast_and_loose | ||
) |
Definition at line 100 of file OscCalcDMP.cxx.
|
inline |
|
overridevirtual |
Default implementation forwards to non-vector version using a simple loop. Override if your calculator has a more efficient implementation.
Reimplemented from osc::_IOscCalc< T >.
Definition at line 84 of file OscCalcDMP.cxx.
|
private |
Definition at line 54 of file OscCalcDMP.cxx.
|
private |
Definition at line 25 of file OscCalcDMP.cxx.
|
private |
|
inlineoverridevirtual |
Implements osc::_IOscCalcAdjustable< T >.
Definition at line 60 of file OscCalcDMP.h.
References dCP.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements osc::_IOscCalcAdjustable< T >.
Definition at line 56 of file OscCalcDMP.h.
References dmsq32.
Referenced by test_stanfit_statsonly().
|
inlineoverridevirtual |
Implements osc::_IOscCalcAdjustable< T >.
Definition at line 53 of file OscCalcDMP.h.
References CLHEP::L.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements osc::_IOscCalcAdjustable< T >.
Definition at line 57 of file OscCalcDMP.h.
References th12.
|
inlineoverridevirtual |
Implements osc::_IOscCalcAdjustable< T >.
Definition at line 58 of file OscCalcDMP.h.
References th13.
|
inlineoverridevirtual |
Implements osc::_IOscCalcAdjustable< T >.
Definition at line 59 of file OscCalcDMP.h.
References th23.
Referenced by test_stanfit_statsonly().
|
private |
Definition at line 68 of file OscCalcDMP.h.
|
protectedinherited |
Definition at line 119 of file IOscCalc.h.
Referenced by osc::analytic::_OscCalc< T >::_P(), osc::OscCalc::OscCalc(), osc::OscCalcPMNS_CPT::P(), osc::_OscCalcPMNS< T >::P(), osc::_OscCalcPMNSOpt< T >::P(), osc::OscCalcPMNS_CPT::SetdCP(), osc::OscCalcGeneral::SetdCP(), osc::_OscCalcPMNS< T >::SetdCP(), osc::_OscCalcPMNSOpt< T >::SetdCP(), osc::OscCalc::SetdCP(), osc::analytic::_OscCalc< T >::SetdCP(), and osc::OscCalc::UpdateEDep().
|
protectedinherited |
Definition at line 114 of file IOscCalc.h.
Referenced by osc::OscCalc::OscCalc(), osc::OscCalcPMNS_CPT::P(), osc::_OscCalcPMNS< T >::P(), osc::_OscCalcPMNSOpt< T >::P(), osc::OscCalcGeneral::P(), osc::OscCalcGeneral::SetDmsq21(), osc::OscCalcPMNS_CPT::SetDmsq21(), osc::_OscCalcPMNS< T >::SetDmsq21(), osc::_OscCalcPMNSOpt< T >::SetDmsq21(), osc::OscCalc::SetDmsq21(), osc::analytic::_OscCalc< T >::SetDmsq21(), osc::analytic::SolveCubic(), and osc::OscCalc::UpdateBasic().
|
protectedinherited |
Definition at line 115 of file IOscCalc.h.
Referenced by osc::OscCalc::OscCalc(), osc::OscCalcPMNS_CPT::P(), osc::_OscCalcPMNS< T >::P(), osc::_OscCalcPMNSOpt< T >::P(), osc::OscCalcGeneral::P(), osc::OscCalcPMNS_CPT::SetDmsq32(), osc::OscCalcGeneral::SetDmsq32(), osc::_OscCalcPMNS< T >::SetDmsq32(), osc::_OscCalcPMNSOpt< T >::SetDmsq32(), osc::OscCalc::SetDmsq32(), osc::analytic::_OscCalc< T >::SetDmsq32(), osc::analytic::SolveCubic(), and osc::OscCalc::UpdateBasic().
|
protectedinherited |
Definition at line 113 of file IOscCalc.h.
Referenced by osc::analytic::_OscCalc< T >::_P(), osc::OscCalcPMNS_CPT::GetParamsHashDefaultBar(), osc::OscCalc::OscCalc(), osc::OscCalcPMNS_CPT::P(), osc::_OscCalcPMNS< T >::P(), osc::_OscCalcPMNSOpt< T >::P(), osc::OscCalcGeneral::P(), osc::OscCalcGeneral::SetL(), osc::OscCalcPMNS_CPT::SetL(), osc::_OscCalcPMNS< T >::SetL(), osc::_OscCalcPMNSOpt< T >::SetL(), osc::OscCalc::SetL(), osc::analytic::_OscCalc< T >::SetL(), and osc::OscCalc::UpdateEDep().
|
private |
Definition at line 82 of file OscCalcDMP.h.
|
protectedinherited |
Definition at line 112 of file IOscCalc.h.
Referenced by osc::analytic::_OscCalc< T >::GetParamsHash(), osc::OscCalcPMNS_CPT::GetParamsHashDefaultBar(), osc::OscCalc::OscCalc(), osc::OscCalcPMNS_CPT::P(), osc::_OscCalcPMNS< T >::P(), osc::_OscCalcPMNSOpt< T >::P(), osc::OscCalcGeneral::P(), osc::OscCalcGeneral::SetRho(), osc::OscCalcPMNS_CPT::SetRho(), osc::_OscCalcPMNS< T >::SetRho(), osc::_OscCalcPMNSOpt< T >::SetRho(), osc::OscCalc::SetRho(), osc::analytic::_OscCalc< T >::SetRho(), and osc::OscCalc::UpdateBasic().
|
protectedinherited |
Definition at line 116 of file IOscCalc.h.
Referenced by osc::analytic::_OscCalc< T >::_P(), osc::OscCalc::OscCalc(), osc::OscCalcPMNS_CPT::P(), osc::_OscCalcPMNS< T >::P(), osc::_OscCalcPMNSOpt< T >::P(), osc::OscCalcPMNS_CPT::SetTh12(), osc::OscCalcGeneral::SetTh12(), osc::_OscCalcPMNS< T >::SetTh12(), osc::_OscCalcPMNSOpt< T >::SetTh12(), osc::OscCalc::SetTh12(), osc::analytic::_OscCalc< T >::SetTh12(), and osc::OscCalc::UpdateBasic().
|
protectedinherited |
Definition at line 117 of file IOscCalc.h.
Referenced by osc::analytic::_OscCalc< T >::_P(), osc::OscCalc::OscCalc(), osc::OscCalcPMNS_CPT::P(), osc::_OscCalcPMNS< T >::P(), osc::_OscCalcPMNSOpt< T >::P(), osc::OscCalcPMNS_CPT::SetTh13(), osc::OscCalcGeneral::SetTh13(), osc::_OscCalcPMNS< T >::SetTh13(), osc::_OscCalcPMNSOpt< T >::SetTh13(), osc::OscCalc::SetTh13(), osc::analytic::_OscCalc< T >::SetTh13(), and osc::OscCalc::UpdateBasic().
|
protectedinherited |
Definition at line 118 of file IOscCalc.h.
Referenced by osc::analytic::_OscCalc< T >::_P(), osc::OscCalc::OscCalc(), osc::OscCalcPMNS_CPT::P(), osc::_OscCalcPMNS< T >::P(), osc::_OscCalcPMNSOpt< T >::P(), osc::OscCalcPMNS_CPT::SetTh23(), osc::OscCalcGeneral::SetTh23(), osc::_OscCalcPMNS< T >::SetTh23(), osc::_OscCalcPMNSOpt< T >::SetTh23(), osc::OscCalc::SetTh23(), osc::analytic::_OscCalc< T >::SetTh23(), and osc::OscCalc::UpdateBasic().
|
private |
Definition at line 74 of file OscCalcDMP.h.
Referenced by std_candles.StdCandlesPlotter::IsMC(), run_unfold_ppfx_multiprocess.Consumer::run(), run_unfold_systs_multiprocess.Consumer::run(), and run_unfold_genie_multiprocess.Consumer::run().