00001 #include "EvtGenBase/EvtPatches.hh" 00002 /******************************************************************************* 00003 * Project: BaBar detector at the SLAC PEP-II B-factory 00004 * Package: EvtGenBase 00005 * File: $Id: EvtPropBreitWigner.cc,v 1.1.1.2 2007/10/26 05:03:14 pingrg Exp $ 00006 * Author: Alexei Dvoretskii, dvoretsk@slac.stanford.edu, 2001-2002 00007 * 00008 * Copyright (C) 2002 Caltech 00009 *******************************************************************************/ 00010 00011 #include <math.h> 00012 #include "EvtGenBase/EvtConst.hh" 00013 #include "EvtGenBase/EvtPropBreitWigner.hh" 00014 00015 00016 EvtPropBreitWigner::EvtPropBreitWigner(double m0, double g0) 00017 : EvtPropagator(m0,g0) 00018 {} 00019 00020 00021 EvtPropBreitWigner::EvtPropBreitWigner(const EvtPropBreitWigner& other) 00022 : EvtPropagator(other) 00023 {} 00024 00025 00026 EvtPropBreitWigner::~EvtPropBreitWigner() 00027 {} 00028 00029 00030 EvtAmplitude<EvtPoint1D>* EvtPropBreitWigner::clone() const 00031 { 00032 return new EvtPropBreitWigner(*this); 00033 } 00034 00035 00036 EvtComplex EvtPropBreitWigner::amplitude(const EvtPoint1D& x) const 00037 { 00038 double m = x.value(); 00039 EvtComplex value = sqrt(_g0/EvtConst::twoPi)/(m-_m0-EvtComplex(0.0,_g0/2.)); 00040 return value; 00041 }