CXArrow.h 735 Bytes
Newer Older
Jérémie Dudouet's avatar
Jérémie Dudouet committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
#ifndef CXArrow_H
#define CXArrow_H

#include "TArrow.h"

class CXFit;

class CXArrow : public  TArrow
{

private:

    TList *fList = nullptr;
    CXFit *fFit = nullptr;

public:

    CXArrow(CXFit *fit, Double_t E,Double_t y1 ,Double_t y2,Float_t arrowsize=0.05,Option_t *option=">");
    ~CXArrow();

    CXFit *GetFit(){return fFit;}

    //! Energy
    void SetEnergy(Float_t E); // *MENU* *ARGS={E=>fX1}*
    Double_t GetEnergy() const {return fX1;}

    void Set(Double_t X, Double_t Y1, Double_t Y2);

    void RemoveArrow(); // *MENU*
    void RemoveFit(); // *MENU*

    //! Sort
    virtual Bool_t  IsSortable() const {return kTRUE;}
    virtual Int_t Compare(const TObject *obj) const;

    ClassDef(CXArrow,0);
};

#endif