BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtMassAmp.hh
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// File and Version Information:
3// $Id: EvtMassAmp.hh,v 1.2 2011/01/06 22:57:56 pingrg Exp $
4//
5// Environment:
6// This software is part of the EvtGen package developed jointly
7// for the BaBar and CLEO collaborations. If you use all or part
8// of it, please give an appropriate acknowledgement.
9//
10// Copyright Information:
11// Copyright (C) 1998 Caltech, UCSB
12//
13// Module creator:
14// Alexei Dvoretskii, Caltech, 2001-2002.
15//-----------------------------------------------------------------------
16
17// Relativistic lineshape for a two-body decay of a resonance to two
18// pseudoscalars. The mass dependence of the width and the vertex factors
19// are included in the calculation.
20
21#ifndef EVT_MASSAMP_HH
22#define EVT_MASSAMP_HH
23
24#include "EvtAmplitude.hh"
25#include "EvtPoint1D.hh"
27#include "EvtTwoBodyVertex.hh"
28
29class EvtMassAmp : public EvtAmplitude<EvtPoint1D> {
30public:
31 EvtMassAmp( const EvtPropBreitWignerRel& prop, const EvtTwoBodyVertex& vd );
32 EvtMassAmp( const EvtMassAmp& other );
33 virtual ~EvtMassAmp();
34
35 virtual EvtComplex amplitude( const EvtPoint1D& p ) const;
36
37 virtual EvtAmplitude<EvtPoint1D>* clone() const { return new EvtMassAmp( *this ); }
38
39 void setBirthVtx( const EvtTwoBodyVertex& vb ) { _vb = new EvtTwoBodyVertex( vb ); }
40
41 void addBirthFact() { _useBirthFact = true; }
42 void addDeathFact() { _useDeathFact = true; }
43 void addBirthFactFF() { _useBirthFactFF = true; }
44 void addDeathFactFF() { _useDeathFactFF = true; }
45 void fixUpMassForMax() { _fixUpMassForMax = true; }
46 void addFactorPn( double factor ) { _addfactor = factor; }
47
48private:
52 double _addfactor;
53
54 bool _useBirthFact;
55 bool _useDeathFact;
56 bool _useBirthFactFF;
57 bool _useDeathFactFF;
58 bool _fixUpMassForMax;
59};
60
61#endif
EvtMassAmp(const EvtPropBreitWignerRel &prop, const EvtTwoBodyVertex &vd)
Definition EvtMassAmp.cc:20
void addDeathFactFF()
Definition EvtMassAmp.hh:44
void setBirthVtx(const EvtTwoBodyVertex &vb)
Definition EvtMassAmp.hh:39
virtual ~EvtMassAmp()
Definition EvtMassAmp.cc:44
void fixUpMassForMax()
Definition EvtMassAmp.hh:45
virtual EvtAmplitude< EvtPoint1D > * clone() const
Definition EvtMassAmp.hh:37
void addBirthFactFF()
Definition EvtMassAmp.hh:43
virtual EvtComplex amplitude(const EvtPoint1D &p) const
Definition EvtMassAmp.cc:48
void addBirthFact()
Definition EvtMassAmp.hh:41
void addFactorPn(double factor)
Definition EvtMassAmp.hh:46
void addDeathFact()
Definition EvtMassAmp.hh:42