BCTF1Prior.cxx
1 /*
2  * Copyright (C) 2007-2018, the BAT core developer team
3  * All rights reserved.
4  *
5  * For the licensing terms see doc/COPYING.
6  * For documentation see http://mpp.mpg.de/bat
7  */
8 
9 #include "BCTF1Prior.h"
10 
11 #include <cmath>
12 
13 #include <TF1.h>
14 
15 // ---------------------------------------------------------
17  : BCPrior()
18 {
19  fPriorFunction = f;
20 }
21 
22 // ---------------------------------------------------------
23 BCTF1Prior::BCTF1Prior(const std::string& formula, double xmin, double xmax)
24  : BCPrior()
25 {
26  fPriorFunction = TF1("f1_prior", formula.c_str(), xmin, xmax);
27 }
A class to represent the prior of a parameter.
Definition: BCPrior.h:49
TF1 fPriorFunction
Definition: BCPrior.h:291
BCTF1Prior(TF1 &f)
Constructor taking TF1.
Definition: BCTF1Prior.cxx:16