EvtGen 2.2.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.
Loading...
Searching...
No Matches
EvtTwoBodyVertex.hh
Go to the documentation of this file.
1
2/***********************************************************************
3* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
4* *
5* This file is part of EvtGen. *
6* *
7* EvtGen is free software: you can redistribute it and/or modify *
8* it under the terms of the GNU General Public License as published by *
9* the Free Software Foundation, either version 3 of the License, or *
10* (at your option) any later version. *
11* *
12* EvtGen is distributed in the hope that it will be useful, *
13* but WITHOUT ANY WARRANTY; without even the implied warranty of *
14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15* GNU General Public License for more details. *
16* *
17* You should have received a copy of the GNU General Public License *
18* along with EvtGen. If not, see <https://www.gnu.org/licenses/>. *
19***********************************************************************/
20
21#ifndef EVT_TWO_BODY_VERTEX_HH
22#define EVT_TWO_BODY_VERTEX_HH
23
26
27#include <iostream>
28#include <memory>
29
30// Two-body propagator vertex AB->A,B with an attached Blatt-Weisskopf form factor.
31
33 public:
35 EvtTwoBodyVertex( double mA, double mB, double mAB, int L );
36 EvtTwoBodyVertex( const EvtTwoBodyVertex& other );
38
39 double widthFactor( EvtTwoBodyKine x ) const;
40 double formFactor( EvtTwoBodyKine x ) const;
42
43 inline int L() const { return m_LL; }
44 inline double mA() const { return m_kine.mA(); }
45 inline double mB() const { return m_kine.mB(); }
46 inline double mAB() const { return m_kine.mAB(); }
47 inline double pD() const { return m_p0; }
48 void print( std::ostream& os ) const;
49
50 void set_f( double R );
51
52 private:
54 int m_LL;
55 double m_p0;
56 std::unique_ptr<EvtBlattWeisskopf> m_f; // optional Blatt-Weisskopf form factor
57};
58
59std::ostream& operator<<( std::ostream& os, const EvtTwoBodyVertex& v );
60
61#endif
std::ostream & operator<<(std::ostream &os, const EvtTwoBodyVertex &v)
EvtTwoBodyKine m_kine
double mAB() const
EvtTwoBodyVertex & operator=(const EvtTwoBodyVertex &other)
double formFactor(EvtTwoBodyKine x) const
void print(std::ostream &os) const
void set_f(double R)
double pD() const
double widthFactor(EvtTwoBodyKine x) const
double mA() const
double mB() const
std::unique_ptr< EvtBlattWeisskopf > m_f
double phaseSpaceFactor(EvtTwoBodyKine x, EvtTwoBodyKine::Index) const