#include "DMCThrownMatching.h" void DMCThrownMatching::Get_MatchingChargedHypotheses(const DMCThrown* locInputMCThrown, deque& locMatchingChargedHypotheses) const { locMatchingChargedHypotheses.clear(); map >::const_iterator locIterator = dThrownToChargedHypoMap.find(locInputMCThrown); if(locIterator != dThrownToChargedHypoMap.end()) locMatchingChargedHypotheses = locIterator->second; } const DChargedTrack* DMCThrownMatching::Get_MatchingChargedTrack(const DMCThrown* locInputMCThrown) const { map::const_iterator locIterator = dThrownToChargedMap.find(locInputMCThrown); if(locIterator != dThrownToChargedMap.end()) return locIterator->second; return NULL; } void DMCThrownMatching::Get_MatchingNeutralHypotheses(const DMCThrown* locInputMCThrown, deque& locMatchingNeutralHypotheses) const { locMatchingNeutralHypotheses.clear(); map >::const_iterator locIterator = dThrownToNeutralHypoMap.find(locInputMCThrown); if(locIterator != dThrownToNeutralHypoMap.end()) locMatchingNeutralHypotheses = locIterator->second; } const DNeutralParticle* DMCThrownMatching::Get_MatchingNeutralParticle(const DMCThrown* locInputMCThrown) const { map::const_iterator locIterator = dThrownToNeutralMap.find(locInputMCThrown); if(locIterator != dThrownToNeutralMap.end()) return locIterator->second; return NULL; } const DMCThrown* DMCThrownMatching::Get_MatchingMCThrown(const DChargedTrackHypothesis* locChargedTrackHypothesis) const { map::const_iterator locIterator = dChargedHypoToThrownMap.find(locChargedTrackHypothesis); if(locIterator != dChargedHypoToThrownMap.end()) return locIterator->second; return NULL; } const DMCThrown* DMCThrownMatching::Get_MatchingMCThrown(const DChargedTrack* locChargedTrack) const { map::const_iterator locIterator = dChargedToThrownMap.find(locChargedTrack); if(locIterator != dChargedToThrownMap.end()) return locIterator->second; return NULL; } const DMCThrown* DMCThrownMatching::Get_MatchingMCThrown(const DNeutralParticleHypothesis* locNeutralParticleHypothesis) const { map::const_iterator locIterator = dNeutralHypoToThrownMap.find(locNeutralParticleHypothesis); if(locIterator != dNeutralHypoToThrownMap.end()) return locIterator->second; return NULL; } const DMCThrown* DMCThrownMatching::Get_MatchingMCThrown(const DNeutralParticle* locNeutralParticle) const { map::const_iterator locIterator = dNeutralToThrownMap.find(locNeutralParticle); if(locIterator != dNeutralToThrownMap.end()) return locIterator->second; return NULL; } const DTOFPoint* DMCThrownMatching::Get_MatchingTOFPoint(const DTOFTruth* locTOFTruth) const { map::const_iterator locIterator = dTOFTruthToPointMap.find(locTOFTruth); if(locIterator != dTOFTruthToPointMap.end()) return locIterator->second; return NULL; } const DTOFTruth* DMCThrownMatching::Get_MatchingTOFTruth(const DTOFPoint* locTOFPoint) const { map::const_iterator locIterator = dTOFPointToTruthMap.find(locTOFPoint); if(locIterator != dTOFPointToTruthMap.end()) return locIterator->second; return NULL; } const DBCALShower* DMCThrownMatching::Get_MatchingBCALShower(const DBCALTruthShower* locBCALTruthShower) const { map::const_iterator locIterator = dBCALTruthToShowerMap.find(locBCALTruthShower); if(locIterator != dBCALTruthToShowerMap.end()) return locIterator->second; return NULL; } const DBCALTruthShower* DMCThrownMatching::Get_MatchingBCALTruthShower(const DBCALShower* locBCALShower) const { map::const_iterator locIterator = dBCALShowerToTruthMap.find(locBCALShower); if(locIterator != dBCALShowerToTruthMap.end()) return locIterator->second; return NULL; } const DFCALShower* DMCThrownMatching::Get_MatchingFCALShower(const DFCALTruthShower* locFCALTruthShower) const { map::const_iterator locIterator = dFCALTruthToShowerMap.find(locFCALTruthShower); if(locIterator != dFCALTruthToShowerMap.end()) return locIterator->second; return NULL; } const DFCALTruthShower* DMCThrownMatching::Get_MatchingFCALTruthShower(const DFCALShower* locFCALShower) const { map::const_iterator locIterator = dFCALShowerToTruthMap.find(locFCALShower); if(locIterator != dFCALShowerToTruthMap.end()) return locIterator->second; return NULL; }