ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/auterman/SusyScan/PlotScript/PlotTools.h
Revision: 1.5
Committed: Sun Feb 13 14:39:33 2011 UTC (14 years, 2 months ago) by auterman
Content type: text/plain
Branch: MAIN
Changes since 1.4: +3 -0 lines
Log Message:
adding tb3 andtb50 masses

File Contents

# User Rev Content
1 auterman 1.1 #ifndef PLOTTOOLS_H
2     #define PLOTTOOLS_H
3    
4     #include <vector>
5    
6     class TGraph;
7     class SusyScan;
8     class TH2;
9    
10 auterman 1.4 TGraph * MakeBand(TGraph *g1, TGraph *g2, bool b=false);
11    
12 auterman 1.1 template<class T>
13     class PlotTools {
14     public:
15     PlotTools(std::vector<T*> * scan):_scan(scan){}
16    
17     TGraph * Line( double(*x)(const T*), double(*y)(const T*),
18 auterman 1.4 double(*func)(const T*), const double mass, const double diff=5.);
19 auterman 1.1
20     void Area( TH2*h, double(*x)(const T*), double(*y)(const T*),
21     double(*func)(const T*));
22    
23 auterman 1.3 void Graph( TGraph*g, double(*x)(const T*), double(*y)(const T*), double ymin=-999. );
24    
25 auterman 1.2 TGraph * GetContour(TH2*, int ncont=20, int flag=0);
26     std::vector<TGraph *> GetContours(TH2*, int ncont=20);
27 auterman 1.1
28 auterman 1.4 TGraph * GetContour(TH2*,double(*x)(const T*), double(*y)(const T*),
29     double(*func)(const T*), int ncont=20, int flag=0,
30     int color=1, int style=1);
31    
32 auterman 1.5 void Print(double(*x)(const T*), double(*x)(const T*), double(*y)(const T*),
33     TGraph*, double p=10.);
34    
35 auterman 1.1 private:
36     std::vector<T*> * _scan;
37    
38     class sort_by{
39     public:
40     sort_by(double(*x)(const T*)):_f(x){}
41     bool operator()(const T*a, const T*b){ return _f(a)<_f(b); }
42     private:
43     double(*_f)(const T*);
44     };
45 auterman 1.3
46     class sort_TGraph{
47     public:
48     sort_TGraph(){}
49     bool operator()(const TGraph*g1, const TGraph*g2);
50     };
51    
52 auterman 1.1 };
53    
54     #endif