#include <EventMCVarExtractor.h>
Definition at line 8 of file EventMCVarExtractor.h.
VLN::EventMCVarExtractor::EventMCVarExtractor |
( |
const std::string & |
prefix, |
|
|
const std::string & |
labelGenerator = "generator" |
|
) |
| |
|
explicit |
Definition at line 13 of file EventMCVarExtractor.cxx.
static const std::vector< std::string > VECTOR_VARS({})
static const std::vector< std::string > SCALAR_VARS({"run","subRun","event"})
VLN::EventMCVarExtractor::~EventMCVarExtractor |
( |
| ) |
|
|
default |
void VLN::EventMCVarExtractor::extractVars |
( |
const art::Event & |
evt, |
|
|
VarDict & |
vars |
|
) |
| |
|
overrideprotectedvirtual |
Implements VLN::VarExtractorBase.
Definition at line 20 of file EventMCVarExtractor.cxx.
22 std::vector<art::Ptr<simb::MCTruth>> mcTruth;
30 if (mcTruth.empty()) {
34 const auto &nuInt = mcTruth[0]->GetNeutrino();
41 const double nuE = nuInt.Nu().E();
42 const double lepE = nuInt.Lepton().Momentum().T();
Handle< PROD > getHandle(SelectorBase const &) const
void fill_ptr_vector(std::vector< Ptr< T >> &ptrs, H const &h)
The documentation for this class was generated from the following files: