a Code for the Combination of Indirect and Direct Constraints on High Energy Physics Models Logo
FlavorObservableError.hpp
Go to the documentation of this file.
1/*
2 * FlavorObservableError.hpp
3 *
4 * Created on: Apr 1, 2012 (really!)
5 * Author: Ben O'Leary (benjamin.oleary@gmail.com)
6 * Copyright 2012 Ben O'Leary
7 *
8 * This file is part of LesHouchesParserClasses, released under the
9 * GNU General Public License. Please see the accompanying
10 * README.LHPC_CPP.txt file for a full list of files, brief documentation
11 * on how to use these classes, and further details on the license.
12 */
13
14#ifndef FLAVOROBSERVABLEERROR_HPP_
15#define FLAVOROBSERVABLEERROR_HPP_
16
17#include <string>
19#include "FlavorObservable.hpp"
20
21namespace LHPC
22{
23 // this is a class to hold the information about the mass of a particle in
24 // the FLHA format.
26 {
27 public:
31
32 double
33 getMinusUncertainty() const;
34 double
35 getPlusUncertainty() const;
36 double
37 getScale() const;
38 int
40 std::list< int >&
42 std::list< int > const&
44 void
45 setValues( double const minusUncertainty,
46 double const plusUncertainty,
47 double const evaluationScale,
48 std::list< int > const& daughterParticleCodes );
49 void
50 setFromString( std::string const& valuesString );
51 std::string
52 getAsString() const;
53
54
55 protected:
59 std::list< int > daughterParticleCodes;
60 };
61
62
63
64
65
66 inline double
68 {
69 return minusUncertainty;
70 }
71
72 inline double
74 {
75 return plusUncertainty;
76 }
77
78 inline double
80 {
81 return evaluationScale;
82 }
83
84 inline int
86 {
87 return (int)(daughterParticleCodes.size());
88 }
89
90 inline std::list< int >&
92 {
94 }
95
96 inline std::list< int > const&
98 {
100 }
101
102 inline void
103 FlavorObservableError::setValues(double const minusUncertainty,
104 double const plusUncertainty,
105 double const evaluationScale,
106 std::list< int > const& daughterParticleCodes )
107 {
108 this->minusUncertainty = minusUncertainty;
109 this->plusUncertainty = plusUncertainty;
110 this->evaluationScale = evaluationScale;
111 this->daughterParticleCodes = daughterParticleCodes;
112 }
113
114}
115
116#endif /* FLAVOROBSERVABLEERROR_HPP_ */
void setValues(double const minusUncertainty, double const plusUncertainty, double const evaluationScale, std::list< int > const &daughterParticleCodes)
std::list< int > & getDaughterParticleList()
void setFromString(std::string const &valuesString)