GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HNLDecayUtils.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::utils::hnl
5 
6 \brief Utilities for simulating the decay of Heavy Neutral Leptons
7 
8 \author
9 
10 \created November 03, 2011
11 
12 \cpright Copyright (c) 2003-2024, The GENIE Collaboration
13  For the full text of the license visit http://copyright.genie-mc.org
14 */
15 //____________________________________________________________________________
16 
17 #ifndef _HNL_DECAY_UTILS_H_
18 #define _HNL_DECAY_UTILS_H_
19 
20 #include <string>
21 
25 
26 // -- for retrieval of parameters from config
30 
31 using std::string;
32 
33 namespace genie
34 {
35  namespace utils
36  {
37  namespace hnl
38  {
39  string ProdAsString (genie::hnl::HNLProd_t hnlprod);
40  string AsString (genie::hnl::HNLDecayMode_t hnldm);
42  bool IsKinematicallyAllowed (genie::hnl::HNLDecayMode_t hnldm, double Mhnl);
45 
46  // for obtaining params, etc, directly from config
47  int GetCfgInt (string file_id, string set_name, string par_name);
48  std::vector<int> GetCfgIntVec (string file_id, string set_name, string par_name);
49  double GetCfgDouble (string file_id, string set_name, string par_name);
50  std::vector<double> GetCfgDoubleVec (string file_id, string set_name, string par_name);
51  bool GetCfgBool (string file_id, string set_name, string par_name);
52  std::vector<bool> GetCfgBoolVec (string file_id, string set_name, string par_name);
53  std::string GetCfgString (string file_id, string set_name, string par_name);
54 
55  } // hnl
56  } // utils
57 } // genie
58 
59 #endif // _HNL_DECAY_UTILS_H_
enum genie::hnl::t_HNLProd HNLProd_t
double GetCfgDouble(string file_id, string set_name, string par_name)
string AsString(genie::hnl::HNLDecayMode_t hnldm)
PDGCodeList ProductionProductList(genie::hnl::HNLProd_t hnldm)
std::string GetCfgString(string file_id, string set_name, string par_name)
std::vector< bool > GetCfgBoolVec(string file_id, string set_name, string par_name)
A list of PDG codes.
Definition: PDGCodeList.h:32
std::vector< int > GetCfgIntVec(string file_id, string set_name, string par_name)
Utilities for simulating the decay of Heavy Neutral Leptons.
PDGCodeList DecayProductList(genie::hnl::HNLDecayMode_t hnldm)
enum genie::hnl::EHNLDecayMode HNLDecayMode_t
string ProdAsString(genie::hnl::HNLProd_t hnlprod)
std::vector< double > GetCfgDoubleVec(string file_id, string set_name, string par_name)
bool GetCfgBool(string file_id, string set_name, string par_name)
bool IsProdKinematicallyAllowed(genie::hnl::HNLProd_t hnlprod)
bool IsKinematicallyAllowed(genie::hnl::HNLDecayMode_t hnldm, double Mhnl)
int GetCfgInt(string file_id, string set_name, string par_name)