28 : TGedFrame(p, width, height, options | kVerticalFrame, back)
32 MakeTitle(
"FairMCTracksEditor");
33 SetName(
"MCtracksEditor");
35 TGVerticalFrame *kinFrame = CreateEditorTabSubFrame(
"Kin");
36 fPtCut = std::unique_ptr<FairEveMinMaxCut>(
new FairEveMinMaxCut(
this, kinFrame,
"Pt", width));
37 fEtaCut = std::unique_ptr<FairEveMinMaxCut>(
new FairEveMinMaxCut(
this, kinFrame,
"Eta", width));
38 fEnergyCut = std::unique_ptr<FairEveMinMaxCut>(
new FairEveMinMaxCut(
this, kinFrame,
"E", width));
42 fPtCut->AddUpdateButton();
44 TGVerticalFrame *statFrame = CreateEditorTabSubFrame(
"Status");
46 fPrimary = std::unique_ptr<FairEveBoolCut>(
new FairEveBoolCut(
this, statFrame,
"Primary", width));
47 fPrimary->UpdateWhenChanged();
48 fPrimary->SetInitStatus(kTRUE);
49 fSecondary = std::unique_ptr<FairEveBoolCut>(
new FairEveBoolCut(
this, statFrame,
"Secondary", width));
50 fSecondary->SetInitStatus(kTRUE);
51 fSecondary->UpdateWhenChanged();
52 fPdgCut = std::unique_ptr<FairEveIntCut>(
new FairEveIntCut(
this, statFrame,
"PDG", width));
56 fPdgCut->AddUpdateButton();
58 TGCompositeFrame *ToogleFrame =
new TGCompositeFrame(statFrame, width, 20, kHorizontalFrame | kFixedWidth);
59 TGTextButton *ToogleButton =
new TGTextButton(ToogleFrame,
"Toggle Tracks");
60 ToogleButton->Connect(
"Clicked()", this->ClassName(),
this,
"ToggleTracks()");
61 ToogleFrame->AddFrame(ToogleButton,
new TGLayoutHints(kLHintsRight | kLHintsExpandX, 1, 1, 2, 1));
62 statFrame->AddFrame(ToogleFrame,
new TGLayoutHints(kLHintsTop, 1, 1, 2, 1));
76 Bool_t use = fPtCut->GetValues(min, max);
78 use = fEtaCut->GetValues(min, max);
80 use = fEnergyCut->GetValues(min, max);
83 use = fPdgCut->GetValue(pdg_code);
85 fMCTracks->
SetShowPrimSec(fPrimary->GetValue(), fSecondary->GetValue());
void SetPdgCut(Int_t pdg, Bool_t use)
FairEveMCTracksEditor(const TGWindow *p=0, Int_t width=170, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
virtual ~FairEveMCTracksEditor()
void SetShowPrimSec(Bool_t prim, Bool_t sec)
void SetPtCut(Double_t min, Double_t max, Bool_t use)
void SetEtaCut(Double_t min, Double_t max, Bool_t use)
virtual void SetModel(TObject *obj)
void SetEnergyCut(Double_t min, Double_t max, Bool_t use)