10 #include "art/Framework/Core/FindOneP.h" 11 #include "art/Utilities/InputTag.h" 16 std::vector<std::string>
const & labels)
18 , fInputModuleLabels(labels)
45 for (
size_t mcl = 0; mcl <
mclists.size(); ++mcl) {
47 if ( ! mclistHandle.
isValid() ) {
63 std::string handleLabel = mclistHandle.
provenance()->moduleLabel();
70 for(
size_t nmc = 0; nmc < mclistHandle->size(); ++nmc) {
73 std::pair<int,int> ipair(mcl,nmc);
105 size_t indx_handle = (*indx_itr).first;
106 size_t indx_within = (*indx_itr).second;
const bsim::Dk2Nu * thisDk2Nu
std::vector< art::Handle< std::vector< simb::MCTruth > > > mclists
MCTruthAndFriendsItr(art::Event const &evtIn, std::vector< std::string > const &labels)
std::vector< std::string > outlabels
bool isValid() const noexcept
const simb::GTruth * thisGTruth
Provenance const * provenance() const
constexpr std::array< std::size_t, geo::vect::dimension< Vector >)> indices()
Returns a sequence of indices valid for a vector of the specified type.
std::vector< std::string > const & fInputModuleLabels
const bsim::NuChoice * thisNuChoice
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
std::set< std::pair< int, int > > indices
const simb::MCFlux * thisMCFlux
const simb::MCTruth * thisMCTruth
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.
std::set< std::pair< int, int > >::const_iterator indx_itr
std::vector< Handle< PROD > > getMany(SelectorBase const &selector=MatchAllSelector{}) const