ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/auterman/SusyScan/PlotScript/PlotTools.h
Revision: 1.4
Committed: Wed Feb 9 08:51:32 2011 UTC (14 years, 3 months ago) by auterman
Content type: text/plain
Branch: MAIN
Changes since 1.3: +7 -1 lines
Log Message:
adding executables for tb3 and tb50

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.1 private:
33     std::vector<T*> * _scan;
34    
35     class sort_by{
36     public:
37     sort_by(double(*x)(const T*)):_f(x){}
38     bool operator()(const T*a, const T*b){ return _f(a)<_f(b); }
39     private:
40     double(*_f)(const T*);
41     };
42 auterman 1.3
43     class sort_TGraph{
44     public:
45     sort_TGraph(){}
46     bool operator()(const TGraph*g1, const TGraph*g2);
47     };
48    
49 auterman 1.1 };
50    
51     #endif