9 #include "TGNumberEntry.h"
10 #include "TGeoManager.h"
12 #include "TEveGValuators.h"
27 :TGedFrame(p, width, height, options | kVerticalFrame, back),
28 fInfoFrame(NULL), fTimeWindowPlus(NULL), fTimeWindowMinus(NULL),
29 fObject(NULL), fM(NULL)
31 std::cout <<
"FairBoxSetEditor called!" << std::endl;
42 MakeTitle(
"FairBoxSet Editor");
45 TGCompositeFrame* title1 =
new TGCompositeFrame(
fInfoFrame, 250, 10,
46 kVerticalFrame | kLHintsExpandX |
47 kFixedWidth | kOwnBackground);
49 TGLabel* label1 =
new TGLabel(title1,
"Time window after event time [ns]: ");
50 title1->AddFrame(label1,
new TGLayoutHints(kLHintsLeft | kLHintsCenterY, 1, 2, 1, 1));
54 fTimeWindowPlus->GetNumberEntry()->SetToolTipText(
"Time window in ns for which points are shown");
55 fTimeWindowPlus->Connect(
"ValueSet(Long_t)",
"FairBoxSetEditor",
this,
"TimeWindow()");
56 title1->AddFrame(
fTimeWindowPlus,
new TGLayoutHints(kLHintsTop, 1, 1, 1, 0));
60 TGCompositeFrame* title2 =
new TGCompositeFrame(
fInfoFrame, 250, 10,
61 kVerticalFrame | kLHintsExpandX |
62 kFixedWidth | kOwnBackground);
64 TGLabel* label2 =
new TGLabel(title2,
"Time window before event time [ns]: ");
65 title2->AddFrame(label2,
new TGLayoutHints(kLHintsLeft | kLHintsCenterY, 1, 2, 1, 1));
66 fTimeWindowMinus =
new TGNumberEntry(title2, 0., 6, -1, TGNumberFormat::kNESInteger, TGNumberFormat::kNEANonNegative);
68 fTimeWindowMinus->GetNumberEntry()->SetToolTipText(
"Time window in ns for which points are shown");
69 fTimeWindowMinus->Connect(
"ValueSet(Long_t)",
"FairBoxSetEditor",
this,
"TimeWindow()");
70 title2->AddFrame(
fTimeWindowMinus,
new TGLayoutHints(kLHintsTop, 1, 1, 1, 0));
78 std::cout <<
"FairBoxSetEditor::TimeWindowPlus " <<
fTimeWindowPlus->GetNumber() << std::endl;
79 std::cout <<
"FairBoxSetEditor::TimeWindowMinus " <<
fTimeWindowMinus->GetNumber() << std::endl;