ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/auterman/SusyScan/PlotScript/PlotTools.h
Revision: 1.2
Committed: Fri Jan 7 08:54:47 2011 UTC (14 years, 4 months ago) by auterman
Content type: text/plain
Branch: MAIN
Changes since 1.1: +2 -1 lines
Log Message:
including profile graphs and bugs

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     template<class T>
11     class PlotTools {
12     public:
13     PlotTools(std::vector<T*> * scan):_scan(scan){}
14    
15     TGraph * Line( double(*x)(const T*), double(*y)(const T*),
16     double(*func)(const T*), const double mass, const double diff=5.);
17    
18     void Area( TH2*h, double(*x)(const T*), double(*y)(const T*),
19     double(*func)(const T*));
20    
21 auterman 1.2 TGraph * GetContour(TH2*, int ncont=20, int flag=0);
22     std::vector<TGraph *> GetContours(TH2*, int ncont=20);
23 auterman 1.1
24     private:
25     std::vector<T*> * _scan;
26    
27     class sort_by{
28     public:
29     sort_by(double(*x)(const T*)):_f(x){}
30     bool operator()(const T*a, const T*b){ return _f(a)<_f(b); }
31     private:
32     double(*_f)(const T*);
33     };
34     };
35    
36     #endif