Allocate a cluster to the appropriate streams.
28 const OrderedCaloHitList &orderedCaloHitList{pCluster->GetOrderedCaloHitList()};
30 orderedCaloHitList.FillCaloHitList(caloHits);
31 const CaloHitList &isolatedHits{pCluster->GetIsolatedCaloHitList()};
32 caloHits.insert(caloHits.end(), isolatedHits.begin(), isolatedHits.end());
33 FloatVector trackLikelihoods;
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()};
55 catch (
const StatusCodeException &)
59 return STATUS_CODE_SUCCESS;
auto end(FixedBins< T, C > const &) noexcept
auto begin(FixedBins< T, C > const &) noexcept
double mean(const std::vector< short > &wf, size_t start, size_t nsample)
process_name largeant stream1 can override from command line with o or output physics producers generator N
std::string m_showerListName
The name of the shower list.
ClusterListMap m_clusterListMap
The map from cluster list names to cluster lists.
std::string m_trackListName
The name of the track list.
float GetTrackProbability() const
Get the probability that the hit is track-like.