ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPlots/Input/src/Sample.cc
Revision: 1.3
Committed: Wed Mar 28 12:10:21 2012 UTC (13 years, 1 month ago) by paus
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_029a, Mit_028, Mit_027, Mit_027a, HEAD
Changes since 1.2: +11 -9 lines
Log Message:
Small tweaks.

File Contents

# Content
1 // $Id: Sample.cc,v 1.2 2011/01/25 11:30:30 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 *skimName, const char* file, const char* dir,
12 const double xsec, const double scale) :
13 fName (name),
14 fSkimName(skimName),
15 fLegend (""),
16 fFile (file),
17 fDir (dir),
18 fXsec (xsec),
19 fScale (scale)
20 {
21 // Constructor
22 }
23
24 void Sample::Show() const
25 {
26 // Show information of this sample
27 printf(" %-30s %-6s %-20s %-60s %20.7f %7.3f\n",fName.Data(),fSkimName.Data(),fLegend.Data(),
28 fFile.Data(),fXsec,fScale);
29 }