9 #include "Pandora/AlgorithmHeaders.h"
21 const HitType hitType(pCaloHit2D->GetHitType());
22 const HitType hitType1((TPC_VIEW_U == hitType) ? TPC_VIEW_V : (TPC_VIEW_V == hitType) ? TPC_VIEW_W : TPC_VIEW_U);
23 const HitType hitType2((TPC_VIEW_U == hitType) ? TPC_VIEW_W : (TPC_VIEW_V == hitType) ? TPC_VIEW_U : TPC_VIEW_V);
25 CartesianPointVector fitPositionList1, fitPositionList2;
27 MatchedSlidingFitMap::const_iterator iter1 = matchedSlidingFitMap.find(hitType1);
29 if (matchedSlidingFitMap.end() != iter1)
32 PANDORA_THROW_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=,
36 MatchedSlidingFitMap::const_iterator iter2 = matchedSlidingFitMap.find(hitType2);
38 if (matchedSlidingFitMap.end() != iter2)
41 PANDORA_THROW_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=,
45 unsigned int nViews(1);
46 if (fitPositionList1.size() > 0)
48 if (fitPositionList2.size() > 0)
51 if (nViews < m_minViews)
52 throw StatusCodeException(STATUS_CODE_NOT_FOUND);
55 throw StatusCodeException(STATUS_CODE_INVALID_PARAMETER);
57 this->GetBestPosition3D(hitType1, hitType2, fitPositionList1, fitPositionList2, protoHit);
Proto hits are temporary constructs to be used during iterative 3D hit procedure. ...
std::map< pandora::HitType, TwoDSlidingFitResult > MatchedSlidingFitMap
const pandora::CaloHit * GetParentCaloHit2D() const
Get the address of the parent 2D calo hit.
required by fuzzyCluster table::sbnd_g4_services gaushitTruthMatch pandora
pandora::StatusCode GetGlobalFitPositionListAtX(const float x, pandora::CartesianPointVector &positionList) const
Get a list of projected positions for a given input x coordinate.
TwoDSlidingFitResult class.