1 /*******************************************************************************
2 * Project: BaBar detector at the SLAC PEP-II B-factory
4 * File: $Id: EvtAmplitude.hh,v 1.2 2009-03-16 16:43:40 robbep Exp $
5 * Author: Alexei Dvoretskii, dvoretsk@slac.stanford.edu, 2001-2002
7 * Copyright (C) 2002 Caltech
8 *******************************************************************************/
10 // Complex-valued amplitude
12 #ifndef EVT_AMPLITUDE_HH
13 #define EVT_AMPLITUDE_HH
15 #include "EvtGenBase/EvtComplex.hh"
22 EvtAmplitude(const EvtAmplitude&) {}
23 virtual ~EvtAmplitude() {}
24 virtual EvtAmplitude<T>* clone() const = 0;
26 EvtComplex evaluate(const T& p) const
28 EvtComplex ret(0.,0.);
29 if(p.isValid()) ret = amplitude(p);
35 // Derive in subclasses to define amplitude computation
36 // for a fully constructed amplitude object.
38 virtual EvtComplex amplitude(const T&) const = 0;