Crombie Tools
RatioComparison.h
Go to the documentation of this file.
1 /**
2  @file RatioComparison.h
3  Definition of RatioComparison class.
4  @author Daniel Abercrombie <dabercro@mit.edu>
5 */
6 
7 
8 #ifndef CROMBIETOOLS_PLOTTOOLS_RATIOCOMPARISON_H
9 #define CROMBIETOOLS_PLOTTOOLS_RATIOCOMPARISON_H
10 
11 #include <vector>
12 
13 #include "TString.h"
14 
15 #include "FileConfigReader.h"
16 
17 /**
18  @ingroup plotgroup
19  @class RatioComparison
20  This class is used to quickly make ratios between control regions and compare the
21  data and Monte Carlo shapes
22 */
23 
25 {
26  public:
28  virtual ~RatioComparison();
29 
30  /// Make canvas using an array
31  void MakeCompare ( TString FileBase, Int_t NumXBins, Double_t *XBins,
32  TString XLabel, TString YLabel );
33 
34  /// Make canvas using regular binning
35  void MakeCompare ( TString FileBase, Int_t NumXBins, Double_t MinX, Double_t MaxX,
36  TString XLabel, TString YLabel );
37 
38  /// Reset the stored backgrounds to make a different plot
39  void Reset ();
40 
41  /// A line is created for each ratio cut, using the correct data type, set by this function
42  void AddRatioCuts ( TString num_cut, TString denom_cut, FileType type, TString entry, Int_t color );
43 
44  private:
45 
46  std::vector<TString> fNumeratorCuts; ///< The numerator cut for each line
47  std::vector<TString> fDenominatorCuts; ///< The denominator cut for each line
48  std::vector<FileType> fTypes; ///< The type of data for each line
49 
50  ClassDef(RatioComparison, 1)
51 };
52 
53 #endif