flavour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Juca.cpp
Go to the documentation of this file.
1 #include "MCMC.h"
2 #include "Juca.h"
3 #include "TF2.h"
4 #include "TProfile3D.h"
5 #include "THStack.h"
6 #include "TColor.h"
7 #include "TROOT.h"
8 #include "TStyle.h"
9 
10 
11 
12 #include <cln/cln.h>
13 #include <cln/float.h>
14 
15 
16 int main(){
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 }
54 
void findPeaks(uint ns=1, int max=0)
Definition: MCMC.h:167
Definition: Juca.h:15
Peak floatPeak
Definition: MCMC.h:223
lst getlist(const parameters &p) const
Definition: Juca.h:77
int main()
Definition: Juca.cpp:16
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
parameters pr
Definition: MCMC.h:154