JG ROOT Tools libraries  version 5.0 - august 2014
RContourBaseGate.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file RContourBaseGate.hh
3  *
4  * Include file for class RContourBaseGate
5  */
6 //======================================================================
7 
8 #ifndef R_CONTOUR_BASE_GATE_HH
9 #define R_CONTOUR_BASE_GATE_HH
10 
11 #include "RContourBase1D.hh"
12 #include "RContour.hh"
13 
14 #include <TVirtualPad.h>
15 
16 //======================================================================
17 /*! \class RContourBaseGate
18  *
19  * Class for 1D gate contour parameters.
20  */
21 
23 {
24  //------------------------------------------------------------
25  /*! \object_doc{RContourBaseGate} */
27  //------------------------------------------------------------
28 
29  protected:
30  Double_t xmin; ///< Lower bound
31  Double_t xmax; ///< Upper bound
32 
33  Double_t yrep; ///< For display
34  Double_t ymin; ///< For display
35  Double_t ymax; ///< For display
36 
37  //------------------------------------------------------------
38  // Constructors / affectation / destructor
39  public:
40 
41  RContourBaseGate ( );
42  RContourBaseGate ( const Double_t x1, const Double_t x2 );
43  RContourBaseGate ( const RContourBaseGate & ct );
44 
46 
47  virtual ~RContourBaseGate ( );
48 
49  //------------------------------------------------------------
50 
51  // contour comparison
52  virtual bool Compare ( const RContourBase * ct_ptr ) const;
53 
54  // creation of associated ROOT objects list
55  virtual TList * CreateObjectList ( ) const;
56 
57  //------------------------------------------------------------
58  // Read / write functions
59 
60  virtual bool WriteData ( ostream &os ) const;
61  virtual bool WriteData ( FILE *fptr ) const;
62 
63  static RContourBaseGate * ReadNew ( istream &is );
64  static RContourBaseGate * ReadNew ( FILE *fptr );
65 
66  //------------------------------------------------------------
67  virtual bool CheckValue ( const Double_t x ) const; // inline
68  virtual Int_t Type ( ) const; // inline
69  virtual string TypeName ( ) const; // inline
70 
71  virtual void SetGate ( const Double_t x1, const Double_t x2 ); // inline
72  virtual Double_t GetXmin ( ) const; // inline
73  virtual Double_t GetXmax ( ) const; // inline
74 
75  virtual void SetYRep ( const Double_t y ); // inline
76  virtual void SetYMin ( const Double_t y ); // inline
77  virtual void SetYMax ( const Double_t y ); // inline
78  virtual Double_t GetYRep ( ) const; // inline
79  virtual Double_t GetYMin ( ) const; // inline
80  virtual Double_t GetYMax ( ) const; // inline
81 
82  virtual void SetYFromPad ( const TVirtualPad *pad, const Double_t r = 0.5 );
83 
84  public:
85  //------------------------------------------------------------
86  /*! For ROOT dictionary.*/
88 };
89 
90 //----------------------------------------------------------------------
91 // Inline functions
92 #include "icc/RContourBaseGate.icc"
93 
94 //======================================================================
95 #endif
virtual bool Compare(const RContourBase *ct_ptr) const
Definition: RContourBaseGate.cpp:91
virtual Double_t GetXmin() const
Definition: RContourBaseGate.icc:16
Double_t ymin
For display.
Definition: RContourBaseGate.hh:34
virtual void SetYRep(const Double_t y)
Definition: RContourBaseGate.icc:26
GObject(RContourBaseGate)
virtual Double_t GetXmax() const
Definition: RContourBaseGate.icc:20
Double_t xmax
Upper bound.
Definition: RContourBaseGate.hh:31
ClassDef(RContourBaseGate, 0)
virtual bool CheckValue(const Double_t x) const
Definition: RContourBaseGate.icc:59
RContourBaseGate & operator=(const RContourBaseGate &ct)
Definition: RContourBaseGate.cpp:63
Double_t yrep
For display.
Definition: RContourBaseGate.hh:33
Definition: RContourBase1D.hh:18
virtual string TypeName() const
Definition: RContourBaseGate.icc:68
virtual void SetYFromPad(const TVirtualPad *pad, const Double_t r=0.5)
Definition: RContourBaseGate.cpp:148
virtual void SetYMin(const Double_t y)
Definition: RContourBaseGate.icc:32
RContourBaseGate()
Definition: RContourBaseGate.cpp:21
virtual bool WriteData(ostream &os) const
Definition: RContourBaseGate.cpp:183
virtual Double_t GetYMin() const
Definition: RContourBaseGate.icc:46
Double_t xmin
Lower bound.
Definition: RContourBaseGate.hh:30
static RContourBaseGate * ReadNew(istream &is)
Definition: RContourBaseGate.cpp:218
virtual Int_t Type() const
Definition: RContourBaseGate.icc:64
virtual Double_t GetYRep() const
Definition: RContourBaseGate.icc:42
virtual TList * CreateObjectList() const
Definition: RContourBaseGate.cpp:112
virtual ~RContourBaseGate()
Definition: RContourBaseGate.cpp:81
Definition: RContourBaseGate.hh:22
virtual void SetGate(const Double_t x1, const Double_t x2)
Definition: RContourBaseGate.icc:12
virtual Double_t GetYMax() const
Definition: RContourBaseGate.icc:50
virtual void SetYMax(const Double_t y)
Definition: RContourBaseGate.icc:38
Definition: RContourBase.hh:19
Double_t ymax
For display.
Definition: RContourBaseGate.hh:35