7 #include "canvas/Persistency/Common/FindOneP.h" 10 #include "art/Framework/Core/FindOneP.h" 11 #include "art/Utilities/InputTag.h" 16 std::vector<std::string>
const &
labels)
18 , fInputModuleLabels(labels)
47 for (
size_t mcl = 0; mcl <
mclists.size(); ++mcl) {
49 if ( ! mclistHandle.
isValid() ) {
72 for(
size_t nmc = 0; nmc < mclistHandle->size(); ++nmc) {
75 std::pair<int,int> ipair(mcl,nmc);
107 size_t indx_handle = (*indx_itr).first;
108 size_t indx_within = (*indx_itr).second;
131 art::FindOneP<simb::GTruth> qgtruth(hvMCTruth,
evt,
outlabels[indx_handle]);
140 art::FindOneP<simb::MCFlux> qmcflux(hvMCTruth,
evt,
outlabels[indx_handle]);
149 art::FindOneP<bsim::Dk2Nu> qdk2nu(hvMCTruth,
evt,
outlabels[indx_handle]);
158 art::FindOneP<bsim::NuChoice> qnuchoice(hvMCTruth,
evt,
outlabels[indx_handle]);
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
const simb::GTruth * thisGTruth
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
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.
void getManyByType(std::vector< Handle< PROD >> &results) const
std::vector< std::string > const & fInputModuleLabels
const bsim::NuChoice * thisNuChoice
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