15 |
|
|
16 |
|
template<class T> |
17 |
|
TGraph * PlotTools<T>::Line( double(*x)(const T*), double(*y)(const T*), |
18 |
< |
double(*func)(const T*), const double mass, const double diff ) |
18 |
> |
double(*func)(const T*), const double mass, const double diff ) |
19 |
|
{ |
20 |
|
TGraph * result = new TGraph(1); |
21 |
|
std::sort(_scan->begin(),_scan->end(),sort_by(x)); |
30 |
|
|
31 |
|
template<class T> |
32 |
|
void PlotTools<T>::Area( TH2*h, double(*x)(const T*), double(*y)(const T*), |
33 |
< |
double(*f)(const T*) ) |
33 |
> |
double(*f)(const T*) ) |
34 |
|
{ |
35 |
|
for (typename std::vector<T*>::const_iterator it=_scan->begin();it!=_scan->end();++it){ |
36 |
|
h->SetBinContent( h->GetXaxis()->FindBin(x(*it)), |