BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnPadGenerator Class Reference

Generates pad tree from the scheme. More...

#include <BmnPadGenerator.h>

Collaboration diagram for BmnPadGenerator:

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

Detailed Description

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.

References _HM, and _pad.

◆ ~BmnPadGenerator() [1/2]

virtual BmnPadGenerator::~BmnPadGenerator ( )
inlinevirtual

Definition at line 39 of file BmnPadGenerator.h.

References _pad.

◆ BmnPadGenerator() [2/2]

BmnPadGenerator::BmnPadGenerator ( )
inline

Definition at line 34 of file BmnPadGenerator.h.

References _HM, and _pad.

◆ ~BmnPadGenerator() [2/2]

virtual BmnPadGenerator::~BmnPadGenerator ( )
inlinevirtual

Definition at line 39 of file BmnPadGenerator.h.

References _pad.

Member Function Documentation

◆ GeneratePadBranch() [1/2]

BmnPadBranch * BmnPadGenerator::GeneratePadBranch ( pt::ptree & PropTree)
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GeneratePadBranch() [2/2]

BmnPadBranch * BmnPadGenerator::GeneratePadBranch ( pt::ptree & PropTree)
Parameters
PropTreeboost property tree
Returns
pointer to the BmnPadBranch instance - start of the branch tree

◆ GeneratePadNode() [1/2]

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GeneratePadNode() [2/2]

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

◆ GetPadBranch() [1/2]

BmnPadBranch * BmnPadGenerator::GetPadBranch ( )
inline

Definition at line 64 of file BmnPadGenerator.h.

References _pad.

Referenced by HistGenTest().

Here is the caller graph for this function:

◆ GetPadBranch() [2/2]

BmnPadBranch * BmnPadGenerator::GetPadBranch ( )
inline

Definition at line 64 of file BmnPadGenerator.h.

References _pad.

◆ LoadPTFrom() [1/2]

void BmnPadGenerator::LoadPTFrom ( string FileName)
Parameters
FileNamepath to json config

Definition at line 6 of file BmnPadGenerator.cxx.

References _pad, _TreeScheme, and GeneratePadBranch().

Referenced by HistGenTest().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadPTFrom() [2/2]

void BmnPadGenerator::LoadPTFrom ( string FileName)
Parameters
FileNamepath to json config

◆ PadTree2Canvas() [1/2]

void BmnPadGenerator::PadTree2Canvas ( BmnPadBranch * br,
TVirtualPad * pad )
static
Parameters
brpad tree
padcanvas 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PadTree2Canvas() [2/2]

void BmnPadGenerator::PadTree2Canvas ( BmnPadBranch * br,
TVirtualPad * pad )
static
Parameters
brpad tree
padcanvas or any other TVirtualPad instance

Member Data Documentation

◆ _HM

std::unique_ptr< BmnHistManager > BmnPadGenerator::_HM
private

Definition at line 67 of file BmnPadGenerator.h.

Referenced by BmnPadGenerator(), and GeneratePadNode().

◆ _pad

BmnPadBranch * BmnPadGenerator::_pad
private

Definition at line 68 of file BmnPadGenerator.h.

Referenced by BmnPadGenerator(), ~BmnPadGenerator(), GetPadBranch(), and LoadPTFrom().

◆ _TreeScheme

pt::ptree BmnPadGenerator::_TreeScheme
private

Definition at line 69 of file BmnPadGenerator.h.

Referenced by LoadPTFrom().


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