LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "MCTruthAndFriendsItr.h"
Public Member Functions | |
MCTruthAndFriendsItr (art::Event const &evtIn, std::vector< std::string > const &labels) | |
virtual | ~MCTruthAndFriendsItr () |
bool | Next () |
const simb::MCTruth * | GetMCTruth () const |
const simb::GTruth * | GetGTruth () const |
const simb::MCFlux * | GetMCFlux () const |
const bsim::Dk2Nu * | GetDk2Nu () const |
const bsim::NuChoice * | GetNuChoice () const |
std::string | GetLabel () const |
Private Attributes | |
art::Event const & | evt |
std::vector< std::string > const & | fInputModuleLabels |
std::vector< art::Handle< std::vector< simb::MCTruth > > > | mclists |
std::set< std::pair< int, int > > | indices |
std::set< std::pair< int, int > >::const_iterator | indx_itr |
std::vector< std::string > | outlabels |
int | nmctruth |
int | imctruth |
const simb::MCTruth * | thisMCTruth |
const simb::GTruth * | thisGTruth |
const simb::MCFlux * | thisMCFlux |
const bsim::Dk2Nu * | thisDk2Nu |
const bsim::NuChoice * | thisNuChoice |
std::string | thisLabel |
Definition at line 32 of file MCTruthAndFriendsItr.h.
evgb::MCTruthAndFriendsItr::MCTruthAndFriendsItr | ( | art::Event const & | evtIn, |
std::vector< std::string > const & | labels | ||
) |
std::cout << "+++ mcl " << mcl << "[" << mclists.size() << "] " << "nmc " << nmc << "[" << mclistHandle->size() << "] " << std::endl; std::cout << *(mct.get()) << std::endl;
Definition at line 15 of file MCTruthAndFriendsItr.cxx.
References evt, fInputModuleLabels, art::ProductRetriever::getByLabel(), art::ProductRetriever::getMany(), indices, indx_itr, art::Handle< T >::isValid(), mclists, nmctruth, outlabels, and art::Handle< T >::provenance().
|
inlinevirtual |
|
inline |
Definition at line 44 of file MCTruthAndFriendsItr.h.
References thisDk2Nu.
Referenced by evwgh::PPFXCVWeightCalc::GetWeight(), evwgh::PPFXWeightCalc::GetWeight(), evwgh::PPFXTotAbsorpWeightCalc::GetWeight(), evwgh::PPFXThinPionWeightCalc::GetWeight(), evwgh::PPFXThinNucWeightCalc::GetWeight(), evwgh::PPFXThinNucAWeightCalc::GetWeight(), evwgh::PPFXThinNeutronPionWeightCalc::GetWeight(), evwgh::PPFXThinMesonWeightCalc::GetWeight(), evwgh::PPFXThinKaonWeightCalc::GetWeight(), evwgh::PPFXTargAttenWeightCalc::GetWeight(), evwgh::PPFXOtherWeightCalc::GetWeight(), evwgh::PPFXMIPPPionWeightCalc::GetWeight(), and evwgh::PPFXMIPPKaonWeightCalc::GetWeight().
|
inline |
Definition at line 42 of file MCTruthAndFriendsItr.h.
References thisGTruth.
Referenced by evg::GenieOutput::analyze().
|
inline |
Definition at line 47 of file MCTruthAndFriendsItr.h.
References thisLabel.
Referenced by evg::GenieOutput::analyze(), evwgh::PPFXThinMesonWeightCalc::GetWeight(), evwgh::PPFXWeightCalc::GetWeight(), evwgh::PPFXTotAbsorpWeightCalc::GetWeight(), evwgh::PPFXThinPionWeightCalc::GetWeight(), evwgh::PPFXThinNucWeightCalc::GetWeight(), evwgh::PPFXThinNucAWeightCalc::GetWeight(), evwgh::PPFXThinNeutronPionWeightCalc::GetWeight(), evwgh::PPFXMIPPPionWeightCalc::GetWeight(), evwgh::PPFXThinKaonWeightCalc::GetWeight(), evwgh::PPFXTargAttenWeightCalc::GetWeight(), evwgh::PPFXOtherWeightCalc::GetWeight(), evwgh::PPFXCVWeightCalc::GetWeight(), and evwgh::PPFXMIPPKaonWeightCalc::GetWeight().
|
inline |
Definition at line 43 of file MCTruthAndFriendsItr.h.
References thisMCFlux.
Referenced by evg::GenieOutput::analyze().
|
inline |
Definition at line 41 of file MCTruthAndFriendsItr.h.
References thisMCTruth.
Referenced by evg::GenieOutput::analyze(), evwgh::PPFXThinMesonWeightCalc::GetWeight(), evwgh::PPFXWeightCalc::GetWeight(), evwgh::PPFXTotAbsorpWeightCalc::GetWeight(), evwgh::PPFXThinPionWeightCalc::GetWeight(), evwgh::PPFXThinNucWeightCalc::GetWeight(), evwgh::PPFXThinNucAWeightCalc::GetWeight(), evwgh::PPFXThinNeutronPionWeightCalc::GetWeight(), evwgh::PPFXMIPPPionWeightCalc::GetWeight(), evwgh::PPFXThinKaonWeightCalc::GetWeight(), evwgh::PPFXTargAttenWeightCalc::GetWeight(), evwgh::PPFXOtherWeightCalc::GetWeight(), evwgh::PPFXCVWeightCalc::GetWeight(), and evwgh::PPFXMIPPKaonWeightCalc::GetWeight().
|
inline |
Definition at line 45 of file MCTruthAndFriendsItr.h.
References thisNuChoice.
bool evgb::MCTruthAndFriendsItr::Next | ( | ) |
std::cout << "imctruth " << std::setw(3) << imctruth << " [" << indx_handle << "," << indx_within << "]" << " hvMCTruth.isValid() " << hvMCTruth.isValid() << " '" << outlabels[indx_handle] << "' " << std::endl;
Definition at line 94 of file MCTruthAndFriendsItr.cxx.
References evt, art::Ptr< T >::get(), imctruth, indx_itr, mclists, nmctruth, outlabels, thisDk2Nu, thisGTruth, thisLabel, thisMCFlux, thisMCTruth, and thisNuChoice.
Referenced by evg::GenieOutput::analyze(), evwgh::PPFXThinMesonWeightCalc::GetWeight(), evwgh::PPFXMIPPKaonWeightCalc::GetWeight(), evwgh::PPFXWeightCalc::GetWeight(), evwgh::PPFXTotAbsorpWeightCalc::GetWeight(), evwgh::PPFXThinPionWeightCalc::GetWeight(), evwgh::PPFXThinNucWeightCalc::GetWeight(), evwgh::PPFXThinNucAWeightCalc::GetWeight(), evwgh::PPFXOtherWeightCalc::GetWeight(), evwgh::PPFXMIPPPionWeightCalc::GetWeight(), evwgh::PPFXThinKaonWeightCalc::GetWeight(), evwgh::PPFXTargAttenWeightCalc::GetWeight(), evwgh::PPFXThinNeutronPionWeightCalc::GetWeight(), evwgh::PPFXCVWeightCalc::GetWeight(), and ~MCTruthAndFriendsItr().
|
private |
Definition at line 52 of file MCTruthAndFriendsItr.h.
Referenced by MCTruthAndFriendsItr(), and Next().
|
private |
Definition at line 53 of file MCTruthAndFriendsItr.h.
Referenced by MCTruthAndFriendsItr().
|
private |
Definition at line 62 of file MCTruthAndFriendsItr.h.
Referenced by Next().
|
private |
Definition at line 57 of file MCTruthAndFriendsItr.h.
Referenced by MCTruthAndFriendsItr().
|
private |
Definition at line 58 of file MCTruthAndFriendsItr.h.
Referenced by MCTruthAndFriendsItr(), and Next().
|
private |
Definition at line 55 of file MCTruthAndFriendsItr.h.
Referenced by MCTruthAndFriendsItr(), and Next().
|
private |
Definition at line 61 of file MCTruthAndFriendsItr.h.
Referenced by MCTruthAndFriendsItr(), and Next().
|
private |
Definition at line 59 of file MCTruthAndFriendsItr.h.
Referenced by MCTruthAndFriendsItr(), and Next().
|
private |
Definition at line 67 of file MCTruthAndFriendsItr.h.
Referenced by GetDk2Nu(), and Next().
|
private |
Definition at line 65 of file MCTruthAndFriendsItr.h.
Referenced by GetGTruth(), and Next().
|
private |
Definition at line 69 of file MCTruthAndFriendsItr.h.
Referenced by GetLabel(), and Next().
|
private |
Definition at line 66 of file MCTruthAndFriendsItr.h.
Referenced by GetMCFlux(), and Next().
|
private |
Definition at line 64 of file MCTruthAndFriendsItr.h.
Referenced by GetMCTruth(), and Next().
|
private |
Definition at line 68 of file MCTruthAndFriendsItr.h.
Referenced by GetNuChoice(), and Next().