17 void mnplot(
double* xpt,
double* ypt,
char* chpt,
int nxypt,
int npagwd,
int npagln);
21 std::vector<double>
x; x.reserve(points.size());
22 std::vector<double>
y; y.reserve(points.size());
23 std::vector<char> chpt; chpt.reserve(points.size());
25 for(std::vector<std::pair<double,double> >::const_iterator ipoint = points.begin(); ipoint != points.end(); ++ipoint) {
26 x.push_back((*ipoint).first);
27 y.push_back((*ipoint).second);
31 mnplot(&(x.front()), &(y.front()), &(chpt.front()), points.size(),
Width(),
Length());
35 void MnPlot::operator()(
double xmin,
double ymin,
const std::vector<std::pair<double,double> >& points)
const {
37 std::vector<double>
x; x.reserve(points.size()+2);
40 std::vector<double>
y; y.reserve(points.size()+2);
43 std::vector<char> chpt; chpt.reserve(points.size()+2);
47 for(std::vector<std::pair<double,double> >::const_iterator ipoint = points.begin(); ipoint != points.end(); ++ipoint) {
48 x.push_back((*ipoint).first);
49 y.push_back((*ipoint).second);
53 mnplot(&(x.front()), &(y.front()), &(chpt.front()), points.size()+2,
Width(),
Length());
unsigned int Width() const
Namespace for new ROOT classes and functions.
you should not use this method at all Int_t y
unsigned int Length() const
void operator()(const std::vector< std::pair< double, double > > &) const
* x
Deprecated and error prone model selection interface.
void mnplot(double *xpt, double *ypt, char *chpt, int nxypt, int npagwd, int npagln)