ROOT logo
/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitCore                                                       *
 * @(#)root/roofitcore:$Id$
 * Authors:                                                                  *
 *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
 *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
 *                                                                           *
 * Copyright (c) 2000-2005, Regents of the University of California          *
 *                          and Stanford University. All rights reserved.    *
 *                                                                           *
 * Redistribution and use in source and binary forms,                        *
 * with or without modification, are permitted according to the terms        *
 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
 *****************************************************************************/

//////////////////////////////////////////////////////////////////////////////
// 
// BEGIN_HTML
// Class RooComplex is a simple container class for complex values
// END_HTML
//

#include "RooFit.h"

#define ROO_COMPLEX_CXX
#include "RooComplex.h"
#include "Riostream.h"
#include <iomanip>

using namespace std;

ClassImp(RooComplex)

void RooComplex::warn() const
{
    static int nwarns = 0;
    if (nwarns < 1<<12) {
	cout << "[#0] WARN: RooComplex is deprecated. Please use std::complex<Double_t> in your code instead." << std::endl;
	++nwarns;
    }
}

//_____________________________________________________________________________
void RooComplex::Print() const {
//  WVE Solaric CC5.0 complains about this
  cout << *this << endl;
}

ostream& operator<<(ostream& os, const RooComplex& z)
{
  // Print real and imaginary component on ostream
  return os << "(" << z.re() << "," << z.im() << ")";
}
 RooComplex.cxx:1
 RooComplex.cxx:2
 RooComplex.cxx:3
 RooComplex.cxx:4
 RooComplex.cxx:5
 RooComplex.cxx:6
 RooComplex.cxx:7
 RooComplex.cxx:8
 RooComplex.cxx:9
 RooComplex.cxx:10
 RooComplex.cxx:11
 RooComplex.cxx:12
 RooComplex.cxx:13
 RooComplex.cxx:14
 RooComplex.cxx:15
 RooComplex.cxx:16
 RooComplex.cxx:17
 RooComplex.cxx:18
 RooComplex.cxx:19
 RooComplex.cxx:20
 RooComplex.cxx:21
 RooComplex.cxx:22
 RooComplex.cxx:23
 RooComplex.cxx:24
 RooComplex.cxx:25
 RooComplex.cxx:26
 RooComplex.cxx:27
 RooComplex.cxx:28
 RooComplex.cxx:29
 RooComplex.cxx:30
 RooComplex.cxx:31
 RooComplex.cxx:32
 RooComplex.cxx:33
 RooComplex.cxx:34
 RooComplex.cxx:35
 RooComplex.cxx:36
 RooComplex.cxx:37
 RooComplex.cxx:38
 RooComplex.cxx:39
 RooComplex.cxx:40
 RooComplex.cxx:41
 RooComplex.cxx:42
 RooComplex.cxx:43
 RooComplex.cxx:44
 RooComplex.cxx:45
 RooComplex.cxx:46
 RooComplex.cxx:47
 RooComplex.cxx:48
 RooComplex.cxx:49
 RooComplex.cxx:50
 RooComplex.cxx:51
 RooComplex.cxx:52
 RooComplex.cxx:53
 RooComplex.cxx:54