forked from GooFit/GooFit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Variable.cc
57 lines (50 loc) · 929 Bytes
/
Variable.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#include "Variable.hh"
#include <cmath>
Variable::Variable (std::string n)
: Indexable(n)
, numbins(100)
, fixed(false)
, blind(0)
{
}
Variable::Variable (std::string n, fptype v)
: Indexable(n, v)
, error(0.002)
, lowerlimit(v - 0.01)
, upperlimit(v + 0.01)
, numbins(100)
, fixed(true)
, blind(0)
{
}
Variable::Variable (std::string n, fptype dn, fptype up)
: Indexable(n)
, upperlimit(up)
, lowerlimit(dn)
, numbins(100)
, fixed(false)
, blind(0)
{
}
Variable::Variable (std::string n, fptype v, fptype dn, fptype up)
: Indexable(n, v)
, error(0.1*(up-dn))
, upperlimit(up)
, lowerlimit(dn)
, numbins(100)
, fixed(false)
, blind(0)
{
}
Variable::Variable (std::string n, fptype v, fptype e, fptype dn, fptype up)
: Indexable(n, v)
, error(e)
, upperlimit(up)
, lowerlimit(dn)
, numbins(100)
, fixed(false)
, blind(0)
{
}
Variable::~Variable () {
}