30 : TGedFrame(p, width, height, options | kVerticalFrame, back)
34 MakeTitle(
"FairGeoTracksEditor");
35 SetName(
"MCtracksEditor");
37 TGVerticalFrame *kinFrame = CreateEditorTabSubFrame(
"Kin");
44 fPtCut->AddUpdateButton();
46 TGVerticalFrame *statFrame = CreateEditorTabSubFrame(
"Status");
48 fPrimary.reset(
new FairEveBoolCut(
this, statFrame,
"Primary", width));
49 fPrimary->UpdateWhenChanged();
50 fPrimary->SetInitStatus(kTRUE);
51 fSecondary.reset(
new FairEveBoolCut(
this, statFrame,
"Secondary", width));
52 fSecondary->SetInitStatus(kTRUE);
53 fSecondary->UpdateWhenChanged();
54 fPdgCut.reset(
new FairEveIntCut(
this, statFrame,
"PDG", width));
58 fPdgCut->AddUpdateButton();
60 TGCompositeFrame *ToogleFrame =
new TGCompositeFrame(statFrame, width, 20, kHorizontalFrame | kFixedWidth);
61 TGTextButton *ToogleButton =
new TGTextButton(ToogleFrame,
"Toggle Tracks");
62 ToogleButton->Connect(
"Clicked()", this->ClassName(),
this,
"ToggleTracks()");
63 ToogleFrame->AddFrame(ToogleButton,
new TGLayoutHints(kLHintsRight | kLHintsExpandX, 1, 1, 2, 1));
64 statFrame->AddFrame(ToogleFrame,
new TGLayoutHints(kLHintsTop, 1, 1, 2, 1));
66 TGCompositeFrame *ToogleGroupFrame =
new TGCompositeFrame(statFrame, width, 20, kHorizontalFrame | kFixedWidth);
67 TGTextButton *ToogleGroupButton =
new TGTextButton(ToogleGroupFrame,
"Toggle Groups");
68 ToogleGroupButton->Connect(
"Clicked()", this->ClassName(),
this,
"ToggleGroups()");
69 ToogleGroupFrame->AddFrame(ToogleGroupButton,
new TGLayoutHints(kLHintsRight | kLHintsExpandX, 1, 1, 2, 1));
70 statFrame->AddFrame(ToogleGroupFrame,
new TGLayoutHints(kLHintsTop, 1, 1, 2, 1));
84 Bool_t use = fPtCut->GetValues(min, max);
86 use = fEtaCut->GetValues(min, max);
88 use = fEnergyCut->GetValues(min, max);
91 use = fPdgCut->GetValue(pdg_code);
93 fGeoTracks->
SetShowPrimSec(fPrimary->GetValue(), fSecondary->GetValue());
void SetPdgCut(Int_t pdg, Bool_t use)
virtual void SetModel(TObject *obj)
FairEveGeoTracksEditor(const TGWindow *p=0, Int_t width=170, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
virtual ~FairEveGeoTracksEditor()
void SetPtCut(Double_t min, Double_t max, Bool_t use)
void SetEtaCut(Double_t min, Double_t max, Bool_t use)
void SetShowPrimSec(Bool_t prim, Bool_t sec)
void SetEnergyCut(Double_t min, Double_t max, Bool_t use)