20 bool AddHist(std::shared_ptr<RPadBase> &subpad,
TH1 *hist,
const std::string &opt)
25 if (subpad->NumPrimitives() > 0) {
27 subpad->GetCanvas()->Modified();
28 subpad->GetCanvas()->Update(
true);
31 std::shared_ptr<TH1> shared;
35 subpad->GetCanvas()->Update(
true);
41 RegisterDraw7(TLeaf::Class(), [
this](std::shared_ptr<RPadBase> &subpad, std::unique_ptr<RHolder> &obj,
const std::string &opt) ->
bool {
45 RegisterDraw7(TBranchElement::Class(), [
this](std::shared_ptr<RPadBase> &subpad, std::unique_ptr<RHolder> &obj,
const std::string &opt) ->
bool {
49 RegisterDraw7(TBranch::Class(), [
this](std::shared_ptr<RPadBase> &subpad, std::unique_ptr<RHolder> &obj,
const std::string &opt) ->
bool {
53 RegisterDraw7(TVirtualBranchBrowsable::Class(), [
this](std::shared_ptr<RPadBase> &subpad, std::unique_ptr<RHolder> &obj,
const std::string &opt) ->
bool {
TLeafDraw7Provider newTLeafDraw7Provider
void RegisterDraw7(const TClass *cl, Draw7Func_t func)
Provides v7 drawing facilities for TObject types (TGraph, TH1, TH2, etc).
TH1 is the base class of all histogram classes in ROOT.
Provider for drawing of ROOT7 classes.
bool AddHist(std::shared_ptr< RPadBase > &subpad, TH1 *hist, const std::string &opt)
Provider for drawing of branches / leafs in the TTree.
TH1 * DrawBranch(std::unique_ptr< RHolder > &obj)
TH1 * DrawBranchBrowsable(std::unique_ptr< RHolder > &obj)
TH1 * DrawBranchElement(std::unique_ptr< RHolder > &obj)
TH1 * DrawLeaf(std::unique_ptr< RHolder > &obj)