00001 /******************************************************************************* 00002 * Project: BaBar detector at the SLAC PEP-II B-factory 00003 * Package: EvtGenBase 00004 * File: $Id: EvtFlatAmp.hh,v 1.1.1.2 2007/10/26 05:03:14 pingrg Exp $ 00005 * Author: Alexei Dvoretskii, dvoretsk@slac.stanford.edu, 2001-2002 00006 * 00007 * Copyright (C) 2002 Caltech 00008 *******************************************************************************/ 00009 00010 // Flat amplitude 00011 00012 #ifndef EVT_FLAT_AMP_HH 00013 #define EVT_FLAT_AMP_HH 00014 00015 #include "EvtGenBase/EvtAmplitude.hh" 00016 00017 template <class T> 00018 class EvtFlatAmp : public EvtAmplitude<T> { 00019 public: 00020 00021 EvtFlatAmp() {} 00022 EvtFlatAmp(const EvtFlatAmp<T>& other) : EvtAmplitude<T>(other) {} 00023 virtual ~EvtFlatAmp() {} 00024 00025 virtual EvtAmplitude<T>* clone() const { return new EvtFlatAmp<T>(*this); } 00026 virtual EvtComplex amplitude(const T& p) const { return EvtComplex(1.,0.); } 00027 }; 00028 00029 #endif