Profile.hh
Go to the documentation of this file.
1 
4 #pragma once
5 
6 #include "TProfile2D.h"
7 
8 #include "boca/math/Rectangle.hh"
9 #include "boca/plotting/Plot.hh"
10 #include "boca/plotting/Canvas.hh"
11 
12 namespace boca
13 {
14 
15 class Profile : public Canvas
16 {
17 
18 public:
19 
20  Profile(std::string const& path, std::string const& folder, std::string const& name, bool show_title = false);
21 
22  ~Profile();
23 
24  void SetXAxis(latex::String const& title);
25 
26  void SetYAxis(latex::String const& title);
27 
28  void SetZAxis(latex::String const& title, int bins);
29 
30  void SetProfile(Plot const& signal, Plot const& background);
31 
32  void SetDimensions(latex::String const& name, int bins, Rectangle<double> const& range);
33 
34  std::string FileBaseName() const override;
35 
36 private:
37 
38  void SetDimensions(int x_bins, int y_bins, Rectangle<double> const& range);
39 
40  void Draw();
41 
42  TProfile2D profile_;
43 
44  Range<double> range_;
45 
46  Rectangle<double> rectangle_;
47 
48 };
49 
50 }
Definition: Plot.hh:15
Definition: Profile.hh:15
void SetXAxis(latex::String const &title)
Definition: Profile.cpp:42
void SetZAxis(latex::String const &title, int bins)
Definition: Profile.cpp:54
~Profile()
Definition: Profile.cpp:28
Definition: String.hh:45
void SetYAxis(latex::String const &title)
Definition: Profile.cpp:48
Profile(std::string const &path, std::string const &folder, std::string const &name, bool show_title=false)
Definition: Profile.cpp:20
Boosted Collider Analysis.
Definition: Analysis.hh:15
Definition: Canvas.hh:14
void SetDimensions(latex::String const &name, int bins, Rectangle< double > const &range)
Definition: Profile.cpp:62
std::string FileBaseName() const override
Definition: Profile.cpp:95
void SetProfile(Plot const &signal, Plot const &background)
Definition: Profile.cpp:81