Skip to content

Commit

Permalink
Merge pull request cms-sw#133 from usarica/US_slc6root53417
Browse files Browse the repository at this point in the history
fix RooComplex
  • Loading branch information
gpetruc committed Jul 9, 2014
2 parents 8464082 + 1e0a700 commit 1f173ab
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/HZZ4LRooPdfs.cc
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#include "Riostream.h"

#include "../interface/HZZ4LRooPdfs.h"
#include "RooAbsReal.h"
#include "RooRealVar.h"
#include "RooVoigtian.h"
#include "RooComplex.h"
#include "RooMath.h"
#include "RooAbsCategory.h"
#include <math.h>
#include "TMath.h"
#include <algorithm>
#include "../interface/HZZ4LRooPdfs.h"
#include "RooAbsReal.h"
#include "RooAbsCategory.h"
#include <math.h>
#include "TMath.h"
#include <algorithm>
#include <complex>
#include "RooRealVar.h"
#include "RooVoigtian.h"
#include "RooMath.h"

using namespace TMath;

Expand Down Expand Up @@ -3680,9 +3680,9 @@ double RooaDoubleCBxBW::evaluateVoigtian() const
double c = 1./(sqrt(2.)*sigma);
double a = 0.5*c*width;
double u = c*arg;
RooComplex z(u,a);
RooComplex v = RooMath::ComplexErrFuncFast(z);
return atan2(0.,-1.)*v.re()/width;
std::complex<double> z(u,a);
std::complex<double> v(RooMath::erfc_fast(z));
return atan2(0.,-1.)*(std::real(v))/width;
}

double RooaDoubleCBxBW::evaluateQuadratic(double lim1, double lim2, bool isLeft) const
Expand Down

0 comments on commit 1f173ab

Please sign in to comment.