18 std::vector<std::string> filenames{filename};
20 gallery::Event ev(filenames);
22 size_t event_count = 1;
23 for (ev.toBegin(); !ev.atEnd(); ++ev) {
25 std::cout <<
"art event " << event_count <<
'\n';
36 for (
size_t v = 0u; v < mctruth_handle->size(); ++v) {
44 if (nu.Nu().NumberTrajectoryPoints() > 0) {
45 double E_nu = nu.
Nu().
E(0);
46 bool cc = (nu.CCNC() == 0);
68 std::cout <<
" other";
69 std::cout <<
" interaction with neutrino energy = " << E_nu <<
" GeV\n";
73 std::cout <<
"Weights\n";
74 for (
const auto& pair : mc_weights.
fWeight) {
75 std::string knob_name = pair.first;
76 std::vector<double> weights = pair.second;
78 std::cout <<
" " << knob_name <<
":\n";
79 for (
size_t u = 0u; u < weights.size(); ++u) {
80 double w = weights.at(u);
81 std::cout <<
" universe #" << u <<
" has weight = " << w <<
'\n';
double E(const int i=0) const
const simb::MCNeutrino & GetNeutrino() const
const std::string eventweight_producer_label("genieeventweightTest")
const simb::MCParticle & Nu() const
void print_weights(const std::string &filename)
Definition of data types for geometry description.
std::map< std::string, std::vector< double > > fWeight
const std::string genie_producer_label("generator")
Event generator information.