NucleonDecayUtils.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::utils::nucleon_decay
5 
6 \brief Utilities for simulating nucleon decay
7 
8 \author Costas Andreopoulos <constantinos.andreopoulos \at cern.ch>
9  University of Liverpool & STFC Rutherford Appleton Laboratory
10 
11 \created November 03, 2011
12 
13 \cpright Copyright (c) 2003-2020, The GENIE Collaboration
14  For the full text of the license visit http://copyright.genie-mc.org
15 */
16 //____________________________________________________________________________
17 
18 #ifndef _NUCLEON_DECAY_UTILS_H_
19 #define _NUCLEON_DECAY_UTILS_H_
20 
21 #include <string>
22 
26 
27 using std::string;
28 
29 namespace genie {
30  namespace utils {
31  namespace nucleon_decay {
32 
33  string AsString (NucleonDecayMode_t ndm, int npdg = 0);
34  bool IsValidMode (NucleonDecayMode_t ndm, int npdg = 0);
35 
36  // The DecayedNucleonPdgCode utiliity is used ONLY for decay modes that do NOT require specifying a decayed nucleon PDG on the command-line. For these modes, this method returns that PDG code. Otherwise, the decayed nucleon PDG given on the command-line is used. So, no 2nd argument to this
38 
40  GHepStatus_t DecayProductStatus (bool in_nucleus, int pdgc);
41 
42  } // nucleon_decay namespace
43  } // utils namespace
44 } // genie namespace
45 
46 #endif // _NUCLEON_DECAY_UTILS_H_
THE MAIN GENIE PROJECT NAMESPACE
Definition: AlgCmp.h:25
Utilities for simulating nucleon decay.
std::string string
Definition: nybbler.cc:12
A list of PDG codes.
Definition: PDGCodeList.h:32
bool IsValidMode(NucleonDecayMode_t ndm, int npdg=0)
PDGCodeList DecayProductList(NucleonDecayMode_t ndm, int npdg=0)
GHepStatus_t DecayProductStatus(bool in_nucleus, int pdgc)
Definition: utils.py:1
enum genie::ENucleonDecayMode NucleonDecayMode_t
string AsString(NucleonDecayMode_t ndm, int npdg=0)
int DecayedNucleonPdgCode(NucleonDecayMode_t ndm)
enum genie::EGHepStatus GHepStatus_t