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
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
25
26#include <iosfwd>
27#include <string>
28#include <vector>
29
30class 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
54std::ostream& operator<<( std::ostream&, const EvtDecayMode& );
55
56#endif
std::ostream & operator<<(std::ostream &, const EvtDecayMode &)
std::vector< std::string > m_dau
const char * mother() const
std::string q(EvtCyclic3::Pair i) const
EvtDecayMode(const char *decay)
int nD() const
const char * dau(int i) const
std::string m_mother
EvtDecayMode(std::string mother, std::vector< std::string > dau)
std::string mode() const
std::ostream & print(std::ostream &) const
std::string m(EvtCyclic3::Pair i) const
std::string dal(EvtCyclic3::Pair i, EvtCyclic3::Pair j) const