24 #include <RtypesCore.h>
34 : TGedFrame(p, width, height, options | kVerticalFrame, back)
35 , fRecoTracks(nullptr)
37 MakeTitle(
"FairRecoTracksEditor");
38 SetName(
"RecoTracksEditor");
40 TGVerticalFrame *kinFrame = CreateEditorTabSubFrame(
"Kin");
41 fPtCut = std::unique_ptr<FairEveMinMaxCut>(
new FairEveMinMaxCut(
this, kinFrame,
"Pt", width));
42 fEtaCut = std::unique_ptr<FairEveMinMaxCut>(
new FairEveMinMaxCut(
this, kinFrame,
"Eta", width));
43 fEnergyCut = std::unique_ptr<FairEveMinMaxCut>(
new FairEveMinMaxCut(
this, kinFrame,
"E", width));
47 fPtCut->AddUpdateButton();
49 TGVerticalFrame *statFrame = CreateEditorTabSubFrame(
"Status");
51 fDrawMC = std::unique_ptr<FairEveBoolCut>(
new FairEveBoolCut(
this, statFrame,
"Draw MC", 1));
52 fDrawMC->UpdateWhenChanged();
55 TGCompositeFrame *ToogleFrame =
new TGCompositeFrame(statFrame, width, 20, kHorizontalFrame | kFixedWidth);
56 TGTextButton *ToogleButton =
new TGTextButton(ToogleFrame,
"Toggle Tracks");
57 ToogleButton->Connect(
"Clicked()", this->ClassName(),
this,
"ToggleTracks()");
58 ToogleFrame->AddFrame(ToogleButton,
new TGLayoutHints(kLHintsRight | kLHintsExpandX, 1, 1, 2, 1));
59 statFrame->AddFrame(ToogleFrame,
new TGLayoutHints(kLHintsTop, 1, 1, 2, 1));
76 Bool_t use = fPtCut->GetValues(min, max);
77 fRecoTracks->
SetPtCut(min, max, use);
78 use = fEtaCut->GetValues(min, max);
80 use = fEnergyCut->GetValues(min, max);
82 fRecoTracks->
SetDrawMC(fDrawMC->GetValue());
virtual ~FairEveRecoTracksExampleEditor()
virtual void SetModel(TObject *obj)
void SetDrawMC(Bool_t draw)
void SetPtCut(Double_t min, Double_t max, Bool_t use)
void SetEtaCut(Double_t min, Double_t max, Bool_t use)
FairEveRecoTracksExampleEditor(const TGWindow *p=0, Int_t width=170, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
void SetEnergyCut(Double_t min, Double_t max, Bool_t use)