a Code for the Combination of Indirect and Direct Constraints on High Energy Physics Models Logo
OutputSLHAfromFH.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 OUTPUTSLHAFROMFH_H
9#define OUTPUTSLHAFROMFH_H
10
11#include <ThObservable.h>
12
13
14#include "FeynHiggsWrapper.h"
15
25public:
26
28 : ThObservable(SM_i), output(true), mySUSY(static_cast<const SUSY*> (&SM_i))
29 {
30 if (mySUSY->isModelSUSY() == false)
31 throw std::runtime_error("\nERROR: The SUSY mass spectrum can only be computed in a SUSY model. Please check your observables list.\n");
32 };
33
35 {
36 if (output) {
37 output = false;
38 (mySUSY->getMyFH()->OutputSLHA("output.slha"));
39 }
40
41 return 0.0;
42 };
43
44private:
45 bool output;
46 const SUSY * mySUSY;
47};
48
49#endif /* OUTPUTSLHAFROMFH_H */
50
bool isModelSUSY() const
Definition: Model.h:182
A class for outputting SUSY parameters to an SLHA file.
const SUSY * mySUSY
OutputSLHAfromFH(const StandardModel &SM_i)
A base class for SUSY models.
Definition: SUSY.h:33
FeynHiggsWrapper * getMyFH() const
Definition: SUSY.h:67
A model class for the Standard Model.
A class for a model prediction of an observable.
Definition: ThObservable.h:25