LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "ClusterMergeHelper.h"
Public Member Functions | |
ClusterMergeHelper () | |
Default constructor with fhicl parameters. More... | |
virtual | ~ClusterMergeHelper () |
Default destructor. More... | |
::cmtool::CMergeManager & | GetManager () |
A method to retrieve Manager. More... | |
void | SetClusters (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 (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 () |
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 (art::EDProducer &ed, 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 (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 46 of file ClusterMergeHelper.h.
|
inline |
Default constructor with fhicl parameters.
Definition at line 51 of file ClusterMergeHelper.h.
|
inlinevirtual |
void cluster::ClusterMergeHelper::AppendResult | ( | art::EDProducer & | ed, |
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 154 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().
Referenced by GetManager().
|
inline |
A method to retrieve Manager.
Definition at line 57 of file ClusterMergeHelper.h.
References AppendResult(), tca::evt, fMgr, GetMergedClusterHits(), GetMergedCPAN(), Process(), SetClusters(), 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 125 of file ClusterMergeHelper.cxx.
References fOutputClusters.
Referenced by AppendResult(), and GetManager().
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 140 of file ClusterMergeHelper.cxx.
References fMgr, fOutputClusters, and cmtool::CMergeManager::GetClusters().
Referenced by AppendResult(), and GetManager().
void cluster::ClusterMergeHelper::Process | ( | ) |
Function to execute CMergeManager::Process()
Definition at line 82 of file ClusterMergeHelper.cxx.
References fInputClusters, fMgr, fOutputClusters, cmtool::CMergeManager::GetBookKeeper(), cmtool::CMergeManager::GetClusters(), cmtool::CMergeBookKeeper::GetResult(), and cmtool::CMManagerBase::Process().
Referenced by GetManager().
void cluster::ClusterMergeHelper::SetClusters | ( | 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 17 of file ClusterMergeHelper.cxx.
References fGeoU, fInputClusters, fOutputClusters, util::GeometryUtilities::TimeToCm(), and util::GeometryUtilities::WireToCm().
Referenced by GetManager(), and SetClusters().
void cluster::ClusterMergeHelper::SetClusters | ( | 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 51 of file ClusterMergeHelper.cxx.
References art::DataViewImpl::getByLabel(), art::Handle< T >::isValid(), and SetClusters().
|
inlineprotected |
Internal method to transfer input cluster information in the right format to CMergeManager.
Definition at line 83 of file ClusterMergeHelper.h.
References fMgr, cmtool::CMergeManager::Reset(), and cmtool::CMManagerBase::SetClusters().
|
protected |
GeometryUtilities.
Definition at line 95 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 98 of file ClusterMergeHelper.h.
Referenced by Process(), and SetClusters().
|
protected |
CMergeManager instance.
Definition at line 92 of file ClusterMergeHelper.h.
Referenced by GetManager(), GetMergedCPAN(), Process(), and SetClusters().
|
protected |
Output clusters in terms of a vector of art::Ptr<recob::Hit> collection.
Definition at line 101 of file ClusterMergeHelper.h.
Referenced by AppendResult(), GetMergedClusterHits(), GetMergedCPAN(), Process(), and SetClusters().