14 #include <TGNumberEntry.h>
15 #include <fairlogger/Logger.h>
29 : TGedFrame(p, width, height, options | kVerticalFrame, back)
31 , fTimeWindowPlus(nullptr)
32 , fTimeWindowMinus(nullptr)
36 LOG(info) <<
"FairBoxSetEditor called!";
46 MakeTitle(
"FairBoxSet Editor");
49 TGCompositeFrame* title1 =
50 new TGCompositeFrame(
fInfoFrame, 250, 10, kVerticalFrame | kLHintsExpandX | kFixedWidth | kOwnBackground);
52 TGLabel* label1 =
new TGLabel(title1,
"Time window after event time [ns]: ");
53 title1->AddFrame(label1,
new TGLayoutHints(kLHintsLeft | kLHintsCenterY, 1, 2, 1, 1));
56 new TGNumberEntry(title1);
58 fTimeWindowPlus->GetNumberEntry()->SetToolTipText(
"Time window in ns for which points are shown");
59 fTimeWindowPlus->Connect(
"ValueSet(Long_t)",
"FairBoxSetEditor",
this,
"TimeWindow()");
60 title1->AddFrame(
fTimeWindowPlus,
new TGLayoutHints(kLHintsTop, 1, 1, 1, 0));
64 TGCompositeFrame* title2 =
65 new TGCompositeFrame(
fInfoFrame, 250, 10, kVerticalFrame | kLHintsExpandX | kFixedWidth | kOwnBackground);
67 TGLabel* label2 =
new TGLabel(title2,
"Time window before event time [ns]: ");
68 title2->AddFrame(label2,
new TGLayoutHints(kLHintsLeft | kLHintsCenterY, 1, 2, 1, 1));
74 TGNumberFormat::kNESInteger,
75 TGNumberFormat::kNEANonNegative);
77 fTimeWindowMinus->GetNumberEntry()->SetToolTipText(
"Time window in ns for which points are shown");
78 fTimeWindowMinus->Connect(
"ValueSet(Long_t)",
"FairBoxSetEditor",
this,
"TimeWindow()");
79 title2->AddFrame(
fTimeWindowMinus,
new TGLayoutHints(kLHintsTop, 1, 1, 1, 0));
86 LOG(debug) <<
"FairBoxSetEditor::TimeWindowPlus " <<
fTimeWindowPlus->GetNumber();
87 LOG(debug) <<
"FairBoxSetEditor::TimeWindowMinus " <<
fTimeWindowMinus->GetNumber();
virtual Int_t GetCurrentEvent()
ClassImp(FairEventBuilder)
TGNumberEntry * fTimeWindowMinus
TGNumberEntry * fTimeWindowPlus
void SetTimeWindowMinus(Double_t time)
TGVerticalFrame * fInfoFrame
static FairEventManager * Instance()
virtual void GotoEvent(Int_t event)
FairBoxSetEditor(const TGWindow *p=0, Int_t width=170, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
virtual void TimeWindow()
void SetTimeWindowPlus(Double_t time)