2 #include "../NumuReco/PrimaryTrack.h"
3 #include "../NumuReco/TruthMatch.h"
8 while (i < event.
reco.size()) {
9 for (
size_t particle_ind: event.
reco[i].slice.tracks) {
22 if (use_calorimetry) {
30 if (primary_track < 0) {
31 event.reco.erase(event.
reco.begin() + i);
35 event.reco[i].slice.primary_track_index = primary_track;
52 for (
unsigned i = 0; i <
event.reco.size(); i++) {
bool is_contained
is it contained in the "containment volume"?
process_name use argoneut_mc_hitfinder track
void CorrectMultiMatches(RecoEvent &event, std::vector< RecoInteraction > &recos)
std::vector< RecoInteraction > reco
List of reconstructed vertices.
std::map< size_t, RecoTrack > tracks
Map of track indices to Track information.
TVector3 start
start position of track
TruthMatch InteractionTruthMatch(const std::vector< event::Interaction > &truth, const std::map< size_t, numu::RecoTrack > &reco_tracks, const numu::RecoInteraction &reco)
The standard event data definition.
int SelectLongestIDdMuon(const std::map< size_t, RecoTrack > &tracks, const RecoSlice &slice)
int SelectLongestTrack(const std::map< size_t, RecoTrack > &tracks, const RecoSlice &slice)
TVector3 end
end position of track
void SetEvent(numu::RecoEvent &event, const event::Event &core, const ana::SBNOsc::Cuts &cuts, numu::MCType file_type, bool use_calorimetry=true)
bool InCalorimetricContainment(const TVector3 &v) const
std::vector< Interaction > truth
All truth interactions.