MnParabolaPoint.h

Go to the documentation of this file.
00001 // @(#)root/minuit2:$Id: MnParabolaPoint.h 23522 2008-04-24 15:09:19Z moneta $
00002 // Authors: M. Winkler, F. James, L. Moneta, A. Zsenei   2003-2005  
00003 
00004 /**********************************************************************
00005  *                                                                    *
00006  * Copyright (c) 2005 LCG ROOT Math team,  CERN/PH-SFT                *
00007  *                                                                    *
00008  **********************************************************************/
00009 
00010 #ifndef ROOT_Minuit2_MnParabolaPoint
00011 #define ROOT_Minuit2_MnParabolaPoint
00012 
00013 namespace ROOT {
00014 
00015    namespace Minuit2 {
00016 
00017 
00018 
00019 /** 
00020 
00021 A point of a parabola.
00022 
00023 <p>
00024 
00025 ????!!!! in reality it is just a general point in two dimensional space,
00026 there is nothing that would indicate, that it belongs to a parabola.
00027 This class defines simpy an (x,y) pair!!!!
00028 
00029 @author Fred James and Matthias Winkler; comments added by Andras Zsenei
00030 and Lorenzo Moneta
00031 
00032 @ingroup Minuit
00033 
00034 \todo Should it be called MnParabolaPoint or just Point?
00035 
00036  */
00037 
00038 
00039 class MnParabolaPoint {
00040 
00041 public:
00042 
00043 
00044   /**
00045     
00046   Initializes the point with its coordinates.
00047 
00048   @param x the x (first) coordinate of the point.
00049   @param y the y (second) coordinate of the point. 
00050 
00051   */
00052 
00053   MnParabolaPoint(double x, double y) : fX(x), fY(y) {}
00054 
00055   ~MnParabolaPoint() {}
00056 
00057 
00058   /**
00059 
00060   Accessor to the x (first) coordinate.
00061 
00062   @return the x (first) coordinate of the point.
00063 
00064   */
00065 
00066   double X() const {return fX;}
00067 
00068 
00069   /**
00070 
00071   Accessor to the y (second) coordinate.
00072 
00073   @return the y (second) coordinate of the point.
00074 
00075   */
00076 
00077   double Y() const {return fY;}
00078 
00079 private:
00080 
00081   double fX;
00082   double fY;
00083 };
00084 
00085   }  // namespace Minuit2
00086 
00087 }  // namespace ROOT
00088 
00089 #endif  // ROOT_Minuit2_MnParabolaPoint

Generated on Tue Jul 5 14:25:44 2011 for ROOT_528-00b_version by  doxygen 1.5.1