BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
HistGenTest.C
Go to the documentation of this file.
1#include "/home/ilnur/bmnroot/macro/run/bmnloadlibs.C"
2
3#include <TCanvas.h>
4void HistGenTest(TString FileName = "pad.json")
5{
6#if ROOT_VERSION_CODE < ROOT_VERSION(5, 99, 99)
7 gROOT->LoadMacro("$VMCWORKDIR/macro/run/bmnloadlibs.C");
8#endif
9 bmnloadlibs();
10 gSystem->Load("libBmnMonitor");
12 g->LoadPTFrom(FileName);
13 BmnPadBranch* br = g->GetPadBranch();
14 TCanvas* can = new TCanvas("canHits", "", 1920, 1080);
15 g->PadTree2Canvas(br, can);
17
18 can->Update();
19 can->Modified();
20 can->SaveAs("/home/ilnur/filesbmn/autocan.png");
21 delete g;
22}
TCanvas * can(nullptr)
#define gROOT
R__EXTERN TSystem * gSystem
static BmnStatus DrawPadFromTree(BmnPadBranch *br)
Definition BmnHist.cxx:165
Node of pad tree.
Generates pad tree from the scheme.
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 ...
BmnPadBranch * GetPadBranch()
void LoadPTFrom(string FileName)
Load pad tree from json config.
void HistGenTest(TString FileName="pad.json")
Definition HistGenTest.C:4