32 caloHits.insert(caloHits.end(), isolatedHits.begin(), isolatedHits.end());
36 for (
const CaloHit *pCaloHit : caloHits)
40 const float pShower{pLArCaloHit->GetShowerProbability()};
41 if ((pTrack + pShower) > std::numeric_limits<float>::epsilon())
42 trackLikelihoods.emplace_back(pTrack / (pTrack + pShower));
45 const unsigned long N{trackLikelihoods.size()};
48 float mean{std::accumulate(std::begin(trackLikelihoods), std::end(trackLikelihoods), 0.f) / N};
59 return STATUS_CODE_SUCCESS;
72 return STATUS_CODE_SUCCESS;
Header file for the deep learning track shower cluster streaming algorithm.
Header file for the lar calo hit class.
Header file for the lar monte carlo particle helper helper class.
Header file for the lar monitoring helper helper class.
#define PANDORA_RETURN_RESULT_IF(StatusCode1, Operator, Command)
float GetTrackProbability() const
Get the probability that the hit is track-like.
pandora::StringVector m_listNames
The name of the output lists.
ClusterListMap m_clusterListMap
The map from cluster list names to cluster lists.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read the algorithm settings.
virtual pandora::StatusCode AllocateToStreams(const pandora::Cluster *const pCluster)
Allocate a cluster to the appropriate streams.
std::string m_showerListName
The name of the shower list.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read the algorithm settings.
std::string m_trackListName
The name of the track list.
const OrderedCaloHitList & GetOrderedCaloHitList() const
Get the ordered calo hit list.
const CaloHitList & GetIsolatedCaloHitList() const
Get the isolated calo hit list.
Calo hit lists arranged by pseudo layer.
void FillCaloHitList(CaloHitList &caloHitList) const
Fill a provided calo hit list with all the calo hits in the ordered calo hit list.
StatusCodeException class.
static StatusCode ReadValue(const TiXmlHandle &xmlHandle, const std::string &xmlElementName, T &t)
Read a value from an xml element.
MANAGED_CONTAINER< const CaloHit * > CaloHitList
std::vector< float > FloatVector
StatusCode
The StatusCode enum.