EvtGen
2.2.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.
Toggle main menu visibility
Loading...
Searching...
No Matches
EvtGenBase
EvtDecayMode.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_DECAY_MODE_HH
22
#define EVT_DECAY_MODE_HH
23
24
#include "
EvtGenBase/EvtCyclic3.hh
"
25
26
#include <iosfwd>
27
#include <string>
28
#include <vector>
29
30
class
EvtDecayMode
final {
31
public
:
32
EvtDecayMode
(
const
char
* decay );
33
EvtDecayMode
(
const
EvtDecayMode
& other );
34
EvtDecayMode
( std::string
mother
, std::vector<std::string>
dau
);
35
36
const
char
*
mother
()
const
;
37
int
nD
()
const
;
38
const
char
*
dau
(
int
i )
const
;
39
40
std::ostream&
print
( std::ostream& )
const
;
41
42
// Frequent name combinations
43
44
std::string
m
(
EvtCyclic3::Pair
i )
const
;
45
std::string
q
(
EvtCyclic3::Pair
i )
const
;
46
std::string
dal
(
EvtCyclic3::Pair
i,
EvtCyclic3::Pair
j )
const
;
47
std::string
mode
()
const
;
48
49
private
:
50
std::string
m_mother
;
51
std::vector<std::string>
m_dau
;
52
};
53
54
std::ostream&
operator<<
( std::ostream&,
const
EvtDecayMode
& );
55
56
#endif
EvtCyclic3.hh
operator<<
std::ostream & operator<<(std::ostream &, const EvtDecayMode &)
EvtDecayMode
Definition
EvtDecayMode.hh:30
EvtDecayMode::m_dau
std::vector< std::string > m_dau
Definition
EvtDecayMode.hh:51
EvtDecayMode::mother
const char * mother() const
Definition
EvtDecayMode.cpp:93
EvtDecayMode::q
std::string q(EvtCyclic3::Pair i) const
Definition
EvtDecayMode.cpp:139
EvtDecayMode::EvtDecayMode
EvtDecayMode(const char *decay)
Definition
EvtDecayMode.cpp:43
EvtDecayMode::nD
int nD() const
Definition
EvtDecayMode.cpp:98
EvtDecayMode::dau
const char * dau(int i) const
Definition
EvtDecayMode.cpp:103
EvtDecayMode::m_mother
std::string m_mother
Definition
EvtDecayMode.hh:50
EvtDecayMode::EvtDecayMode
EvtDecayMode(std::string mother, std::vector< std::string > dau)
EvtDecayMode::mode
std::string mode() const
Definition
EvtDecayMode.cpp:109
EvtDecayMode::print
std::ostream & print(std::ostream &) const
Definition
EvtDecayMode.cpp:120
EvtDecayMode::m
std::string m(EvtCyclic3::Pair i) const
Definition
EvtDecayMode.cpp:129
EvtDecayMode::dal
std::string dal(EvtCyclic3::Pair i, EvtCyclic3::Pair j) const
Definition
EvtDecayMode.cpp:149
EvtCyclic3::Pair
Pair
Definition
EvtCyclic3.hh:37
Generated by
1.17.0