BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtFlatAmp.hh
Go to the documentation of this file.
1/*******************************************************************************
2 * Project: BaBar detector at the SLAC PEP-II B-factory
3 * Package: EvtGenBase
4 * File: $Id: EvtFlatAmp.hh,v 1.1.1.2 2007/10/26 05:03:14 pingrg Exp $
5 * Author: Alexei Dvoretskii, dvoretsk@slac.stanford.edu, 2001-2002
6 *
7 * Copyright (C) 2002 Caltech
8 *******************************************************************************/
9
10// Flat amplitude
11
12#ifndef EVT_FLAT_AMP_HH
13#define EVT_FLAT_AMP_HH
14
15#include "EvtAmplitude.hh"
16
17template <class T> class EvtFlatAmp : public EvtAmplitude<T> {
18public:
20 EvtFlatAmp( const EvtFlatAmp<T>& other ) : EvtAmplitude<T>( other ) {}
21 virtual ~EvtFlatAmp() {}
22
23 virtual EvtAmplitude<T>* clone() const { return new EvtFlatAmp<T>( *this ); }
24 virtual EvtComplex amplitude( const T& p ) const { return EvtComplex( 1., 0. ); }
25};
26
27#endif
virtual EvtComplex amplitude(const T &p) const
Definition EvtFlatAmp.hh:24
virtual EvtAmplitude< T > * clone() const
Definition EvtFlatAmp.hh:23
EvtFlatAmp(const EvtFlatAmp< T > &other)
Definition EvtFlatAmp.hh:20
virtual ~EvtFlatAmp()
Definition EvtFlatAmp.hh:21