BmnRoot
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
10#include "TFile.h"
11#include "TGLabel.h"
12#include "TGLayout.h"
13#include "TString.h"
14
15
16MpdMCTracksEditor::MpdMCTracksEditor(const TGWindow * p, Int_t width, Int_t height,
17 UInt_t options, Pixel_t back)
18 : TGedFrame(p, width, height, options | kVerticalFrame, back),
19 fObject(NULL),
20 fManager(MpdEventManager::Instance())
21{
22 //Resize(width, height);
23 MakeTitle("MpdEventManager Editor");
24
25 TGVerticalFrame* fInfoFrame = CreateEditorTabSubFrame("Info");
26 TGCompositeFrame* title1 = new TGCompositeFrame(fInfoFrame, 180, 10,
27 kVerticalFrame |
28 kLHintsExpandX |
29 kFixedWidth |
30 kOwnBackground);
31 TString Infile= "Input File : ";
32 TFile* file = FairRootManager::Instance()->GetInChain()->GetFile();
33 Infile += file->GetName();
34 TGLabel* TFName = new TGLabel(title1, Infile.Data());
35 title1->AddFrame(TFName);
36
37 UInt_t RunId = FairRunAna::Instance()->getRunId();
38 TString run = "Run Id : ";
39 run += RunId;
40 TGLabel* TRunId = new TGLabel(title1, run.Data());
41 title1->AddFrame(TRunId);
42
43 fInfoFrame->AddFrame(title1, new TGLayoutHints(kLHintsTop, 0, 0, 2, 0));
44}
-clang-format