DlPfoCharacterisationAlgorithm class.
More...
#include <DlPfoCharacterisationAlgorithm.h>
|
bool | IsClearTrack (const pandora::Cluster *const pCluster) const |
| Whether cluster is identified as a clear track. More...
|
|
bool | IsClearTrack (const pandora::ParticleFlowObject *const pPfo) const |
| Whether pfo is identified as a clear track. More...
|
|
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
|
lar_dl_content::DlPfoCharacterisationAlgorithm::DlPfoCharacterisationAlgorithm |
( |
| ) |
|
bool lar_dl_content::DlPfoCharacterisationAlgorithm::IsClearTrack |
( |
const pandora::Cluster *const |
pCluster | ) |
const |
|
privatevirtual |
bool lar_dl_content::DlPfoCharacterisationAlgorithm::IsClearTrack |
( |
const pandora::ParticleFlowObject *const |
pPfo | ) |
const |
|
privatevirtual |
Whether pfo is identified as a clear track.
- Parameters
-
pPfo | address of the relevant pfo |
- Returns
- boolean
Implements lar_content::PfoCharacterisationBaseAlgorithm.
Definition at line 68 of file DlPfoCharacterisationAlgorithm.cc.
70 ClusterList allClusters;
71 LArPfoHelper::GetTwoDClusterList(pPfo, allClusters);
72 FloatVector trackLikelihoods;
73 for (
const Cluster *pCluster : allClusters)
75 const OrderedCaloHitList &orderedCaloHitList{pCluster->GetOrderedCaloHitList()};
77 orderedCaloHitList.FillCaloHitList(caloHits);
78 const CaloHitList &isolatedHits{pCluster->GetIsolatedCaloHitList()};
79 caloHits.insert(caloHits.end(), isolatedHits.begin(), isolatedHits.end());
82 for (
const CaloHit *pCaloHit : caloHits)
86 const float pShower{pLArCaloHit->GetShowerProbability()};
87 if ((pTrack + pShower) > std::numeric_limits<float>::epsilon())
88 trackLikelihoods.emplace_back(pTrack / (pTrack + pShower));
91 catch (
const StatusCodeException &)
96 const unsigned long N{trackLikelihoods.size()};
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
float GetTrackProbability() const
Get the probability that the hit is track-like.
StatusCode lar_dl_content::DlPfoCharacterisationAlgorithm::ReadSettings |
( |
const pandora::TiXmlHandle |
xmlHandle | ) |
|
|
private |
The documentation for this class was generated from the following files: