Plotting.hh
Go to the documentation of this file.
1 #pragma once
2 
3 #include "boca/generic/Types.hh"
4 #include "boca/math/Vector3.hh"
7 
8 namespace boca{
9 
10 template<typename Tagger_>
11 class Plotting : public PlottingBase {
12 
13 public:
14 
15  Plotting(Tagger_ const& tagger) : tagger_(tagger){}
16 
17 // Plots PlotResult(int tree_number, Phase const& phase) const {
18 // Plots plots(Info(phase, tree_number).first);
19 // TreeReader tree_reader(Tagger().FileName(phase), Tagger().TreeNames(phase).at(tree_number));
20 // plots.PlotVector() = UnorderedPairs(ConstCast(Tagger().Branch()).Variables().Vector(), [&](Observable const & variable_1, Observable const & variable_2) {
21 // Plot plot;
22 // for (auto const & entry : IntegerRange(tree_reader.GetEntries())) {
23 // tree_reader.ReadEntry(entry);
24 // plot.Add(Vector3<double>(variable_1.Value(), variable_2.Value(), ConstCast(Tagger().Branch()).Bdt()));
25 // }
26 // plot.x_is_int = variable_1.IsInt();
27 // plot.y_is_int = variable_2.IsInt();
28 // return plot;
29 // });
30 // plots.Names().SetName(Tagger().TreeNames(phase).at(tree_number));
31 // return plots;
32 // }
33 
34  Tagger_ const& Tagger() const{
35  return tagger_;
36  }
37 
38  Tagger_ & Tagger() {
39  return tagger_;
40  }
41 
42 private:
43 
44  Tagger_ tagger_;
45 
46 };
47 
48 }
Plotting(Tagger_ const &tagger)
Definition: Plotting.hh:15
Tagger_ & Tagger()
Definition: Plotting.hh:38
Definition: Plotting.hh:11
Presents result of multivariant analysis.
Definition: PlottingBase.hh:42
Tagger_ const & Tagger() const
Definition: Plotting.hh:34
Boosted Collider Analysis.
Definition: Analysis.hh:15