BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
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
14
MpdMCTracksEditor::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 =
24
new
TGCompositeFrame
(fInfoFrame, 180, 10,
kVerticalFrame
|
kLHintsExpandX
|
kFixedWidth
|
kOwnBackground
);
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
kVerticalFrame
kFixedWidth
kFixedWidth
kOwnBackground
kOwnBackground
Pixel_t
ULong_t Pixel_t
Int_t
int Int_t
TFile.h
TGLabel.h
TGLayout.h
kLHintsTop
kLHintsTop
kLHintsExpandX
kLHintsExpandX
TString.h
MpdEventManager
Definition
MpdEventManager.h:32
MpdMCTracksEditor::MpdMCTracksEditor
MpdMCTracksEditor(const MpdMCTracksEditor &)=delete
MpdMCTracksEditor::fObject
TObject * fObject
Definition
MpdMCTracksEditor.h:14
MpdMCTracksEditor::fManager
MpdEventManager * fManager
Definition
MpdMCTracksEditor.h:15
TDirectoryFile::GetFile
TFile * GetFile() const override
TFile
TGCompositeFrame::AddFrame
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
TGCompositeFrame::TGCompositeFrame
TGCompositeFrame(const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1, UInt_t options=0, Pixel_t back=GetDefaultFrameBackground())
TGLabel
TGLayoutHints
TGVerticalFrame
TGWindow
TGedFrame::CreateEditorTabSubFrame
virtual TGVerticalFrame * CreateEditorTabSubFrame(const char *name)
TGedFrame::MakeTitle
virtual void MakeTitle(const char *title)
TGedFrame::TGedFrame
TGedFrame(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
TNamed::GetName
const char * GetName() const override
TString
TString::Data
const char * Data() const
MpdMCTracksEditor.h
eventdisplay
MpdMCTracksEditor.cxx
Generated on
for BmnRoot by
1.17.0