9 #include "TGNumberEntry.h"
10 #include "TGeoManager.h"
27 :TGedFrame(p, width, height, options | kVerticalFrame, back),
45 Int_t Entries= chain->GetEntriesFast();
47 MakeTitle(
"FairEventManager Editor");
48 TGVerticalFrame* fInfoFrame= CreateEditorTabSubFrame(
"Info");
49 TGCompositeFrame* title1 =
new TGCompositeFrame(fInfoFrame, 250, 10,
50 kVerticalFrame | kLHintsExpandX |
51 kFixedWidth | kOwnBackground);
53 TString Infile=
"Input file : ";
56 Infile+=file->GetName();
57 TGLabel* TFName=
new TGLabel(title1, Infile.Data());
58 title1->AddFrame(TFName);
61 TString
run=
"Run Id : ";
63 TGLabel* TRunId=
new TGLabel(title1, run.Data());
64 title1->AddFrame( TRunId);
66 TString nevent=
"No of events : ";
68 TGLabel* TEvent=
new TGLabel(title1, nevent.Data());
69 title1->AddFrame(TEvent);
71 Int_t nodes= gGeoManager->GetNNodes();
72 TString NNodes=
"No. of Nodes : ";
74 TGLabel* NoNode=
new TGLabel(title1, NNodes.Data());
75 title1->AddFrame( NoNode);
77 TGHorizontalFrame* f =
new TGHorizontalFrame(title1);
78 TGLabel* l =
new TGLabel(f,
"Current Event:");
79 f->AddFrame(l,
new TGLayoutHints(kLHintsLeft | kLHintsCenterY, 1, 2, 1, 1));
81 TGNumberFormat::kNESInteger, TGNumberFormat::kNEANonNegative,
82 TGNumberFormat::kNELLimitMinMax, 0, Entries);
83 f->AddFrame(
fCurrentEvent,
new TGLayoutHints(kLHintsLeft, 1, 1, 1, 1));
84 fCurrentEvent->Connect(
"ValueSet(Long_t)",
"FairEventManagerEditor",
this,
"SelectEvent()");
87 TGHorizontalFrame*
f2 =
new TGHorizontalFrame(title1);
88 TGLabel* EventTimeLabel =
new TGLabel(f2,
"Event Time: ");
90 f2->AddFrame(EventTimeLabel);
94 fVizPri =
new TGCheckButton(title1,
"Primary Only");
95 AddFrame(
fVizPri,
new TGLayoutHints(kLHintsTop, 3, 1, 1, 0));
96 fVizPri->Connect(
"Toggled(Bool_t)",
"FairEventManagerEditor",
this,
"DoVizPri()");
100 TGHorizontalFrame* f1 =
new TGHorizontalFrame(title1);
101 TGLabel* L1 =
new TGLabel(f1,
"Select PDG :");
102 f1->AddFrame(L1,
new TGLayoutHints(kLHintsLeft | kLHintsCenterY, 1, 2, 1, 1));
104 TGNumberFormat::kNESInteger, TGNumberFormat::kNEAAnyNumber,
105 TGNumberFormat::kNELNoLimits, 0, 1);
106 f1->AddFrame(
fCurrentPDG,
new TGLayoutHints(kLHintsLeft, 1, 1, 1, 1));
107 fCurrentPDG->Connect(
"ValueSet(Long_t)",
"FairEventManagerEditor",
this,
"SelectPDG()");
108 title1->AddFrame(f1);
111 fMinEnergy =
new TEveGValuator(title1,
"Min Energy:", 90, 0);
115 fMinEnergy->SetLimits(0,
MAXE, 2501, TGNumberFormat::kNESRealOne);
116 fMinEnergy->SetToolTip(
"Minimum energy of displayed track.");
117 fMinEnergy->Connect(
"ValueSet(Double_t)",
"FairEventManagerEditor",
this,
"MinEnergy()");
118 title1->AddFrame(
fMinEnergy,
new TGLayoutHints(kLHintsTop, 1, 1, 1, 0));
121 fMaxEnergy =
new TEveGValuator(title1,
"Max Energy:", 90, 0);
125 fMaxEnergy->SetLimits(0,
MAXE, 2501, TGNumberFormat::kNESRealOne);
126 fMaxEnergy->SetToolTip(
"Maximum energy of displayed track.");
128 fMaxEnergy->Connect(
"ValueSet(Double_t)",
"FairEventManagerEditor",
this,
"MaxEnergy()");
129 title1->AddFrame(
fMaxEnergy,
new TGLayoutHints(kLHintsTop, 1, 1, 1, 0));
131 TGTextButton* fUpdate =
new TGTextButton(title1,
"Update");
132 title1->AddFrame(fUpdate,
new TGLayoutHints(kLHintsRight | kLHintsExpandX, 5,5,1,1));
133 fUpdate->Connect(
"Clicked()",
"FairEventManagerEditor",
this,
"SelectEvent()");
135 fInfoFrame->AddFrame(title1,
new TGLayoutHints(kLHintsTop, 0, 0, 2, 0));