27 MatchedSlidingFitMap::const_iterator iter1 = matchedSlidingFitMap.find(hitType1);
29 if (matchedSlidingFitMap.end() != iter1)
36 MatchedSlidingFitMap::const_iterator iter2 = matchedSlidingFitMap.find(hitType2);
38 if (matchedSlidingFitMap.end() != iter2)
45 unsigned int nViews(1);
46 if (fitPositionList1.size() > 0)
48 if (fitPositionList2.size() > 0)
57 this->
GetBestPosition3D(hitType1, hitType2, fitPositionList1, fitPositionList2, protoHit);
#define PANDORA_THROW_RESULT_IF_AND_IF(StatusCode1, StatusCode2, Operator, Command)
virtual void GetBestPosition3D(const pandora::HitType hitType1, const pandora::HitType hitType2, const pandora::CartesianPointVector &fitPositionList1, const pandora::CartesianPointVector &fitPositionList2, ProtoHit &protoHit) const
Get the three dimensional position using a provided two dimensional calo hit and candidate fit positi...
void GetTransverseTrackHit3D(const MatchedSlidingFitMap &matchedSlidingFitMap, ProtoHit &protoHit) const
Get the three dimensional position using a provided two dimensional calo hit and sliding linear fits ...
Proto hits are temporary constructs to be used during iterative 3D hit procedure.
const pandora::CaloHit * GetParentCaloHit2D() const
Get the address of the parent 2D calo hit.
unsigned int m_minViews
The minimum number of views required for building hits.
std::map< pandora::HitType, TwoDSlidingFitResult > MatchedSlidingFitMap
TwoDSlidingFitResult class.
pandora::StatusCode GetGlobalFitPositionListAtX(const float x, pandora::CartesianPointVector &positionList) const
Get a list of projected positions for a given input x coordinate.
HitType GetHitType() const
Get the calorimeter hit type.
const CartesianVector & GetPositionVector() const
Get the position vector of center of calorimeter cell, units mm.
float GetX() const
Get the cartesian x coordinate.
StatusCodeException class.
HitType
Calorimeter hit type enum.
std::vector< CartesianVector > CartesianPointVector