BAT  0.9.4
The Bayesian analysis toolkit
 All Classes Namespaces Functions Variables Enumerations
BCMVCPhysicsModel.h
1 /*
2  * Copyright (C) 2007-2014, 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 // ---------------------------------------------------------
10 
11 #ifndef __BCMVCPHYSICSMODEL__H
12 #define __BCMVCPHYSICSMODEL__H
13 
14 #include "BCMVCombination.h"
15 
16 // ---------------------------------------------------------
18 {
19  public:
20 
21  // Constructor
23 
24  // Destructor
26 
27  // Add a parameter
28  // name: the name of the parameter
29  // min: the minimum value of the parameter
30  // max: the maximum value of the parameter
31  void AddObservable(std::string name, double min, double max);
32 
33  // return a value for an observable
34  // index: the index of the variable
35  // parameters: the physics parameters
36  virtual double CalculateObservable(int index, const std::vector<double> &parameters)
37  { (void) index; // suppress compiler warning about unused parameters
38  (void) parameters; // suppress compiler warning about unused parameters
39  return 0; };
40 
41  // BAT methods
42 
43  // the log of the likelihood
44  double LogLikelihood(const std::vector<double> &parameters);
45 
46  private:
47 
48 };
49 // ---------------------------------------------------------
50 
51 #endif
52 
double LogLikelihood(const std::vector< double > &parameters)