LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
MCGeneratorInfo.h
Go to the documentation of this file.
1 
8 #ifndef SIMB_MCGENERATORINFO_H
9 #define SIMB_MCGENERATORINFO_H
10 
11 #include <string>
12 #include <unordered_map>
13 
14 namespace simb
15 {
16 
18  typedef enum class _ev_generator
19  {
20  kUnknown,
21  kGENIE,
22  kCRY,
23  kGIBUU,
24  kNuWro,
25  kMARLEY,
26  kNEUT,
27  kCORSIKA,
28  kGEANT,
29  kNumGenerators, // this should always be the last entry
30  } Generator_t;
31 
33  {
35  std::string generatorVersion;
36  std::unordered_map<std::string, std::string> generatorConfig;
37 
39  const std::string ver = "",
40  const std::unordered_map<std::string, std::string> config = {})
41  : generator(gen), generatorVersion(ver), generatorConfig(config)
42  {}
43  };
44 }
45 
46 #endif //SIMB_MCGENERATORINFO_H
Unknown view.
Definition: geo_types.h:142
enum simb::_ev_generator Generator_t
generator used to produce event, if applicable
simb::Generator_t generator
event generator that generated this event
ART objects.
std::string generatorVersion
event generator version
_ev_generator
generator used to produce event, if applicable
std::unordered_map< std::string, std::string > generatorConfig
free-form field that can be used to keep track of generator configuration (e.g. GENIE tune) ...
MCGeneratorInfo(Generator_t gen=Generator_t::kUnknown, const std::string ver="", const std::unordered_map< std::string, std::string > config={})