BmnRoot
Loading...
Searching...
No Matches
BmnPadGenerator Class Reference

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.
 
BmnPadBranchGeneratePadBranch (pt::ptree &PropTree)
 Generate pad branch tree from the boost property tree.
 
PadInfoGeneratePadNode (pt::ptree &PropTree)
 
BmnPadBranchGetPadBranch ()
 
 BmnPadGenerator ()
 
virtual ~BmnPadGenerator ()
 
void LoadPTFrom (string FileName)
 Load pad tree from json config.
 
BmnPadBranchGeneratePadBranch (pt::ptree &PropTree)
 Generate pad branch tree from the boost property tree.
 
PadInfoGeneratePadNode (pt::ptree &PropTree)
 
BmnPadBranchGetPadBranch ()
 

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.
 

Detailed Description

Generates pad tree from the scheme.

Definition at line 31 of file BmnPadGenerator.h.

Constructor & Destructor Documentation

◆ BmnPadGenerator() [1/2]

BmnPadGenerator::BmnPadGenerator ( )
inline

Definition at line 34 of file BmnPadGenerator.h.

◆ ~BmnPadGenerator() [1/2]

virtual BmnPadGenerator::~BmnPadGenerator ( )
inlinevirtual

Definition at line 39 of file BmnPadGenerator.h.

◆ BmnPadGenerator() [2/2]

BmnPadGenerator::BmnPadGenerator ( )
inline

Definition at line 34 of file BmnPadGenerator.h.

◆ ~BmnPadGenerator() [2/2]

virtual BmnPadGenerator::~BmnPadGenerator ( )
inlinevirtual

Definition at line 39 of file BmnPadGenerator.h.

Member Function Documentation

◆ GeneratePadBranch() [1/2]

BmnPadBranch * BmnPadGenerator::GeneratePadBranch ( pt::ptree &  PropTree)

Generate pad branch tree from the boost property tree.

Parameters
PropTreeboost property tree
Returns
pointer to the BmnPadBranch instance - start of the branch 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().

◆ GeneratePadBranch() [2/2]

BmnPadBranch * BmnPadGenerator::GeneratePadBranch ( pt::ptree &  PropTree)

Generate pad branch tree from the boost property tree.

Parameters
PropTreeboost property tree
Returns
pointer to the BmnPadBranch instance - start of the branch tree

◆ GeneratePadNode() [1/2]

PadInfo * BmnPadGenerator::GeneratePadNode ( pt::ptree &  PropTree)

◆ GeneratePadNode() [2/2]

PadInfo * BmnPadGenerator::GeneratePadNode ( pt::ptree &  PropTree)

◆ GetPadBranch() [1/2]

BmnPadBranch * BmnPadGenerator::GetPadBranch ( )
inline

Definition at line 64 of file BmnPadGenerator.h.

◆ GetPadBranch() [2/2]

BmnPadBranch * BmnPadGenerator::GetPadBranch ( )
inline

Definition at line 64 of file BmnPadGenerator.h.

◆ LoadPTFrom() [1/2]

void BmnPadGenerator::LoadPTFrom ( string  FileName)

Load pad tree from json config.

Parameters
FileNamepath to json config

Definition at line 6 of file BmnPadGenerator.cxx.

References GeneratePadBranch().

◆ LoadPTFrom() [2/2]

void BmnPadGenerator::LoadPTFrom ( string  FileName)

Load pad tree from json config.

Parameters
FileNamepath to json config

◆ PadTree2Canvas() [1/2]

void BmnPadGenerator::PadTree2Canvas ( BmnPadBranch br,
TVirtualPad *  pad 
)
static

Create pad structure in the canvas from the pad tree and associate pad branch instances with the pad pointers.

Parameters
brpad tree
padcanvas or any other TVirtualPad instance

Definition at line 146 of file BmnPadGenerator.cxx.

References BmnPadBranch::GetBranchesRef(), BmnPadBranch::GetDivX(), BmnPadBranch::GetDivY(), BmnPadBranch::GetPadInfo(), i, and PadTree2Canvas().

Referenced by PadTree2Canvas().

◆ PadTree2Canvas() [2/2]

static void BmnPadGenerator::PadTree2Canvas ( BmnPadBranch br,
TVirtualPad *  pad 
)
static

Create pad structure in the canvas from the pad tree and associate pad branch instances with the pad pointers.

Parameters
brpad tree
padcanvas or any other TVirtualPad instance

The documentation for this class was generated from the following files: