EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairMCTracksEditor.cxx
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FairMCTracksEditor.cxx
1 #include "FairMCTracksEditor.h"
2 
3 #include "FairEventManager.h"
4 #include "FairRunAna.h"
5 
6 #include "TGLabel.h"
7 
8 //______________________________________________________________________________
9 // FairMCTracksEditor
10 //
11 // Specialization of TGedEditor for proper update propagation to
12 // TEveManager.
13 
15 
16 
17 //______________________________________________________________________________
18 FairMCTracksEditor::FairMCTracksEditor(const TGWindow* p, Int_t width, Int_t height,
19  UInt_t options, Pixel_t back)
20  : TGedFrame(p, width, height, options | kVerticalFrame, back),
21  fObject(NULL),
22  fManager(FairEventManager::Instance())
23 {
24  // Resize(width, height);
25  // fManager= FairEventManager::Instance();
26 
27  MakeTitle("FairEventManager Editor");
28 
29  TGVerticalFrame* fInfoFrame= CreateEditorTabSubFrame("Info");
30  TGCompositeFrame* title1 = new TGCompositeFrame(fInfoFrame, 180, 10,
31  kVerticalFrame |
32  kLHintsExpandX |
33  kFixedWidth |
34  kOwnBackground);
35  TString Infile= "Input File : ";
36 // TFile* file =FairRunAna::Instance()->GetInputFile();
37  TFile* file =FairRootManager::Instance()->GetInChain()->GetFile();
38  Infile+=file->GetName();
39  TGLabel* TFName=new TGLabel(title1, Infile.Data());
40  title1->AddFrame(TFName);
41 
42  UInt_t RunId= FairRunAna::Instance()->getRunId();
43  TString run= "Run Id : ";
44  run += RunId;
45  TGLabel* TRunId=new TGLabel(title1, run.Data());
46  title1->AddFrame( TRunId);
47 
48  fInfoFrame->AddFrame(title1, new TGLayoutHints(kLHintsTop, 0, 0, 2, 0));
49 }
50 
51 //______________________________________________________________________________
53 {
54  fObject = obj;
55 }
56 //______________________________________________________________________________
57 
58 
59