RooComplex.cxx

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Project: RooFit                                                           *
00003  * Package: RooFitCore                                                       *
00004  * @(#)root/roofitcore:$Id: RooComplex.cxx 24269 2008-06-13 15:37:03Z wouter $
00005  * Authors:                                                                  *
00006  *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
00007  *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
00008  *                                                                           *
00009  * Copyright (c) 2000-2005, Regents of the University of California          *
00010  *                          and Stanford University. All rights reserved.    *
00011  *                                                                           *
00012  * Redistribution and use in source and binary forms,                        *
00013  * with or without modification, are permitted according to the terms        *
00014  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
00015  *****************************************************************************/
00016 
00017 //////////////////////////////////////////////////////////////////////////////
00018 // 
00019 // BEGIN_HTML
00020 // Class RooComplex is a simple container class for complex values
00021 // END_HTML
00022 //
00023 
00024 #include "RooFit.h"
00025 
00026 #include "RooComplex.h"
00027 #include "RooComplex.h"
00028 #include "Riostream.h"
00029 #include <iomanip>
00030 
00031 ClassImp(RooComplex)
00032 
00033 
00034 //_____________________________________________________________________________
00035 void RooComplex::Print() const {
00036 //  WVE Solaric CC5.0 complains about this
00037   cout << *this << endl;
00038 }
00039 
00040 ostream& operator<<(ostream& os, const RooComplex& z)
00041 {
00042   // Print real and imaginary component on ostream
00043   return os << "(" << z.re() << "," << z.im() << ")";
00044 }

Generated on Tue Jul 5 15:06:20 2011 for ROOT_528-00b_version by  doxygen 1.5.1