LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
ClusterParamsBuilder class definiton. More...
#include "ClusterParamsBuilder.h"
Public Member Functions | |
ClusterParamsBuilder (fhicl::ParameterSet const &pset) | |
Constructor. More... | |
virtual | ~ClusterParamsBuilder () |
Destructor. More... | |
void | configure (const fhicl::ParameterSet &) |
void | BuildClusterInfo (reco::ClusterParametersList &clusterParametersList) const |
Given the results of running DBScan, format the clusters so that they can be easily transferred back to the larsoft world. More... | |
void | FillClusterParams (reco::ClusterParameters &, reco::Hit2DToClusterMap &, double minUniqueFrac=0., double maxLostFrac=1.) const |
Fill the cluster parameters (expose to outside world for case of splitting/merging clusters) More... | |
Private Member Functions | |
void | removeUsedHitsFromMap (reco::ClusterParameters &, reco::HitPairListPtr &, reco::Hit2DToClusterMap &) const |
Private Attributes | |
size_t | m_clusterMinHits |
Data members to follow. More... | |
double | m_clusterMinUniqueFraction |
double | m_clusterMaxLostFraction |
PrincipalComponentsAlg | m_pcaAlg |
ClusterParamsBuilder class definiton.
Definition at line 34 of file ClusterParamsBuilder.h.
lar_cluster3d::ClusterParamsBuilder::ClusterParamsBuilder | ( | fhicl::ParameterSet const & | pset | ) |
Constructor.
pset |
Definition at line 30 of file ClusterParamsBuilder.cxx.
References configure().
|
virtual |
void lar_cluster3d::ClusterParamsBuilder::BuildClusterInfo | ( | reco::ClusterParametersList & | clusterParametersList | ) | const |
Given the results of running DBScan, format the clusters so that they can be easily transferred back to the larsoft world.
hitPairClusterMap | map between view and a list of 3D hits |
clusterParametersList | a container for our candidate 3D clusters |
rejectionFraction | Used for determine "hit purity" when rejecting clusters The last two parameters are passed through to the FillClusterParams method |
Given a list of a list of candidate cluster hits, build these out into the intermediate 3D cluster objects to pass to the final stage
Note that this routine will also reject unworthy clusters, in particular those that share too many hits with other clusters. The criteria is that a larger cluster (more hits) will be superior to a smaller one, if the smaller one shares too many hits with the larger it is zapped. *** THIS IS AN AREA FOR CONTINUED STUDY ***
Definition at line 53 of file ClusterParamsBuilder.cxx.
References FillClusterParams(), reco::ClusterParameters::getClusterParams(), reco::ClusterParameters::getFullPCA(), reco::PrincipalComponents::getSvdOK(), m_clusterMaxLostFraction, m_clusterMinHits, and m_clusterMinUniqueFraction.
Referenced by lar_cluster3d::DBScanAlg::Cluster3DHits(), and lar_cluster3d::MinSpanTreeAlg::Cluster3DHits().
void lar_cluster3d::ClusterParamsBuilder::configure | ( | const fhicl::ParameterSet & | ) |
Definition at line 44 of file ClusterParamsBuilder.cxx.
References fhicl::ParameterSet::get(), m_clusterMaxLostFraction, m_clusterMinHits, and m_clusterMinUniqueFraction.
Referenced by ClusterParamsBuilder().
void lar_cluster3d::ClusterParamsBuilder::FillClusterParams | ( | reco::ClusterParameters & | clusterParams, |
reco::Hit2DToClusterMap & | hit2DToClusterMap, | ||
double | minUniqueFrac = 0. , |
||
double | maxLostFrac = 1. |
||
) | const |
Fill the cluster parameters (expose to outside world for case of splitting/merging clusters)
ClusterParameters | The cluster parameters container to be modified |
Hit2DToClusterMap | Map to keep track of 2D hit to cluster association |
double | minimum fraction of unique hits |
double | maximum fraction of "lost" hits |
Given a list of hits fill out the remaining parameters for this cluster and evaluate the candidate's worthiness to achieve stardom in the event display
Definition at line 121 of file ClusterParamsBuilder.cxx.
References reco::ClusterParameters::getClusterParams(), reco::ClusterParameters::getFullPCA(), reco::ClusterParameters::getHit2DToHit3DListMap(), reco::ClusterParameters::getHit3DToEdgeMap(), reco::ClusterParameters::getHitPairListPtr(), reco::ClusterParameters::getSkeletonPCA(), reco::PrincipalComponents::getSvdOK(), art::left(), m_pcaAlg, max, min, lar_cluster3d::PrincipalComponentsAlg::PCAAnalysis_3D(), reco::ClusterHit3D::REJECTEDHIT, art::right(), reco::ClusterParameters::UpdateParameters(), and reco::ClusterHit2D::USED.
Referenced by BuildClusterInfo(), and lar_cluster3d::Cluster3D::splitClustersWithHough().
|
private |
Definition at line 369 of file ClusterParamsBuilder.cxx.
|
private |
Definition at line 86 of file ClusterParamsBuilder.h.
Referenced by BuildClusterInfo(), and configure().
|
private |
Data members to follow.
Definition at line 84 of file ClusterParamsBuilder.h.
Referenced by BuildClusterInfo(), and configure().
|
private |
Definition at line 85 of file ClusterParamsBuilder.h.
Referenced by BuildClusterInfo(), and configure().
|
private |
Definition at line 88 of file ClusterParamsBuilder.h.
Referenced by FillClusterParams().