1 |
#ifndef ISOMASSLINES_H
|
2 |
#define ISOMASSLINES_H
|
3 |
|
4 |
#include <vector>
|
5 |
|
6 |
class TGraph;
|
7 |
class SusyScan;
|
8 |
|
9 |
template<class T>
|
10 |
class IsoMassLine {
|
11 |
public:
|
12 |
IsoMassLine(std::vector<T*> * scan):_scan(scan){}
|
13 |
TGraph * get( double(*x)(const T*), double(*y)(const T*),
|
14 |
double(*func)(const T*), const double mass, const double diff=5.);
|
15 |
|
16 |
private:
|
17 |
std::vector<T*> * _scan;
|
18 |
|
19 |
class sort_by{
|
20 |
public:
|
21 |
sort_by(double(*x)(const T*)):_f(x){}
|
22 |
bool operator()(const T*a, const T*b){ return _f(a)<_f(b); }
|
23 |
private:
|
24 |
double(*_f)(const T*);
|
25 |
};
|
26 |
};
|
27 |
|
28 |
#endif
|