ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPlots/Input/interface/Sample.h
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: +10 -8 lines
Log Message:
Small tweaks.

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: Sample.h,v 1.2 2011/01/25 11:30:30 paus Exp $
3 //
4 // Sample
5 //
6 // This class implements Sample which defines all relevant properties of a data sample needed to
7 // make plots.
8 //
9 // Authors: C.Paus
10 //--------------------------------------------------------------------------------------------------
11
12 #ifndef MITPLOTS_INPUT_SAMPLE_H
13 #define MITPLOTS_INPUT_SAMPLE_H
14
15 #include <TString.h>
16
17 namespace mithep
18 {
19 class Sample
20 {
21 public:
22 Sample() {}
23 Sample(const char* name, const char* skimName, const char* file, const char* dir,
24 const double xsec, const double scale);
25 ~Sample() {}
26
27 const TString *Name() const { return &fName; }
28 const TString *SkimName() const { return &fSkimName; }
29 const TString *Legend() const { return &fLegend; }
30 const TString *File() const { return &fFile; }
31 const TString *Dir() const { return &fDir; }
32 const double *Xsec() const { return &fXsec; }
33 const double *Scale() const { return &fScale; }
34
35 void SetLegend(const char* legend) { fLegend = TString(legend); }
36
37 void Show() const; // show sample properties
38
39 private:
40 TString fName; // name of the sample
41 TString fSkimName; // name of the skim
42 TString fLegend; // legend used for this sample
43 TString fFile; // file name of the histograms etc.
44 TString fDir; // directory with sample file
45
46 double fXsec; // cross section
47 double fScale; // k-factor to scale the MC cross section
48
49 ClassDef(Sample, 0) // Sample describes all relevant aspects of a sample for plotting
50 };
51 }
52 #endif