Bayeux  3.4.1
Core Foundation library for SuperNEMO
two_body_decay.h
Go to the documentation of this file.
1 /* Author(s) : Francois Mauger <mauger@lpccaen.in2p3.fr>
3  * Creation date: 2014-06-05
4  * Last modified: 2014-06-05
5  *
6  * License:
7  * Copyright 2014 F. Mauger
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 3 of the License, or (at
12  * your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor,
22  * Boston, MA 02110-1301, USA.
23  *
24  * Description:
25  *
26  * Utilities related to two body decays.
27  *
28  * History:
29  *
30  */
31 
32 #ifndef GENBB_HELP_TWO_BODY_DECAY_H
33 #define GENBB_HELP_TWO_BODY_DECAY_H 1
34 
35 // This project:
36 #include <genbb_help/kinematics.h>
37 
38 namespace genbb {
39 
42  {
43  public:
44 
47 
49  two_body_decay(double M_, double m1_, double m2_);
50 
52  void set(double M_, double m1_, double m2_);
53 
55  void reset();
56 
58  bool is_valid() const;
59 
61  double M() const;
62 
64  double m1() const;
65 
67  double m2() const;
68 
70  const kinematics & daughter1() const;
71 
73  const kinematics & daughter2() const;
74 
75  private:
76 
77  double _M_;
78  kinematics _daughter1_;
79  kinematics _daughter2_;
80 
81  };
82 
83 } // end of namespace genbb
84 
85 #endif // GENBB_HELP_TWO_BODY_DECAY_H
86 
87 // Local Variables: --
88 // mode: c++ --
89 // End: --
double m1() const
Return the mass of the first daughter particle.
Description of a two body decay.
Definition: two_body_decay.h:41
const kinematics & daughter2() const
Return the kinematics data of the second daughter particle.
double M() const
Return the mass of the decaying particle.
void set(double M_, double m1_, double m2_)
Set the masses of the particles.
Top-level namespace of the Bayeux/genbb_help module library.
Definition: alpha_decay.h:51
const kinematics & daughter1() const
Return the kinematics data of the first daughter particle.
two_body_decay()
Default constructor.
bool is_valid() const
Check validity.
Relastivistic particle kinematics.
Definition: kinematics.h:38
double m2() const
Return the mass of the second daughter particle.