LArSoft  v10_06_00
Liquid Argon Software toolkit - https://larsoft.org/
MCGeneratorInfo.cxx
Go to the documentation of this file.
1 #include "MCGeneratorInfo.h"
2 #include <iostream>
3 
4 namespace simb {
5 
6 std::ostream& operator<< (std::ostream& o, simb::MCGeneratorInfo const & a) {
7  o << "generator " << int(a.generator)
8  << " " << simb::MCGeneratorInfo::AsString(a.generator) << std::endl;
9  o << "version " << a.generatorVersion << std::endl;
10  auto it = a.generatorConfig.begin();
11  for ( ; it != a.generatorConfig.end(); ++it) {
12  o << " " << it->first << " " << it->second << std::endl;
13  }
14  return o;
15 }
16 
17 }
std::ostream & operator<<(std::ostream &output, const simb::GTruth &gtruth)
Definition: GTruth.cxx:89
simb::Generator_t generator
event generator that generated this event
ART objects.
static std::string AsString(Generator_t g)
std::string generatorVersion
event generator version
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) ...