BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
MpdMCTracksEditor.cxx
Go to the documentation of this file.
1// MpdMCTracksEditor
2//
3// Specialization of TGedEditor for proper update propagation to TEveManager.
4
5#include "MpdMCTracksEditor.h"
6
7#include "FairRootManager.h"
8#include "FairRunAna.h"
9#include "TFile.h"
10#include "TGLabel.h"
11#include "TGLayout.h"
12#include "TString.h"
13
14MpdMCTracksEditor::MpdMCTracksEditor(const TGWindow* p, Int_t width, Int_t height, UInt_t options, Pixel_t back)
15 : TGedFrame(p, width, height, options | kVerticalFrame, back)
16 , fObject(NULL)
17 , fManager(MpdEventManager::Instance())
18{
19 // Resize(width, height);
20 MakeTitle("MpdEventManager Editor");
21
22 TGVerticalFrame* fInfoFrame = CreateEditorTabSubFrame("Info");
23 TGCompositeFrame* title1 =
25 TString Infile = "Input File : ";
26 TFile* file = FairRootManager::Instance()->GetInChain()->GetFile();
27 Infile += file->GetName();
28 TGLabel* TFName = new TGLabel(title1, Infile.Data());
29 title1->AddFrame(TFName);
30
31 UInt_t RunId = FairRunAna::Instance()->getRunId();
32 TString run = "Run Id : ";
33 run += RunId;
34 TGLabel* TRunId = new TGLabel(title1, run.Data());
35 title1->AddFrame(TRunId);
36
37 fInfoFrame->AddFrame(title1, new TGLayoutHints(kLHintsTop, 0, 0, 2, 0));
38}
kVerticalFrame
kFixedWidth
kOwnBackground
ULong_t Pixel_t
int Int_t
kLHintsTop
kLHintsExpandX
MpdMCTracksEditor(const MpdMCTracksEditor &)=delete
MpdEventManager * fManager
TFile * GetFile() const override
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
TGCompositeFrame(const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1, UInt_t options=0, Pixel_t back=GetDefaultFrameBackground())
virtual TGVerticalFrame * CreateEditorTabSubFrame(const char *name)
virtual void MakeTitle(const char *title)
TGedFrame(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
const char * GetName() const override
const char * Data() const