Crombie Tools
PlotBrazil.h
Go to the documentation of this file.
1 /**
2  @file PlotBrazil.h
3  Header file for the PlotBrazil class.
4  @author Daniel Abercrombie <dabercro@mit.edu>
5 */
6 
7 #ifndef CROMBIETOOLS_PLOTTOOLS_PLOTBRAZIL_H
8 #define CROMBIETOOLS_PLOTTOOLS_PLOTBRAZIL_H
9 
10 #include "TString.h"
11 
12 #include "PlotBase.h"
13 
14 /**
15  @ingroup plotgroup
16  @class PlotBrazil
17  @brief Can be created using the CrombieTools.PlotTools.PlotBrazil module.
18 
19  Class used to create Brazilian plots from a .txt file.
20 */
21 
22 class PlotBrazil : public PlotBase
23 {
24  public:
25  /// Default constructor
26  PlotBrazil( TString fileName = "" );
27  virtual ~PlotBrazil();
28 
29  /// Add a point to all of the appropriate TGraphs
30  void AddPoint ( Double_t point, Double_t observed, Double_t lowest, Double_t low,
31  Double_t mid, Double_t high, Double_t highest );
32 
33  /// Reads the list of points from a configuration file to set up the TGraphs
34  void ReadConfig ( TString filename );
35 
36  /// Creates a Brazilian plot using the stored limits.
37  void MakePlot ( TString FileBase, TString XLabel, TString YLabel,
38  Bool_t logY = false, Bool_t logX = false );
39 
40  private:
41  TGraphErrors fOneSigma; ///< The TGraph holding the 1-sigma band
42  TGraphErrors fTwoSigma; ///< The TGraph holding the 2-sigma band
43  TGraphErrors fExpected; ///< The TGraph showing the expected limit
44  TGraphErrors fObserved; ///< The TGraph showing the observed limit
45 
46  ClassDef(PlotBrazil, 1)
47 };
48 
49 #endif