|
BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
|
Generates pad tree from the scheme. More...
#include <BmnPadGenerator.h>
Public Member Functions | |
| BmnPadGenerator () | |
| virtual | ~BmnPadGenerator () |
| void | LoadPTFrom (string FileName) |
| Load pad tree from json config. | |
| BmnPadBranch * | GeneratePadBranch (pt::ptree &PropTree) |
| Generate pad branch tree from the boost property tree. | |
| PadInfo * | GeneratePadNode (pt::ptree &PropTree) |
| BmnPadBranch * | GetPadBranch () |
| BmnPadGenerator () | |
| virtual | ~BmnPadGenerator () |
| void | LoadPTFrom (string FileName) |
| Load pad tree from json config. | |
| BmnPadBranch * | GeneratePadBranch (pt::ptree &PropTree) |
| Generate pad branch tree from the boost property tree. | |
| PadInfo * | GeneratePadNode (pt::ptree &PropTree) |
| BmnPadBranch * | GetPadBranch () |
Static Public Member Functions | |
| static void | PadTree2Canvas (BmnPadBranch *br, TVirtualPad *pad) |
| Create pad structure in the canvas from the pad tree and associate pad branch instances with the pad pointers. | |
| static void | PadTree2Canvas (BmnPadBranch *br, TVirtualPad *pad) |
| Create pad structure in the canvas from the pad tree and associate pad branch instances with the pad pointers. | |
Private Attributes | |
| std::unique_ptr< BmnHistManager > | _HM |
| BmnPadBranch * | _pad |
| pt::ptree | _TreeScheme |
Definition at line 31 of file BmnPadGenerator.h.
|
inline |
Definition at line 34 of file BmnPadGenerator.h.
|
inlinevirtual |
Definition at line 39 of file BmnPadGenerator.h.
References _pad.
|
inline |
Definition at line 34 of file BmnPadGenerator.h.
|
inlinevirtual |
Definition at line 39 of file BmnPadGenerator.h.
References _pad.
| BmnPadBranch * BmnPadGenerator::GeneratePadBranch | ( | pt::ptree & | PropTree | ) |
| PropTree | boost property tree |
Definition at line 106 of file BmnPadGenerator.cxx.
References BmnPadBranch::AddBranch(), GeneratePadBranch(), GeneratePadNode(), BmnPadBranch::SetDivXY(), BmnPadBranch::SetPadInfo(), and v.
Referenced by GeneratePadBranch(), and LoadPTFrom().
| BmnPadBranch * BmnPadGenerator::GeneratePadBranch | ( | pt::ptree & | PropTree | ) |
| PropTree | boost property tree |
| PadInfo * BmnPadGenerator::GeneratePadNode | ( | pt::ptree & | PropTree | ) |
Definition at line 26 of file BmnPadGenerator.cxx.
References _HM, TH1::Clone(), PadInfo::current, dim, TClass::GetClass(), TNamed::GetName(), TClass::GetNew(), PadInfo::name, PadInfo::opt, PadInfo::selection, TH1::SetBins(), TH1::SetName(), TH1::SetTitle(), PadInfo::temp, v, and PadInfo::variable.
Referenced by GeneratePadBranch().
| PadInfo * BmnPadGenerator::GeneratePadNode | ( | pt::ptree & | PropTree | ) |
|
inline |
Definition at line 64 of file BmnPadGenerator.h.
References _pad.
Referenced by HistGenTest().
|
inline |
Definition at line 64 of file BmnPadGenerator.h.
References _pad.
| void BmnPadGenerator::LoadPTFrom | ( | string | FileName | ) |
| FileName | path to json config |
Definition at line 6 of file BmnPadGenerator.cxx.
References _pad, _TreeScheme, and GeneratePadBranch().
Referenced by HistGenTest().
| void BmnPadGenerator::LoadPTFrom | ( | string | FileName | ) |
| FileName | path to json config |
|
static |
| br | pad tree |
| pad | canvas or any other TVirtualPad instance |
Definition at line 146 of file BmnPadGenerator.cxx.
References TVirtualPad::cd(), TVirtualPad::Divide(), BmnPadBranch::GetBranchesRef(), BmnPadBranch::GetDivX(), BmnPadBranch::GetDivY(), BmnPadBranch::GetPadInfo(), i, and PadTree2Canvas().
Referenced by HistGenTest(), PadTree2Canvas(), and BmnCustomQa::RecreateHistTree().
|
static |
| br | pad tree |
| pad | canvas or any other TVirtualPad instance |
|
private |
Definition at line 67 of file BmnPadGenerator.h.
Referenced by BmnPadGenerator(), and GeneratePadNode().
|
private |
Definition at line 68 of file BmnPadGenerator.h.
Referenced by BmnPadGenerator(), ~BmnPadGenerator(), GetPadBranch(), and LoadPTFrom().
|
private |
Definition at line 69 of file BmnPadGenerator.h.
Referenced by LoadPTFrom().