flavour
Juca.cpp File Reference
#include "MCMC.h"
#include "Juca.h"
#include "TF2.h"
#include "TProfile3D.h"
#include "THStack.h"
#include "TColor.h"
#include "TROOT.h"
#include "TStyle.h"
#include <cln/cln.h>
#include <cln/float.h>
Include dependency graph for Juca.cpp:

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

int main ( )

Definition at line 16 of file Juca.cpp.

References Proposal::findPeaks(), Proposal::floatPeak, Juca::getlist(), and Peak::pr.

16  {
17  Digits=5;
18  cln::cl_inhibit_floating_point_underflow=1;
19 
20  //Int_t MyPalette[100];
21  Double_t r[] = {1, 0};
22  Double_t g[] = {1, 0};
23  Double_t b[] = {1, 0};
24  Double_t stop[] = {0., 1.0};
25  TColor::CreateGradientColorTable(2, stop, r, g,b, 100);
26 
27  //TH1F * pdf1=new TH1F("pdf1","pdf1",npoints,10,500);
28 
29 
30  //TGraph * chi2=new TGraph(npoints);
31 
32  uint npoints=50;
33 
34 
35  double llmax=-20,gmax=0;
36 
37  Juca* m=new Juca();
38  Proposal prop4(m);
39  prop4.findPeaks();
40 
41  cout<<"gp "<<m->gaussprob(prop4.floatPeak.pr)<<endl;
42  lst l=m->getlist(prop4.floatPeak.pr);
43  for(uint i=0; i< m->size();i++){
44  double mean=m->at(i).calculate(l);
45  cout<<i<<" "<<mean<<" "<<sqrt(2*m->at(i).o->loglikelihood(mean))<<endl;
46  }
47  for(uint i=0; i< prop4.floatPeak.pr.size();i++){
48  cout<<i<<" "<<prop4.floatPeak.pr[i].value<<endl;
49  }
50  delete m;
51 
52  return 0;
53 }
Definition: Juca.h:15
lst getlist(const parameters &p) const
Definition: Juca.h:77
unsigned int uint
Definition: script.cpp:4
A class containing the parameters of a proposal for the next step in the Markov Chain.
Definition: MCMC.h:162

Here is the call graph for this function: