ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPlots/Input/src/Sample.cc
(Generate patch)

Comparing UserCode/MitPlots/Input/src/Sample.cc (file contents):
Revision 1.1 by paus, Sun Oct 3 04:08:48 2010 UTC vs.
Revision 1.2 by paus, Tue Jan 25 11:30:30 2011 UTC

# Line 0 | Line 1
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 + }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines