Msdown.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013 HEPfit Collaboration
3  * All rights reserved.
4  *
5  * For the licensing terms see doc/COPYING.
6  */
7 
8 #ifndef MSDOWN_H
9 #define MSDOWN_H
10 
11 #include <ThObservable.h>
12 
13 
14 #include "SUSY.h"
15 
24 class Msdown : public ThObservable {
25 public:
26 
27  Msdown(const StandardModel& SM_i, const int ind)
28  : ThObservable(SM_i), index(ind), mySUSY(static_cast<const SUSY*> (&SM_i))
29  {
30  if (mySUSY->isModelSUSY() == false)
31  throw std::runtime_error("\nERROR: The sdown mass spectrum can only be computed in a SUSY model. Please check your observables list.\n");
32  };
33 
34  double computeThValue()
35  {
36  return (sqrt(mySUSY->getMsd2()(index)));
37  };
38 
39 private:
40  const int index;
41  const SUSY * mySUSY;
42 };
43 
44 #endif /* MSDOWN_H */
45 
const int index
Definition: Msdown.h:37
bool isModelSUSY() const
Definition: Model.h:179
gslpp::vector< double > getMsd2() const
Gets the down-type squark mass squared.
Definition: SUSY.h:332
Msdown(const StandardModel &SM_i, const int ind)
Definition: Msdown.h:27
A class for a model prediction of an observable.
Definition: ThObservable.h:22
A model class for the Standard Model.
double computeThValue()
Definition: Msdown.h:34
const SUSY * mySUSY
Definition: Msdown.h:41
A base class for SUSY models.
Definition: SUSY.h:25
A class for the down-type-squark masses.
Definition: Msdown.h:24
complex sqrt(const complex &z)