evtgen is hosted by Hepforge, IPPP Durham
EvtGen  2.0.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.
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 );
38 
39  double widthFactor( EvtTwoBodyKine x ) const;
40  double formFactor( EvtTwoBodyKine x ) const;
42 
43  inline int L() const { return _LL; }
44  inline double mA() const { return _kine.mA(); }
45  inline double mB() const { return _kine.mB(); }
46  inline double mAB() const { return _kine.mAB(); }
47  inline double pD() const { return _p0; }
48  void print( std::ostream& os ) const;
49 
50  void set_f( double R );
51 
52  private:
54  int _LL;
55  double _p0;
56  std::unique_ptr<EvtBlattWeisskopf> _f; // optional Blatt-Weisskopf form factor
57 };
58 
59 std::ostream& operator<<( std::ostream& os, const EvtTwoBodyVertex& v );
60 
61 #endif
EvtTwoBodyKine _kine
void set_f(double R)
double pD() const
double mAB() const
double formFactor(EvtTwoBodyKine x) const
double widthFactor(EvtTwoBodyKine x) const
double mA() const
double mA() const
double mB() const
void print(std::ostream &os) const
double mAB() const
std::unique_ptr< EvtBlattWeisskopf > _f
double mB() const
std::ostream & operator<<(std::ostream &os, const EvtTwoBodyVertex &v)
EvtTwoBodyVertex & operator=(const EvtTwoBodyVertex &other)
Index other(Index i, Index j)
Definition: EvtCyclic3.cpp:156
double phaseSpaceFactor(EvtTwoBodyKine x, EvtTwoBodyKine::Index) const