LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "ClusterMergeHelper.h"
Public Member Functions | |
::cmtool::CMergeManager & | GetManager () |
void | SetClusters (util::GeometryUtilities const &gser, const std::vector< std::vector< art::Ptr< recob::Hit >>> &clusters) |
Utility method to set cluster input information to CMergeManager from LArSoft data product (vector of recob::Hit art::Ptr) More... | |
void | SetClusters (util::GeometryUtilities const &gser, const art::Event &evt, const std::string &cluster_module_label) |
Utility method to set cluster input information to CMerteManager from art::Event and cluster data product label. More... | |
void | Process (util::GeometryUtilities const &gser) |
Function to execute CMergeManager::Process() More... | |
const std::vector< std::vector< art::Ptr< recob::Hit > > > & | GetMergedClusterHits () const |
Utility method to retrieve merged clusters in terms of a vector of art::Ptr<recob::Hit> More... | |
const std::vector< cluster::ClusterParamsAlg > & | GetMergedCPAN () const |
Utility method to retrieve merged clusters in terms of a vector of CPAN. More... | |
void | AppendResult (util::GeometryUtilities const &gser, art::Event &ev, std::vector< recob::Cluster > &out_clusters, art::Assns< recob::Cluster, recob::Hit > &assns) const |
Utility method to append result set to user's data product storage. More... | |
Protected Member Functions | |
void | SetClusters (util::GeometryUtilities const &gser, const std::vector< std::vector< util::PxHit >> &clusters) |
Internal method to transfer input cluster information in the right format to CMergeManager. More... | |
Protected Attributes | |
::cmtool::CMergeManager | fMgr |
CMergeManager instance. More... | |
::util::GeometryUtilities | fGeoU |
GeometryUtilities. More... | |
std::vector< std::vector< art::Ptr< recob::Hit > > > | fInputClusters |
Input clusters in terms of a vector of art::Ptr<recob::Hit> collection. More... | |
std::vector< std::vector< art::Ptr< recob::Hit > > > | fOutputClusters |
Output clusters in terms of a vector of art::Ptr<recob::Hit> collection. More... | |
Definition at line 38 of file ClusterMergeHelper.h.
void cluster::ClusterMergeHelper::AppendResult | ( | util::GeometryUtilities const & | gser, |
art::Event & | ev, | ||
std::vector< recob::Cluster > & | out_clusters, | ||
art::Assns< recob::Cluster, recob::Hit > & | assns | ||
) | const |
Utility method to append result set to user's data product storage.
Definition at line 147 of file ClusterMergeHelper.cxx.
References util::CreateAssn(), cluster::cluster_params::end_point, cluster::LazyClusterParamsAlg::EndAngle(), cluster::LazyClusterParamsAlg::EndCharge(), cluster::LazyClusterParamsAlg::EndOpeningAngle(), fGeoU, fOutputClusters, GetMergedClusterHits(), GetMergedCPAN(), hits(), cluster::LazyClusterParamsAlg::Integral(), cluster::LazyClusterParamsAlg::IntegralStdDev(), cluster::LazyClusterParamsAlg::MultipleHitDensity(), cluster::LazyClusterParamsAlg::NHits(), geo::GeometryCore::Plane(), recob::Cluster::Sentry, cluster::cluster_params::start_point, cluster::LazyClusterParamsAlg::StartAngle(), cluster::LazyClusterParamsAlg::StartCharge(), cluster::LazyClusterParamsAlg::StartOpeningAngle(), cluster::LazyClusterParamsAlg::SummedADC(), cluster::LazyClusterParamsAlg::SummedADCStdDev(), util::PxPoint::t, util::GeometryUtilities::TimeToCm(), cluster::details::Measure_t< T >::value(), geo::PlaneGeo::View(), util::PxPoint::w, cluster::LazyClusterParamsAlg::Width(), and util::GeometryUtilities::WireToCm().
|
inline |
Definition at line 40 of file ClusterMergeHelper.h.
References tca::evt, and lar::dump::vector().
const std::vector< std::vector< art::Ptr< recob::Hit > > > & cluster::ClusterMergeHelper::GetMergedClusterHits | ( | ) | const |
Utility method to retrieve merged clusters in terms of a vector of art::Ptr<recob::Hit>
Definition at line 121 of file ClusterMergeHelper.cxx.
References fOutputClusters.
Referenced by AppendResult().
const std::vector< cluster::ClusterParamsAlg > & cluster::ClusterMergeHelper::GetMergedCPAN | ( | ) | const |
Utility method to retrieve merged clusters in terms of a vector of CPAN.
Definition at line 135 of file ClusterMergeHelper.cxx.
References fMgr, fOutputClusters, and cmtool::CMergeManager::GetClusters().
Referenced by AppendResult().
void cluster::ClusterMergeHelper::Process | ( | util::GeometryUtilities const & | gser | ) |
Function to execute CMergeManager::Process()
Definition at line 88 of file ClusterMergeHelper.cxx.
References fInputClusters, fMgr, fOutputClusters, cmtool::CMergeManager::GetBookKeeper(), cmtool::CMergeManager::GetClusters(), cmtool::CMergeBookKeeper::GetResult(), and cmtool::CMManagerBase::Process().
void cluster::ClusterMergeHelper::SetClusters | ( | util::GeometryUtilities const & | gser, |
const std::vector< std::vector< art::Ptr< recob::Hit >>> & | clusters | ||
) |
Utility method to set cluster input information to CMergeManager from LArSoft data product (vector of recob::Hit art::Ptr)
Definition at line 23 of file ClusterMergeHelper.cxx.
References fGeoU, fInputClusters, fOutputClusters, util::GeometryUtilities::TimeToCm(), and util::GeometryUtilities::WireToCm().
Referenced by SetClusters().
void cluster::ClusterMergeHelper::SetClusters | ( | util::GeometryUtilities const & | gser, |
const art::Event & | evt, | ||
const std::string & | cluster_module_label | ||
) |
Utility method to set cluster input information to CMerteManager from art::Event and cluster data product label.
Definition at line 60 of file ClusterMergeHelper.cxx.
References art::ProductRetriever::getByLabel(), art::Handle< T >::isValid(), and SetClusters().
|
inlineprotected |
Internal method to transfer input cluster information in the right format to CMergeManager.
Definition at line 68 of file ClusterMergeHelper.h.
|
protected |
GeometryUtilities.
Definition at line 80 of file ClusterMergeHelper.h.
Referenced by AppendResult(), and SetClusters().
|
protected |
Input clusters in terms of a vector of art::Ptr<recob::Hit> collection.
Definition at line 83 of file ClusterMergeHelper.h.
Referenced by Process(), and SetClusters().
|
protected |
CMergeManager instance.
Definition at line 77 of file ClusterMergeHelper.h.
Referenced by GetMergedCPAN(), and Process().
|
protected |
Output clusters in terms of a vector of art::Ptr<recob::Hit> collection.
Definition at line 86 of file ClusterMergeHelper.h.
Referenced by AppendResult(), GetMergedClusterHits(), GetMergedCPAN(), Process(), and SetClusters().