a Code for the Combination of Indirect and Direct Constraints on High Energy Physics Models Logo
FlavorObservable.hpp
Go to the documentation of this file.
1/*
2 * FlavorObservable.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 FLAVOROBSERVABLE_HPP_
15#define FLAVOROBSERVABLE_HPP_
16
17#include <string>
19
20namespace LHPC
21{
22 // this is a class to hold the information about the mass of a particle in
23 // the FLHA format.
25 {
26 public:
27 static int const spacesBetweenCodes;
28 static int const minimumDigitsForCodes;
29
31 FlavorObservable( FlavorObservable const& copySource );
33
34 double
35 getValue() const;
36 double
37 getScale() const;
38 int
40 std::list< int >&
42 std::list< int > const&
44 void
45 setValues( double const valueDouble,
46 double const evaluationScale,
47 std::list< int > const& daughterParticleCodes );
48 void
49 setFromString( std::string const& valuesString );
50 std::string
51 getAsString() const;
52
53
54 protected:
57 std::list< int > daughterParticleCodes;
58 };
59
60
61
62
63
64 inline double
66 {
67 return valueDouble;
68 }
69
70 inline double
72 {
73 return evaluationScale;
74 }
75
76 inline int
78 {
79 return (int)(daughterParticleCodes.size());
80 }
81
82 inline std::list< int >&
84 {
86 }
87
88 inline std::list< int > const&
90 {
92 }
93
94 inline void
95 FlavorObservable::setValues( double const valueDouble,
96 double const evaluationScale,
97 std::list< int > const& daughterParticleCodes )
98 {
99 this->valueDouble = valueDouble;
100 this->evaluationScale = evaluationScale;
101 this->daughterParticleCodes = daughterParticleCodes;
102 }
103
104}
105
106#endif /* FLAVOROBSERVABLE_HPP_ */
std::string getAsString() const
void setValues(double const valueDouble, double const evaluationScale, std::list< int > const &daughterParticleCodes)
void setFromString(std::string const &valuesString)
static int const spacesBetweenCodes
std::list< int > daughterParticleCodes
std::list< int > & getDaughterParticleList()
int getNumberOfDaughterParticles() const
static int const minimumDigitsForCodes