a Code for the Combination of Indirect and Direct Constraints on High Energy Physics Models Logo
Mchargino.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013 HEPfit Collaboration
3  *
4  *
5  * For the licensing terms see doc/COPYING.
6  */
7 
8 #ifndef MCHARGINO_H
9 #define MCHARGINO_H
10 
11 #include <ThObservable.h>
12 #include "SUSY.h"
13 
22 class Mchargino : public ThObservable {
23 public:
24 
25  Mchargino(const StandardModel& SM_i, const int ind)
26  : ThObservable(SM_i), index(ind), mySUSY(static_cast<const SUSY*> (&SM_i))
27  {
28  if (mySUSY->isModelSUSY() == false)
29  throw std::runtime_error("\nERROR: The chargino mass spectrum can only be computed in a SUSY model. Please check your observables list.\n");
30  };
31 
32  double computeThValue()
33  {
34  return (mySUSY->getMch()(index));
35  };
36 
37 private:
38  const int index;
39  const SUSY * mySUSY;
40 };
41 
42 #endif /* MCHARGINO_H */
43 
ThObservable.h
Mchargino::index
const int index
Definition: Mchargino.h:35
Mchargino::Mchargino
Mchargino(const StandardModel &SM_i, const int ind)
Definition: Mchargino.h:25
StandardModel
A model class for the Standard Model.
Definition: StandardModel.h:477
SUSY
A base class for SUSY models.
Definition: SUSY.h:26
SUSY::getMch
gslpp::vector< double > getMch() const
Gets the chargino masses.
Definition: SUSY.h:263
Mchargino
A class for the chargino masses.
Definition: Mchargino.h:22
Mchargino::mySUSY
const SUSY * mySUSY
Definition: Mchargino.h:39
ThObservable
A class for a model prediction of an observable.
Definition: ThObservable.h:25
Mchargino::computeThValue
double computeThValue()
Definition: Mchargino.h:32
Model::isModelSUSY
bool isModelSUSY() const
Definition: Model.h:182
SUSY.h