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.
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 );
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 _mother;
51  std::vector<std::string> _dau;
52 };
53 
54 std::ostream& operator<<( std::ostream&, const EvtDecayMode& );
55 
56 #endif
std::string _mother
Definition: EvtDecayMode.hh:50
std::ostream & operator<<(std::ostream &, const EvtDecayMode &)
EvtDecayMode(const char *decay)
std::vector< std::string > _dau
Definition: EvtDecayMode.hh:51
std::string q(EvtCyclic3::Pair i) const
int nD() const
std::ostream & print(std::ostream &) const
const char * dau(int i) const
std::string dal(EvtCyclic3::Pair i, EvtCyclic3::Pair j) const
std::string m(EvtCyclic3::Pair i) const
const char * mother() const
std::string mode() const
Index other(Index i, Index j)
Definition: EvtCyclic3.cpp:156