Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:37

0001 // @(#)root/graf:$Id$
0002 // Author: Rene Brun   08/08/2002
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TCrown
0013 #define ROOT_TCrown
0014 
0015 
0016 #include "TEllipse.h"
0017 
0018 
0019 class TCrown : public TEllipse {
0020 
0021 public:
0022    TCrown();
0023    TCrown(Double_t x1, Double_t y1,Double_t radin, Double_t radout,
0024           Double_t phimin=0,Double_t phimax=360);
0025    TCrown(const TCrown &crown);
0026    ~TCrown() override;
0027 
0028    void Copy(TObject &crown) const override;
0029    Int_t   DistancetoPrimitive(Int_t px, Int_t py) override;
0030    virtual TCrown *DrawCrown(Double_t x1, Double_t y1, Double_t radin, Double_t radout,
0031                              Double_t  phimin=0, Double_t  phimax=360, Option_t *option="");
0032    void    ExecuteEvent(Int_t event, Int_t px, Int_t py) override;
0033    Int_t   IsInside(Double_t x, Double_t y) const;
0034    void    Paint(Option_t *option="") override;
0035    void    SavePrimitive(std::ostream &out, Option_t *option = "") override;
0036 
0037    ClassDefOverride(TCrown,1)  //A crown or segment of crown
0038 };
0039 
0040 #endif