Logo ROOT   6.08/07
Reference Guide
RooComplex.cxx
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitCore *
4  * @(#)root/roofitcore:$Id$
5  * Authors: *
6  * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7  * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8  * *
9  * Copyright (c) 2000-2005, Regents of the University of California *
10  * and Stanford University. All rights reserved. *
11  * *
12  * Redistribution and use in source and binary forms, *
13  * with or without modification, are permitted according to the terms *
14  * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15  *****************************************************************************/
16 
17 /**
18 \file RooComplex.cxx
19 \class RooComplex
20 \ingroup Roofitcore
21 
22 Class RooComplex is a simple container class for complex values
23 **/
24 
25 #include "RooFit.h"
26 
27 #define ROO_COMPLEX_CXX
28 #include "RooComplex.h"
29 #include "Riostream.h"
30 #include <iomanip>
31 
32 using namespace std;
33 
35 
36 void RooComplex::warn() const
37 {
38  static int nwarns = 0;
39  if (nwarns < 1<<12) {
40  cout << "[#0] WARN: RooComplex is deprecated. Please use std::complex<Double_t> in your code instead." << std::endl;
41  ++nwarns;
42  }
43 }
44 
45 ////////////////////////////////////////////////////////////////////////////////
46 /// WVE Solaric CC5.0 complains about this
47 
48 void RooComplex::Print() const {
49  cout << *this << endl;
50 }
51 
52 ostream& operator<<(ostream& os, const RooComplex& z)
53 {
54  // Print real and imaginary component on ostream
55  return os << "(" << z.re() << "," << z.im() << ")";
56 }
Double_t re() const
Definition: RooComplex.h:79
STL namespace.
void Print() const
WVE Solaric CC5.0 complains about this.
Definition: RooComplex.cxx:48
ostream & operator<<(ostream &os, const RooComplex &z)
Definition: RooComplex.cxx:52
Double_t im() const
Definition: RooComplex.h:82
#define ClassImp(name)
Definition: Rtypes.h:279
you should not use this method at all Int_t Int_t z
Definition: TRolke.cxx:630
typedef void((*Func_t)())
Class RooComplex is a simple container class for complex values.
Definition: RooComplex.h:35