17 : TGedFrame(p, width, height, options | kVerticalFrame, back),
18 fInfoFrame(NULL), fTimeWindowPlus(NULL), fTimeWindowMinus(NULL), fObject(NULL), fM(NULL)
20 cout<<
"MpdBoxSetEditor called!"<<endl;
26 MakeTitle(
"MpdBoxSet Editor");
29 TGCompositeFrame* title1 =
new TGCompositeFrame(
fInfoFrame, 250, 10,
30 kVerticalFrame | kLHintsExpandX |
31 kFixedWidth | kOwnBackground);
33 TGLabel* label1 =
new TGLabel(title1,
"Time window after event time [ns]: ");
34 title1->AddFrame(label1,
new TGLayoutHints(kLHintsLeft | kLHintsCenterY, 1, 2, 1, 1));
38 fTimeWindowPlus->GetNumberEntry()->SetToolTipText(
"Time window in ns for which points are shown");
39 fTimeWindowPlus->Connect(
"ValueSet(Long_t)",
"MpdBoxSetEditor",
this,
"TimeWindow()");
40 title1->AddFrame(
fTimeWindowPlus,
new TGLayoutHints(kLHintsTop, 1, 1, 1, 0));
44 TGCompositeFrame* title2 =
new TGCompositeFrame(
fInfoFrame, 250, 10,
45 kVerticalFrame | kLHintsExpandX |
46 kFixedWidth | kOwnBackground);
48 TGLabel* label2 =
new TGLabel(title2,
"Time window before event time [ns]: ");
49 title2->AddFrame(label2,
new TGLayoutHints(kLHintsLeft | kLHintsCenterY, 1, 2, 1, 1));
50 fTimeWindowMinus =
new TGNumberEntry(title2, 0., 6, -1, TGNumberFormat::kNESInteger, TGNumberFormat::kNEANonNegative);
52 fTimeWindowMinus->GetNumberEntry()->SetToolTipText(
"Time window in ns for which points are shown");
53 fTimeWindowMinus->Connect(
"ValueSet(Long_t)",
"MpdBoxSetEditor",
this,
"TimeWindow()");
54 title2->AddFrame(
fTimeWindowMinus,
new TGLayoutHints(kLHintsTop, 1, 1, 1, 0));