ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPlots/Input/src/Sample.cc
Revision: 1.2
Committed: Tue Jan 25 11:30:30 2011 UTC (14 years, 3 months ago) by paus
Content type: text/plain
Branch: MAIN
Changes since 1.1: +27 -0 lines
Log Message:
2nd try

File Contents

# User Rev Content
1 paus 1.2 // $Id: Sample.cc,v 1.1.2.1 2010/10/03 04:08:48 paus Exp $
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     }