1 |
+ |
// $Id$ |
2 |
+ |
|
3 |
+ |
#include "MitPlots/Input/interface/Sample.h" |
4 |
+ |
|
5 |
+ |
ClassImp(mithep::Sample) |
6 |
+ |
|
7 |
+ |
using namespace std; |
8 |
+ |
using namespace mithep; |
9 |
+ |
|
10 |
+ |
//-------------------------------------------------------------------------------------------------- |
11 |
+ |
Sample::Sample(const char *name, const char* file, const char* dir, |
12 |
+ |
const double xsec, const double scale) : |
13 |
+ |
fName (name), |
14 |
+ |
fLegend(""), |
15 |
+ |
fFile (file), |
16 |
+ |
fDir (dir), |
17 |
+ |
fXsec (xsec), |
18 |
+ |
fScale (scale) |
19 |
+ |
{ |
20 |
+ |
// Constructor |
21 |
+ |
} |
22 |
+ |
|
23 |
+ |
void Sample::Show() const |
24 |
+ |
{ |
25 |
+ |
// Show information of this sample |
26 |
+ |
printf(" %-30s %-20s %-60s %20.7f %7.3f\n",fName.Data(),fLegend.Data(),fFile.Data(),fXsec,fScale); |
27 |
+ |
} |