#ifndef ALISLIDERFRAME_H #define ALISLIDERFRAME_H /* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ ///////////////////////////////////////////////////////////////////////// // ALICE SLIDER FRAME CLASS // // Author: Mayeul ROUSSELET // // e-mail: Mayeul.Rousselet@cern.ch // // Last update:26/08/2003 // ///////////////////////////////////////////////////////////////////////// #include #include #include class TGCompositeFrame; class TGLayoutHints; class TGLabel; class TGNumberEntry; class AliSliderFrame{ //This class implements the cuts manager public: AliSliderFrame(const TGWindow *p, UInt_t w, UInt_t h); virtual ~AliSliderFrame(); //Setters void SetMomentumRange(Float_t min, Float_t max){fMomentumSlider->SetRange(min,max);}; void SetRapidityRange(Float_t min, Float_t max){fRapiditySlider->SetRange(min,max);}; Float_t GetMomentumMax() const {return fMomentumSlider->GetMaxPosition();}; Float_t GetMomentumMin() const {return fMomentumSlider->GetMinPosition();}; Float_t GetRapidityMax() const {return fRapiditySlider->GetMaxPosition();}; Float_t GetRapidityMin() const {return fRapiditySlider->GetMinPosition();}; TGCompositeFrame* GetSliderFrame() const {return fMainFrame;}; //Slots void CloseWindow(); void DoSlider(Int_t pos=0); void DoField(Long_t pos=0); void DoReleased(Int_t pos=0) const; void DoPositionChanged(Int_t pos=0) const; //I/O void SaveToRC() const; void LoadFromRC(); private: TGCompositeFrame *fMainFrame; // Main frame TGCompositeFrame *fMomentumFrame; // Momentum frame TGCompositeFrame *fRapidityFrame; // Rapidity frame TGLayoutHints *fLayout;//Layout of the frame TGLayoutHints *fMomentumLayout; // Layout of momentum frame TGLayoutHints *fRapidityLayout; // Layout of rapidity frame TGDoubleHSlider *fMomentumSlider; // Momentum slider TGDoubleHSlider *fRapiditySlider; // Rapidity slider TGLabel *fMomentumLabel; // Momentum label TGLabel *fRapidityLabel; // Rapidity label TGNumberEntry *fMomentumMaxValue;// Max. value of momentum TGNumberEntry *fMomentumMinValue;// Min. value of momentum TGNumberEntry *fRapidityMaxValue;// Max. value of rapidity TGNumberEntry *fRapidityMinValue;// Min. value of rapidity RQ_OBJECT("AliSliderFrame") ClassDef(AliSliderFrame,0); }; #endif