@@ -55,8 +55,9 @@ FairEventManagerEditor::FairEventManagerEditor(const TGWindow* p, Int_t width, I
55
55
56
56
void FairEventManagerEditor::Init ()
57
57
{
58
-
59
- FairRootManager* fRootManager =FairRootManager::Instance ();
58
+ FairRootManager* fRootManager =fManager ->GetFairRootManager ();
59
+ if (fRootManager ==0 ){return ;};
60
+ if (fRootManager ==0 ){fRootManager =new FairRootManager ();};
60
61
TChain* chain =fRootManager ->GetInChain ();
61
62
Int_t Entries= chain->GetEntriesFast ();
62
63
@@ -65,10 +66,10 @@ void FairEventManagerEditor::Init()
65
66
TGCompositeFrame* title1 = new TGCompositeFrame (fInfoFrame , 250 , 10 ,
66
67
kVerticalFrame | kLHintsExpandX |
67
68
kFixedWidth | kOwnBackground );
68
-
69
+
69
70
TString Infile= " Input file : " ;
70
71
// TFile* file =FairRunAna::Instance()->GetInputFile();
71
- TFile* file =FairRootManager::Instance () ->GetInChain ()->GetFile ();
72
+ TFile* file =fRootManager ->GetInChain ()->GetFile ();
72
73
Infile+=file->GetName ();
73
74
TGLabel* TFName=new TGLabel (title1, Infile.Data ());
74
75
title1->AddFrame (TFName);
@@ -186,7 +187,7 @@ void FairEventManagerEditor::SelectEvent()
186
187
187
188
TString time;
188
189
// time+=(FairRootManager::Instance()->GetEventTime());
189
- time.Form (" %.2f" , FairRootManager::Instance ()->GetEventTime ());
190
+ time.Form (" %.2f" , fManager -> GetFairRootManager ()->GetEventTime ());
190
191
time += " ns" ;
191
192
fEventTime ->SetText (time.Data ());
192
193
0 commit comments