Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
osc::OscCalcCPT Class Referenceabstract

#include "/cvmfs/nova.opensciencegrid.org/externals/osclib/v00.12/src/OscLib/OscCalcCPT.h"

Inheritance diagram for osc::OscCalcCPT:
osc::_IOscCalcAdjustable< T > osc::_IOscCalc< T >

Public Member Functions

 OscCalcCPT ()
 default, uses OscCalcPMNSOpt for sub-calculators More...
 
 OscCalcCPT (IOscCalcAdjustable *calc, IOscCalcAdjustable *barcalc, SDMap sigdel={})
 
 ~OscCalcCPT () override
 
IOscCalcAdjustableCopy () const override
 
double P (int flavBefore, int flavAfter, double E) override
 E in GeV; flavors as PDG codes (so, neg==>antinu) More...
 
void SetL (double L) override
 
void SetRho (double rho) override
 
void SetDmsq21 (const double &dmsq21) override
 
void SetDmsq32 (const double &dmsq32) override
 
void SetTh12 (const double &th12) override
 
void SetTh13 (const double &th13) override
 
void SetTh23 (const double &th23) override
 
void SetdCP (const double &dCP) override
 
virtual void SetL (double, ENuSign)
 
virtual void SetRho (double, ENuSign)
 
virtual void SetDmsq21 (double, ENuSign)
 
virtual void SetDmsq32 (double, ENuSign)
 
virtual void SetTh12 (double, ENuSign)
 
virtual void SetTh13 (double, ENuSign)
 
virtual void SetTh23 (double, ENuSign)
 
virtual void SetdCP (double, ENuSign)
 
double GetL () const override
 
double GetRho () const override
 
double GetDmsq21 () const override
 
double GetDmsq32 () const override
 
double GetTh12 () const override
 
double GetTh13 () const override
 
double GetTh23 () const override
 
double GetdCP () const override
 
virtual double GetL (ENuSign) const
 
virtual double GetRho (ENuSign) const
 
virtual double GetDmsq21 (ENuSign) const
 
virtual double GetDmsq32 (ENuSign) const
 
virtual double GetTh12 (ENuSign) const
 
virtual double GetTh13 (ENuSign) const
 
virtual double GetTh23 (ENuSign) const
 
virtual double GetdCP (ENuSign) const
 
TMD5 * GetParamsHash () const override
 Use to check two calculators are in the same state. More...
 
virtual void SetDmsq21 (const T &dmsq21)=0
 
virtual void SetDmsq32 (const T &dmsq32)=0
 
virtual void SetTh12 (const T &th12)=0
 
virtual void SetTh13 (const T &th13)=0
 
virtual void SetTh23 (const T &th23)=0
 
virtual void SetdCP (const T &dCP)=0
 
virtual void InvalidateCache ()
 Invalidate any caching used internally by the calculator. More...
 
virtual Eigen::Array< T, Eigen::Dynamic, 1 > P (int flavBefore, int flavAfter, const std::vector< double > &E)
 
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

IOscCalcAdjustablefCalc
 
IOscCalcAdjustablefBarCalc
 
SDMap fSigDel
 
double fRho
 
double fL
 
T fDmsq21
 
T fDmsq32
 
T fTh12
 
T fTh13
 
T fTh23
 
T fdCP
 

Friends

class ana::SigmaDelta
 

Detailed Description

Oscillation calculator implementing CPT-asymmetry. Holds two oscillation calculators as data members: one for neutrinos, the other for anti-neutrinos. Interface allows changing oscillation parameter for each calculator independently or simultaneously.

Definition at line 39 of file OscCalcCPT.h.

Constructor & Destructor Documentation

osc::OscCalcCPT::OscCalcCPT ( )

default, uses OscCalcPMNSOpt for sub-calculators

Definition at line 9 of file OscCalcCPT.cxx.

References fBarCalc, fCalc, and fSigDel.

Referenced by Copy().

10  {
11  fCalc = new OscCalcPMNSOpt;
13  fSigDel = {};
14  }
_OscCalcPMNSOpt< double > OscCalcPMNSOpt
IOscCalcAdjustable * fCalc
Definition: OscCalcCPT.h:114
IOscCalcAdjustable * fBarCalc
Definition: OscCalcCPT.h:115
osc::OscCalcCPT::OscCalcCPT ( IOscCalcAdjustable calc,
IOscCalcAdjustable barcalc,
SDMap  sigdel = {} 
)

can pass custom calcs, OscCalcCPT will then own them and delete them when it is destroyed

Definition at line 16 of file OscCalcCPT.cxx.

References calc, fBarCalc, fCalc, and fSigDel.

19  {
20  fCalc = calc;
21  fBarCalc = barcalc;
22  fSigDel = sigdel;
23  }
osc::OscCalcDumb calc
IOscCalcAdjustable * fCalc
Definition: OscCalcCPT.h:114
IOscCalcAdjustable * fBarCalc
Definition: OscCalcCPT.h:115
osc::OscCalcCPT::~OscCalcCPT ( )
override

Definition at line 25 of file OscCalcCPT.cxx.

References fBarCalc, and fCalc.

26  {
27  delete fCalc;
28  delete fBarCalc;
29  }
IOscCalcAdjustable * fCalc
Definition: OscCalcCPT.h:114
IOscCalcAdjustable * fBarCalc
Definition: OscCalcCPT.h:115

Member Function Documentation

IOscCalcAdjustable * osc::OscCalcCPT::Copy ( ) const
overridevirtual

Implements osc::_IOscCalcAdjustable< T >.

Definition at line 31 of file OscCalcCPT.cxx.

References osc::_IOscCalcAdjustable< T >::Copy(), fBarCalc, fCalc, fSigDel, and OscCalcCPT().

32  {
33  return new OscCalcCPT(fCalc->Copy(),
34  fBarCalc->Copy(),
35  fSigDel);
36  }
virtual _IOscCalcAdjustable< T > * Copy() const =0
IOscCalcAdjustable * fCalc
Definition: OscCalcCPT.h:114
OscCalcCPT()
default, uses OscCalcPMNSOpt for sub-calculators
Definition: OscCalcCPT.cxx:9
IOscCalcAdjustable * fBarCalc
Definition: OscCalcCPT.h:115
double osc::OscCalcCPT::GetdCP ( ) const
overridevirtual

Reimplemented from osc::_IOscCalcAdjustable< T >.

Definition at line 144 of file OscCalcCPT.cxx.

References ana::assert(), dCP, osc::kNu, and osc::kNuBar.

145  {
146  double dCP = GetdCP(ENuSign::kNu);
147  assert( dCP == GetdCP(ENuSign::kNuBar) );
148  return dCP;
149  }
double GetdCP() const override
Definition: OscCalcCPT.cxx:144
double dCP
assert(nhit_max >=nhit_nbins)
double osc::OscCalcCPT::GetdCP ( ENuSign  sign) const
virtual

Definition at line 194 of file OscCalcCPT.cxx.

References fBarCalc, fCalc, osc::_IOscCalcAdjustable< T >::GetdCP(), and osc::kNu.

195  {
196  return ( (sign==ENuSign::kNu) ? fCalc->GetdCP()
197  : fBarCalc->GetdCP() );
198  }
IOscCalcAdjustable * fCalc
Definition: OscCalcCPT.h:114
virtual T GetdCP() const
Definition: IOscCalc.h:95
IOscCalcAdjustable * fBarCalc
Definition: OscCalcCPT.h:115
def sign(x)
Definition: canMan.py:197
double osc::OscCalcCPT::GetDmsq21 ( ) const
overridevirtual

Reimplemented from osc::_IOscCalcAdjustable< T >.

Definition at line 109 of file OscCalcCPT.cxx.

References ana::assert(), osc::kNu, and osc::kNuBar.

Referenced by ana::SolarConstraintsNu::Dmsq21(), ana::SolarConstraintsNubar::Dmsq21(), and ana::FitDmSq21CPT::GetValue().

110  {
111  double dmsq21 = GetDmsq21(ENuSign::kNu);
112  assert( dmsq21 == GetDmsq21(ENuSign::kNuBar) );
113  return dmsq21;
114  }
double GetDmsq21() const override
Definition: OscCalcCPT.cxx:109
assert(nhit_max >=nhit_nbins)
double osc::OscCalcCPT::GetDmsq21 ( ENuSign  sign) const
virtual

Definition at line 164 of file OscCalcCPT.cxx.

References fBarCalc, fCalc, osc::_IOscCalcAdjustable< T >::GetDmsq21(), and osc::kNu.

165  {
166  return ( (sign==ENuSign::kNu) ? fCalc->GetDmsq21()
167  : fBarCalc->GetDmsq21() );
168  }
IOscCalcAdjustable * fCalc
Definition: OscCalcCPT.h:114
virtual T GetDmsq21() const
Definition: IOscCalc.h:90
IOscCalcAdjustable * fBarCalc
Definition: OscCalcCPT.h:115
def sign(x)
Definition: canMan.py:197
double osc::OscCalcCPT::GetDmsq32 ( ) const
overridevirtual

Reimplemented from osc::_IOscCalcAdjustable< T >.

Definition at line 116 of file OscCalcCPT.cxx.

References ana::assert(), dmsq32, osc::kNu, and osc::kNuBar.

Referenced by ana::FitDmSq32CPT::GetValue(), and ana::FitDmSq32ScaledCPT::GetValue().

117  {
118  double dmsq32 = GetDmsq32(ENuSign::kNu);
119  assert( dmsq32 == GetDmsq32(ENuSign::kNuBar) );
120  return dmsq32;
121  }
double GetDmsq32() const override
Definition: OscCalcCPT.cxx:116
double dmsq32
assert(nhit_max >=nhit_nbins)
double osc::OscCalcCPT::GetDmsq32 ( ENuSign  sign) const
virtual

Definition at line 170 of file OscCalcCPT.cxx.

References fBarCalc, fCalc, osc::_IOscCalcAdjustable< T >::GetDmsq32(), and osc::kNu.

171  {
172  return ( (sign==ENuSign::kNu) ? fCalc->GetDmsq32()
173  : fBarCalc->GetDmsq32() );
174  }
IOscCalcAdjustable * fCalc
Definition: OscCalcCPT.h:114
virtual T GetDmsq32() const
Definition: IOscCalc.h:91
IOscCalcAdjustable * fBarCalc
Definition: OscCalcCPT.h:115
def sign(x)
Definition: canMan.py:197
double osc::OscCalcCPT::GetL ( ) const
overridevirtual

Reimplemented from osc::_IOscCalcAdjustable< T >.

Definition at line 95 of file OscCalcCPT.cxx.

References ana::assert(), osc::kNu, osc::kNuBar, and CLHEP::L.

96  {
97  double L = GetL(ENuSign::kNu);
98  assert( L == GetL(ENuSign::kNuBar) );
99  return L;
100  }
double GetL() const override
Definition: OscCalcCPT.cxx:95
static constexpr double L
assert(nhit_max >=nhit_nbins)
double osc::OscCalcCPT::GetL ( ENuSign  sign) const
virtual

Definition at line 152 of file OscCalcCPT.cxx.

References fBarCalc, fCalc, osc::_IOscCalcAdjustable< T >::GetL(), and osc::kNu.

153  {
154  return ( (sign==ENuSign::kNu) ? fCalc->GetL()
155  : fBarCalc->GetL() );
156  }
virtual double GetL() const
Definition: IOscCalc.h:88
IOscCalcAdjustable * fCalc
Definition: OscCalcCPT.h:114
IOscCalcAdjustable * fBarCalc
Definition: OscCalcCPT.h:115
def sign(x)
Definition: canMan.py:197
TMD5 * osc::OscCalcCPT::GetParamsHash ( ) const
overridevirtual

Use to check two calculators are in the same state.

Returns
Null means not implemented for this calculator

Reimplemented from osc::_IOscCalc< T >.

Definition at line 201 of file OscCalcCPT.cxx.

References fBarCalc, fCalc, osc::_IOscCalc< T >::GetParamsHash(), samweb_client.utility::hash, and runNovaSAM::ret.

202  {
203  TMD5* hash = fCalc->GetParamsHash();
204  TMD5* barhash = fBarCalc->GetParamsHash();
205 
206  // don't provide hash unless both sub-cals do
207  if ( !(hash && barhash) )
208  {
209  delete hash;
210  delete barhash;
211  return 0;
212  }
213 
214  TMD5* ret = new TMD5;
215 
216  //hash together sub-hashes
217  ret->Update( (unsigned char*)hash->AsString(), 16);
218  ret->Update( (unsigned char*)barhash->AsString(), 16);
219 
220  delete hash;
221  delete barhash;
222 
223  //also hash in class name in case another CPT class has same idea
224  ret->Update( (unsigned char*)"OscCalcCPT", 16);
225 
226  ret->Final();
227  return ret;
228  }
IOscCalcAdjustable * fCalc
Definition: OscCalcCPT.h:114
virtual TMD5 * GetParamsHash() const
Use to check two calculators are in the same state.
Definition: IOscCalc.h:39
IOscCalcAdjustable * fBarCalc
Definition: OscCalcCPT.h:115
template<typename T >
TMD5 * osc::_IOscCalcAdjustable< T >::GetParamsHashDefault ( const std::string txt) const
protectedinherited

This is only a safe implementation if your calculator only depends on these eight parameters.

Parameters
txtA string to uniquely identify your calculator class

Definition at line 47 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().

48  {
49  TMD5* ret = new TMD5;
50  ret->Update((unsigned char*)txt.c_str(), txt.size());
51  const int kNumParams = 8;
52  T buf[kNumParams] = {fRho, fL, fDmsq21, fDmsq32,
53  fTh12, fTh13, fTh23, fdCP};
54  ret->Update((unsigned char*)buf, sizeof(T)*kNumParams);
55  ret->Final();
56  return ret;
57  }
double T
Definition: Xdiff_gwt.C:5
double osc::OscCalcCPT::GetRho ( ) const
overridevirtual

Reimplemented from osc::_IOscCalcAdjustable< T >.

Definition at line 102 of file OscCalcCPT.cxx.

References ana::assert(), osc::kNu, and osc::kNuBar.

103  {
104  double rho = GetRho(ENuSign::kNu);
105  assert( rho == GetRho(ENuSign::kNuBar) );
106  return rho;
107  }
double GetRho() const override
Definition: OscCalcCPT.cxx:102
assert(nhit_max >=nhit_nbins)
double osc::OscCalcCPT::GetRho ( ENuSign  sign) const
virtual

Definition at line 158 of file OscCalcCPT.cxx.

References fBarCalc, fCalc, osc::_IOscCalcAdjustable< T >::GetRho(), and osc::kNu.

159  {
160  return ( (sign==ENuSign::kNu) ? fCalc->GetRho()
161  : fBarCalc->GetRho() );
162  }
IOscCalcAdjustable * fCalc
Definition: OscCalcCPT.h:114
virtual double GetRho() const
Definition: IOscCalc.h:89
IOscCalcAdjustable * fBarCalc
Definition: OscCalcCPT.h:115
def sign(x)
Definition: canMan.py:197
double osc::OscCalcCPT::GetTh12 ( ) const
overridevirtual

Reimplemented from osc::_IOscCalcAdjustable< T >.

Definition at line 123 of file OscCalcCPT.cxx.

References ana::assert(), osc::kNu, osc::kNuBar, and th12.

Referenced by ana::SolarConstraintsNu::Th12(), and ana::SolarConstraintsNubar::Th12().

124  {
125  double th12 = GetTh12(ENuSign::kNu);
126  assert( th12 == GetTh12(ENuSign::kNuBar) );
127  return th12;
128  }
double th12
Definition: runWimpSim.h:98
assert(nhit_max >=nhit_nbins)
double GetTh12() const override
Definition: OscCalcCPT.cxx:123
double osc::OscCalcCPT::GetTh12 ( ENuSign  sign) const
virtual

Definition at line 176 of file OscCalcCPT.cxx.

References fBarCalc, fCalc, osc::_IOscCalcAdjustable< T >::GetTh12(), and osc::kNu.

177  {
178  return ( (sign==ENuSign::kNu) ? fCalc->GetTh12()
179  : fBarCalc->GetTh12() );
180  }
IOscCalcAdjustable * fCalc
Definition: OscCalcCPT.h:114
virtual T GetTh12() const
Definition: IOscCalc.h:92
IOscCalcAdjustable * fBarCalc
Definition: OscCalcCPT.h:115
def sign(x)
Definition: canMan.py:197
double osc::OscCalcCPT::GetTh13 ( ) const
overridevirtual

Reimplemented from osc::_IOscCalcAdjustable< T >.

Definition at line 130 of file OscCalcCPT.cxx.

References ana::assert(), osc::kNu, osc::kNuBar, and th13.

131  {
132  double th13 = GetTh13(ENuSign::kNu);
133  assert( th13 == GetTh13(ENuSign::kNuBar) );
134  return th13;
135  }
double GetTh13() const override
Definition: OscCalcCPT.cxx:130
assert(nhit_max >=nhit_nbins)
double th13
Definition: runWimpSim.h:98
double osc::OscCalcCPT::GetTh13 ( ENuSign  sign) const
virtual

Definition at line 182 of file OscCalcCPT.cxx.

References fBarCalc, fCalc, osc::_IOscCalcAdjustable< T >::GetTh13(), and osc::kNu.

183  {
184  return ( (sign==ENuSign::kNu) ? fCalc->GetTh13()
185  : fBarCalc->GetTh13() );
186  }
IOscCalcAdjustable * fCalc
Definition: OscCalcCPT.h:114
virtual T GetTh13() const
Definition: IOscCalc.h:93
IOscCalcAdjustable * fBarCalc
Definition: OscCalcCPT.h:115
def sign(x)
Definition: canMan.py:197
double osc::OscCalcCPT::GetTh23 ( ) const
overridevirtual

Reimplemented from osc::_IOscCalcAdjustable< T >.

Definition at line 137 of file OscCalcCPT.cxx.

References ana::assert(), osc::kNu, osc::kNuBar, and th23.

138  {
139  double th23 = GetTh23(ENuSign::kNu);
140  assert( th23 == GetTh23(ENuSign::kNuBar) );
141  return th23;
142  }
double th23
Definition: runWimpSim.h:98
double GetTh23() const override
Definition: OscCalcCPT.cxx:137
assert(nhit_max >=nhit_nbins)
double osc::OscCalcCPT::GetTh23 ( ENuSign  sign) const
virtual

Definition at line 188 of file OscCalcCPT.cxx.

References fBarCalc, fCalc, osc::_IOscCalcAdjustable< T >::GetTh23(), and osc::kNu.

189  {
190  return ( (sign==ENuSign::kNu) ? fCalc->GetTh23()
191  : fBarCalc->GetTh23() );
192  }
virtual T GetTh23() const
Definition: IOscCalc.h:94
IOscCalcAdjustable * fCalc
Definition: OscCalcCPT.h:114
IOscCalcAdjustable * fBarCalc
Definition: OscCalcCPT.h:115
def sign(x)
Definition: canMan.py:197
template<typename T>
virtual void osc::_IOscCalcAdjustable< T >::InvalidateCache ( )
inlinevirtualinherited

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 in osc::_OscCalcDMP< T >.

Definition at line 102 of file IOscCalc.h.

102 {};
template<class T >
Eigen::Array< T, Eigen::Dynamic, 1 > osc::_IOscCalc< T >::P ( int  flavBefore,
int  flavAfter,
const std::vector< double > &  E 
)
virtualinherited

Default implementation forwards to non-vector version using a simple loop. Override if your calculator has a more efficient implementation.

Reimplemented in osc::analytic::_OscCalc< T >, osc::OscCalcPMNSOptEigen, and osc::_OscCalcDMP< T >.

Definition at line 25 of file IOscCalc.cxx.

References MECModelEnuComparisons::i, osc::_IOscCalc< T >::P(), P, runNovaSAM::ret, and submit_hadd::u.

26  {
27  Eigen::Matrix<T,Eigen::Dynamic,1> ret(E.size());
28  for(auto i = 0u; i < E.size(); i++) {
29  ret(i) = this->P(flavBefore, flavAfter, E[i]);
30  }
31  return ret.array().isNaN().select(0, ret);
32  }
Float_t E
Definition: plot.C:20
virtual T P(int flavBefore, int flavAfter, double E)=0
E in GeV; flavors as PDG codes (so, neg==>antinu)
template<class T >
Eigen::Array< T, Eigen::Dynamic, 1 > osc::_IOscCalc< T >::P ( int  flavBefore,
int  flavAfter,
const Eigen::ArrayXd &  E 
)
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 35 of file IOscCalc.cxx.

References P.

36  {
37  return P(flavBefore, flavAfter, std::vector<double>(&E[0], &E[0]+E.size()));
38  }
Float_t E
Definition: plot.C:20
virtual T P(int flavBefore, int flavAfter, double E)=0
E in GeV; flavors as PDG codes (so, neg==>antinu)
double osc::OscCalcCPT::P ( int  flavBefore,
int  flavAfter,
double  E 
)
overridevirtual

E in GeV; flavors as PDG codes (so, neg==>antinu)

Implements osc::_IOscCalc< T >.

Definition at line 38 of file OscCalcCPT.cxx.

References ana::assert(), fBarCalc, fCalc, and osc::_IOscCalc< T >::P().

39  {
40  assert(flavBefore*flavAfter > 0); // check for matter<->anti-matter
41  return ( (flavBefore > 0) ? fCalc->P(flavBefore, flavAfter, E)
42  : fBarCalc->P(flavBefore, flavAfter, E) );
43  }
IOscCalcAdjustable * fCalc
Definition: OscCalcCPT.h:114
Float_t E
Definition: plot.C:20
virtual T P(int flavBefore, int flavAfter, double E)=0
E in GeV; flavors as PDG codes (so, neg==>antinu)
assert(nhit_max >=nhit_nbins)
IOscCalcAdjustable * fBarCalc
Definition: OscCalcCPT.h:115
void osc::OscCalcCPT::SetdCP ( const double &  dCP)
inlineoverride

Definition at line 76 of file OscCalcCPT.h.

References ana::Sign::kNu, SetdCP(), and novaddt::SetRho().

Referenced by SetdCP().

double dCP
void SetdCP(const double &dCP) override
Definition: OscCalcCPT.h:76
template<typename T>
virtual void osc::_IOscCalcAdjustable< T >::SetdCP ( const T dCP)
pure virtualinherited
void osc::OscCalcCPT::SetdCP ( double  dCP,
ENuSign  sign 
)
virtual

Definition at line 88 of file OscCalcCPT.cxx.

References fBarCalc, fCalc, osc::kNu, and osc::_IOscCalcAdjustable< T >::SetdCP().

89  {
91  fBarCalc->SetdCP(dCP) ;
92  }
IOscCalcAdjustable * fCalc
Definition: OscCalcCPT.h:114
double dCP
IOscCalcAdjustable * fBarCalc
Definition: OscCalcCPT.h:115
def sign(x)
Definition: canMan.py:197
virtual void SetdCP(const T &dCP)=0
void osc::OscCalcCPT::SetDmsq21 ( const double &  dmsq21)
inlineoverride

Definition at line 66 of file OscCalcCPT.h.

References ana::Sign::kNu, and SetDmsq21().

Referenced by demo_CPT(), SetDmsq21(), and ana::FitDmSq21CPT::SetValue().

66  {SetDmsq21(dmsq21,ENuSign::kNu);
67  SetDmsq21(dmsq21,ENuSign::kNuBar);}
void SetDmsq21(const double &dmsq21) override
Definition: OscCalcCPT.h:66
template<typename T>
virtual void osc::_IOscCalcAdjustable< T >::SetDmsq21 ( const T dmsq21)
pure virtualinherited
void osc::OscCalcCPT::SetDmsq21 ( double  dmsq21,
ENuSign  sign 
)
virtual

Definition at line 58 of file OscCalcCPT.cxx.

References fBarCalc, fCalc, osc::kNu, and osc::_IOscCalcAdjustable< T >::SetDmsq21().

59  {
60  (sign==ENuSign::kNu) ? fCalc->SetDmsq21(dmsq21) :
61  fBarCalc->SetDmsq21(dmsq21) ;
62  }
virtual void SetDmsq21(const T &dmsq21)=0
IOscCalcAdjustable * fCalc
Definition: OscCalcCPT.h:114
IOscCalcAdjustable * fBarCalc
Definition: OscCalcCPT.h:115
def sign(x)
Definition: canMan.py:197
void osc::OscCalcCPT::SetDmsq32 ( const double &  dmsq32)
inlineoverride
template<typename T>
virtual void osc::_IOscCalcAdjustable< T >::SetDmsq32 ( const T dmsq32)
pure virtualinherited

Implemented in osc::analytic::_OscCalc< T >, osc::OscCalcPMNSOptEigen, osc::_OscCalcDMP< T >, osc::OscCalc, osc::_OscCalcPMNSOpt< T >, osc::_OscCalcPMNS< T >, osc::OscCalcPMNS_NSI, and osc::OscCalcGeneral.

Referenced by CAF_makeCAFSensitivities_for_FNEX(), CalcRWithSystsNus17(), ComparePredictions(), osc::CopyParams(), default_calc(), demoFitContours(), demoFitSlices(), demoPlotSystBands(), genie_contours(), getContProf(), getContProf_Sensitivity(), getHists_FNEX(), joint_fit_2017_contours(), joint_fit_2017_slices(), joint_fit_2018_contours(), joint_fit_2018_slices(), joint_fit_2019_bestfit(), joint_fit_2019_contours(), joint_fit_2019_slices(), joint_fit_future_contour_univ(), jointsensitivity(), ana::LoadFrom< osc::IOscCalcAdjustable >(), make_extrap_figure(), make_extrap_figure_hists(), make_prediction_extrap(), make_prediction_noextrap(), make_prediction_tables(), make_surfprof(), make_surfprof_sensitivity(), MakeCAFSensitivities_for_FNEX(), makePredTables(), monoprob(), plot_datamcpred(), plot_nue_xsec_pred(), plot_oscprob(), plot_predictions(), plotDataPred(), plotDataPred_SplitCanvas(), Plotting_DataAndPrediction(), PredRatioToNom(), resetCalc(), ResetCalc(), mcmc_ana::ResetCalculator(), test::ResetCalculator(), mcmc::ResetCalculator(), ana::ResetOscCalcToDefault(), ana::ResetOscCalcToDefaultIH(), ResetOscCalcToMyDefault(), ana::ResetOscCalcToTemplate(), RestartCalculator(), run_joint_fit_2020_bestfit(), run_joint_fit_2020_contours(), run_joint_fit_2020_slices(), saveFDMCHists(), sensitivity2018(), sensitivity2020(), SetDmsq32(), SetHierarchy(), SetOscillationParameters(), cmf::ShifterAndWeighter::SetOscillationVals(), ana::FitDmSq32::SetValue(), ana::FitDmSq32Scaled::SetValue(), ana::FitDmSq32NormalHierarchy::SetValue(), ana::FitDmSq32ScaledNH::SetValue(), ana::FitDmSq32ScaledIH::SetValue(), ana::FitDmSq32InvertedHierarchy::SetValue(), systematics_extrap_comp_from_pred_interp(), systematics_summary_from_pred_interp(), Tutorial2019FitContours(), and Tutorial2019FitSlices().

void osc::OscCalcCPT::SetDmsq32 ( double  dmsq32,
ENuSign  sign 
)
virtual

Definition at line 64 of file OscCalcCPT.cxx.

References fBarCalc, fCalc, osc::kNu, and osc::_IOscCalcAdjustable< T >::SetDmsq32().

65  {
68  }
virtual void SetDmsq32(const T &dmsq32)=0
IOscCalcAdjustable * fCalc
Definition: OscCalcCPT.h:114
double dmsq32
IOscCalcAdjustable * fBarCalc
Definition: OscCalcCPT.h:115
def sign(x)
Definition: canMan.py:197
void osc::OscCalcCPT::SetL ( double  L)
inlineoverridevirtual

Implements osc::_IOscCalcAdjustable< T >.

Definition at line 62 of file OscCalcCPT.h.

References ana::Sign::kNu, and SetL().

Referenced by demo_CPT(), and SetL().

62  {SetL(L, ENuSign::kNu);
static constexpr double L
void SetL(double L) override
Definition: OscCalcCPT.h:62
void osc::OscCalcCPT::SetL ( double  L,
ENuSign  sign 
)
virtual

Definition at line 46 of file OscCalcCPT.cxx.

References fBarCalc, fCalc, osc::kNu, and osc::_IOscCalcAdjustable< T >::SetL().

47  {
48  (sign==ENuSign::kNu) ? fCalc->SetL(L) :
49  fBarCalc->SetL(L) ;
50  }
virtual void SetL(double L)=0
IOscCalcAdjustable * fCalc
Definition: OscCalcCPT.h:114
static constexpr double L
IOscCalcAdjustable * fBarCalc
Definition: OscCalcCPT.h:115
def sign(x)
Definition: canMan.py:197
void osc::OscCalcCPT::SetRho ( double  rho)
inlineoverridevirtual

Implements osc::_IOscCalcAdjustable< T >.

Definition at line 64 of file OscCalcCPT.h.

References ana::Sign::kNu, SetRho(), and novaddt::SetRho().

Referenced by demo_CPT(), and SetRho().

64  {SetRho(rho, ENuSign::kNu);
65  SetRho(rho, ENuSign::kNuBar);}
void SetRho(double rho) override
Definition: OscCalcCPT.h:64
void osc::OscCalcCPT::SetRho ( double  rho,
ENuSign  sign 
)
virtual

Definition at line 52 of file OscCalcCPT.cxx.

References fBarCalc, fCalc, osc::kNu, and osc::_IOscCalcAdjustable< T >::SetRho().

53  {
54  (sign==ENuSign::kNu) ? fCalc->SetRho(rho) :
55  fBarCalc->SetRho(rho) ;
56  }
IOscCalcAdjustable * fCalc
Definition: OscCalcCPT.h:114
virtual void SetRho(double rho)=0
IOscCalcAdjustable * fBarCalc
Definition: OscCalcCPT.h:115
def sign(x)
Definition: canMan.py:197
void osc::OscCalcCPT::SetTh12 ( const double &  th12)
inlineoverride

Definition at line 70 of file OscCalcCPT.h.

References ana::Sign::kNu, and SetTh12().

Referenced by demo_CPT(), SetTh12(), and ana::FitSinSq2Theta12CPT::SetValue().

double th12
Definition: runWimpSim.h:98
void SetTh12(const double &th12) override
Definition: OscCalcCPT.h:70
template<typename T>
virtual void osc::_IOscCalcAdjustable< T >::SetTh12 ( const T th12)
pure virtualinherited
void osc::OscCalcCPT::SetTh12 ( double  th12,
ENuSign  sign 
)
virtual

Definition at line 70 of file OscCalcCPT.cxx.

References fBarCalc, fCalc, osc::kNu, and osc::_IOscCalcAdjustable< T >::SetTh12().

71  {
74  }
double th12
Definition: runWimpSim.h:98
IOscCalcAdjustable * fCalc
Definition: OscCalcCPT.h:114
IOscCalcAdjustable * fBarCalc
Definition: OscCalcCPT.h:115
def sign(x)
Definition: canMan.py:197
virtual void SetTh12(const T &th12)=0
void osc::OscCalcCPT::SetTh13 ( const double &  th13)
inlineoverride

Definition at line 72 of file OscCalcCPT.h.

References ana::Sign::kNu, and SetTh13().

Referenced by demo_CPT(), SetTh13(), and ana::FitSinSq2Theta13CPT::SetValue().

void SetTh13(const double &th13) override
Definition: OscCalcCPT.h:72
double th13
Definition: runWimpSim.h:98
template<typename T>
virtual void osc::_IOscCalcAdjustable< T >::SetTh13 ( const T th13)
pure virtualinherited
void osc::OscCalcCPT::SetTh13 ( double  th13,
ENuSign  sign 
)
virtual

Definition at line 76 of file OscCalcCPT.cxx.

References fBarCalc, fCalc, osc::kNu, and osc::_IOscCalcAdjustable< T >::SetTh13().

77  {
80  }
virtual void SetTh13(const T &th13)=0
IOscCalcAdjustable * fCalc
Definition: OscCalcCPT.h:114
IOscCalcAdjustable * fBarCalc
Definition: OscCalcCPT.h:115
double th13
Definition: runWimpSim.h:98
def sign(x)
Definition: canMan.py:197
void osc::OscCalcCPT::SetTh23 ( const double &  th23)
inlineoverride
template<typename T>
virtual void osc::_IOscCalcAdjustable< T >::SetTh23 ( const T th23)
pure virtualinherited

Implemented in osc::analytic::_OscCalc< T >, osc::OscCalcPMNSOptEigen, osc::_OscCalcDMP< T >, osc::OscCalc, osc::_OscCalcPMNSOpt< T >, osc::OscCalcGeneral, osc::_OscCalcPMNS< T >, and osc::OscCalcPMNS_NSI.

Referenced by CalcRWithSystsNus17(), ComparePredictions(), osc::CopyParams(), default_calc(), demoPlotSystBands(), genie_contours(), getContProf(), getContProf_Sensitivity(), joint_fit_2018_slices(), joint_fit_2019_bestfit(), joint_fit_2019_slices(), jointsensitivity(), ana::LoadFrom< osc::IOscCalcAdjustable >(), make_extrap_figure(), make_extrap_figure_hists(), make_prediction_extrap(), make_prediction_noextrap(), make_prediction_tables(), make_surfprof(), make_surfprof_sensitivity(), makePredTables(), monoprob(), plot_datamcpred(), plot_nue_xsec_pred(), plot_oscprob(), plot_predictions(), plotDataPred(), plotDataPred_SplitCanvas(), Plotting_DataAndPrediction(), PredRatioToNom(), resetCalc(), ResetCalc(), mcmc_ana::ResetCalculator(), test::ResetCalculator(), mcmc::ResetCalculator(), ana::ResetOscCalcToDefault(), ResetOscCalcToMyDefault(), ana::ResetOscCalcToTemplate(), RestartCalculator(), run_joint_fit_2020_bestfit(), saveFDMCHists(), sensitivity2018(), sensitivity2020(), SetOscillationParameters(), cmf::ShifterAndWeighter::SetOscillationVals(), SetTh23(), ana::FitSinSqTheta23::SetValue(), FitSinSqTheta23UO::SetValue(), ana::FitSinSqTheta23UpperOctant::SetValue(), FitSinSqTheta23LO::SetValue(), ana::FitSinSqTheta23LowerOctant::SetValue(), ana::FitSinSq2Theta23::SetValue(), FitSinSqTheta23MaxMix::SetValue(), FitSinSqTheta23LowerOctant::SetValue(), FitSinSqTheta23UpperOctant::SetValue(), systematics_extrap_comp_from_pred_interp(), and systematics_summary_from_pred_interp().

void osc::OscCalcCPT::SetTh23 ( double  th23,
ENuSign  sign 
)
virtual

Definition at line 82 of file OscCalcCPT.cxx.

References fBarCalc, fCalc, osc::kNu, and osc::_IOscCalcAdjustable< T >::SetTh23().

83  {
86  }
double th23
Definition: runWimpSim.h:98
IOscCalcAdjustable * fCalc
Definition: OscCalcCPT.h:114
virtual void SetTh23(const T &th23)=0
IOscCalcAdjustable * fBarCalc
Definition: OscCalcCPT.h:115
def sign(x)
Definition: canMan.py:197

Friends And Related Function Documentation

friend class ana::SigmaDelta
friend

Definition at line 42 of file OscCalcCPT.h.

Member Data Documentation

IOscCalcAdjustable* osc::OscCalcCPT::fBarCalc
protected
IOscCalcAdjustable* osc::OscCalcCPT::fCalc
protected
template<typename T>
T osc::_IOscCalcAdjustable< T >::fdCP
protectedinherited
template<typename T>
T osc::_IOscCalcAdjustable< T >::fDmsq21
protectedinherited
template<typename T>
T osc::_IOscCalcAdjustable< T >::fDmsq32
protectedinherited
template<typename T>
double osc::_IOscCalcAdjustable< T >::fL
protectedinherited
template<typename T>
double osc::_IOscCalcAdjustable< T >::fRho
protectedinherited
SDMap osc::OscCalcCPT::fSigDel
mutableprotected
template<typename T>
T osc::_IOscCalcAdjustable< T >::fTh12
protectedinherited
template<typename T>
T osc::_IOscCalcAdjustable< T >::fTh13
protectedinherited
template<typename T>
T osc::_IOscCalcAdjustable< T >::fTh23
protectedinherited

The documentation for this class was generated from the following files: