ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Style/interface/HistStyles.h
Revision: 1.2
Committed: Sun Oct 3 03:51:15 2010 UTC (14 years, 7 months ago) by paus
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
State: FILE REMOVED
Error occurred while calculating annotation data.
Log Message:
Error in cvs use.

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: HistStyles.h,v 1.1 2010/10/03 03:40:01 paus Exp $
3 //
4 // HistStyles
5 //
6 // This class implements HistStyles which is just a list of histogram and text styles needed to
7 // style a plot in PlotTask. There is a predefined default set of styles and there is a series of
8 // styles which can be defined by the user.
9 //
10 // Authors: C.Paus
11 //--------------------------------------------------------------------------------------------------
12
13 #ifndef MITPLOTS_STYLE_HISTSTYLES_H
14 #define MITPLOTS_STYLE_HISTSTYLES_H
15
16 #include <vector>
17 #include "MitPlots/Style/interface/HistStyle.h"
18
19 namespace mithep
20 {
21 class HistStyles
22 {
23 public:
24 HistStyles();
25 ~HistStyles() {}
26 // access to the the style contents
27 const UInt_t *NStyles () const { return &fNStyles; }
28 const HistStyle *GetStyle(UInt_t i) const; // return 'i'th Monte Carlo style
29 const HistStyle *GetDataStyle() const; // return the data style
30 // add styles
31 HistStyle *AddStyle(); // add another Monte Carlo histogram style
32 HistStyle *SetDataStyle(); // add the data histogram style
33 // helpers
34 void Show() const; // show style list properties
35
36 private:
37 // contents of the style
38 UInt_t fNStyles; // number of stored styles
39 std::vector<HistStyle> fStyles; // list of styles
40 HistStyle *fDataStyle; // data sample style
41
42 ClassDef(HistStyles, 0) // Interface to HistStyles
43 };
44 }
45 #endif