All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | Friends | List of all members
reco::ClusterParameters Class Reference

#include <Cluster3D.h>

Public Member Functions

 ClusterParameters ()
 
 ClusterParameters (reco::HitPairClusterMap::iterator &mapItr)
 
 ClusterParameters (reco::HitPairListPtr &hitList)
 
ClusterParametersListdaughterList ()
 
void UpdateParameters (const reco::ClusterHit2D *hit)
 
void addHit3D (const reco::ClusterHit3D *hit3D)
 
void fillHit2DToHit3DListMap ()
 
reco::PlaneToClusterParamsMapgetClusterParams ()
 
reco::Hit2DToHit3DListMapgetHit2DToHit3DListMap ()
 
reco::HitPairListPtrgetHitPairListPtr ()
 
reco::PrincipalComponentsgetFullPCA ()
 
reco::PrincipalComponentsgetSkeletonPCA ()
 
reco::Hit3DToEdgeMapgetHit3DToEdgeMap ()
 
reco::HitPairListPtrgetBestHitPairListPtr ()
 
reco::EdgeListgetBestEdgeList ()
 
reco::ConvexHullgetConvexHull ()
 
dcel2d::FaceListgetFaceList ()
 
dcel2d::VertexListgetVertexList ()
 
dcel2d::HalfEdgeListgetHalfEdgeList ()
 

Private Attributes

PlaneToClusterParamsMap fClusterParams
 
reco::HitPairListPtr fHitPairListPtr
 
reco::Hit2DToHit3DListMap fHit2DToHit3DListMap
 
reco::PrincipalComponents fFullPCA
 
reco::PrincipalComponents fSkeletonPCA
 
reco::Hit3DToEdgeMap fHit3DToEdgeMap
 
reco::HitPairListPtr fBestHitPairListPtr
 
reco::EdgeList fBestEdgeList
 
reco::ConvexHull fConvexHull
 
dcel2d::FaceList fFaceList
 
dcel2d::VertexList fVertexList
 
dcel2d::HalfEdgeList fHalfEdgeList
 
ClusterParametersList fClusterParameters
 

Friends

bool operator< (const ClusterParameters &a, const ClusterParameters &b)
 

Detailed Description

Definition at line 405 of file Cluster3D.h.

Constructor & Destructor Documentation

reco::ClusterParameters::ClusterParameters ( )
inline

Definition at line 408 of file Cluster3D.h.

409  {
410  fClusterParams.clear();
411  fHitPairListPtr.clear();
412  fHit2DToHit3DListMap.clear();
413  fHit3DToEdgeMap.clear();
414  fBestHitPairListPtr.clear();
415  fBestEdgeList.clear();
416  fConvexHull.clear();
417  fFaceList.clear();
418  fVertexList.clear();
419  fHalfEdgeList.clear();
420  fClusterParameters.clear();
421  }
reco::HitPairListPtr fBestHitPairListPtr
Definition: Cluster3D.h:498
dcel2d::HalfEdgeList fHalfEdgeList
Definition: Cluster3D.h:503
dcel2d::VertexList fVertexList
Definition: Cluster3D.h:502
reco::ConvexHull fConvexHull
Definition: Cluster3D.h:500
reco::Hit3DToEdgeMap fHit3DToEdgeMap
Definition: Cluster3D.h:497
ClusterParametersList fClusterParameters
Definition: Cluster3D.h:504
PlaneToClusterParamsMap fClusterParams
Definition: Cluster3D.h:492
reco::EdgeList fBestEdgeList
Definition: Cluster3D.h:499
reco::Hit2DToHit3DListMap fHit2DToHit3DListMap
Definition: Cluster3D.h:494
dcel2d::FaceList fFaceList
Definition: Cluster3D.h:501
reco::HitPairListPtr fHitPairListPtr
Definition: Cluster3D.h:493
reco::ClusterParameters::ClusterParameters ( reco::HitPairClusterMap::iterator &  mapItr)
inline

Definition at line 423 of file Cluster3D.h.

423  : fHitPairListPtr(mapItr->second)
424  {
425  fClusterParams.clear();
426  fHit2DToHit3DListMap.clear();
427  fHit3DToEdgeMap.clear();
428  fBestHitPairListPtr.clear();
429  fBestEdgeList.clear();
430  fConvexHull.clear();
431  fFaceList.clear();
432  fVertexList.clear();
433  fHalfEdgeList.clear();
434  }
reco::HitPairListPtr fBestHitPairListPtr
Definition: Cluster3D.h:498
dcel2d::HalfEdgeList fHalfEdgeList
Definition: Cluster3D.h:503
dcel2d::VertexList fVertexList
Definition: Cluster3D.h:502
reco::ConvexHull fConvexHull
Definition: Cluster3D.h:500
reco::Hit3DToEdgeMap fHit3DToEdgeMap
Definition: Cluster3D.h:497
PlaneToClusterParamsMap fClusterParams
Definition: Cluster3D.h:492
reco::EdgeList fBestEdgeList
Definition: Cluster3D.h:499
reco::Hit2DToHit3DListMap fHit2DToHit3DListMap
Definition: Cluster3D.h:494
dcel2d::FaceList fFaceList
Definition: Cluster3D.h:501
reco::HitPairListPtr fHitPairListPtr
Definition: Cluster3D.h:493
reco::ClusterParameters::ClusterParameters ( reco::HitPairListPtr hitList)
inline

Definition at line 436 of file Cluster3D.h.

436  : fHitPairListPtr(hitList)
437  {
438  fClusterParams.clear();
439  fHit2DToHit3DListMap.clear();
440  fHit3DToEdgeMap.clear();
441  fBestHitPairListPtr.clear();
442  fBestEdgeList.clear();
443  fConvexHull.clear();
444  fFaceList.clear();
445  fVertexList.clear();
446  fHalfEdgeList.clear();
447  }
reco::HitPairListPtr fBestHitPairListPtr
Definition: Cluster3D.h:498
dcel2d::HalfEdgeList fHalfEdgeList
Definition: Cluster3D.h:503
dcel2d::VertexList fVertexList
Definition: Cluster3D.h:502
reco::ConvexHull fConvexHull
Definition: Cluster3D.h:500
reco::Hit3DToEdgeMap fHit3DToEdgeMap
Definition: Cluster3D.h:497
PlaneToClusterParamsMap fClusterParams
Definition: Cluster3D.h:492
reco::EdgeList fBestEdgeList
Definition: Cluster3D.h:499
reco::Hit2DToHit3DListMap fHit2DToHit3DListMap
Definition: Cluster3D.h:494
dcel2d::FaceList fFaceList
Definition: Cluster3D.h:501
reco::HitPairListPtr fHitPairListPtr
Definition: Cluster3D.h:493

Member Function Documentation

void reco::ClusterParameters::addHit3D ( const reco::ClusterHit3D hit3D)
inline

Definition at line 456 of file Cluster3D.h.

457  {
458  fHitPairListPtr.emplace_back(hit3D);
459 
460  for(const auto& hit2D : hit3D->getHits())
461  if (hit2D) fHit2DToHit3DListMap[hit2D].emplace_back(hit3D);
462  }
reco::Hit2DToHit3DListMap fHit2DToHit3DListMap
Definition: Cluster3D.h:494
const ClusterHit2DVec & getHits() const
Definition: Cluster3D.h:170
reco::HitPairListPtr fHitPairListPtr
Definition: Cluster3D.h:493
ClusterParametersList& reco::ClusterParameters::daughterList ( )
inline

Definition at line 449 of file Cluster3D.h.

449 {return fClusterParameters;}
ClusterParametersList fClusterParameters
Definition: Cluster3D.h:504
void reco::ClusterParameters::fillHit2DToHit3DListMap ( )
inline

Definition at line 464 of file Cluster3D.h.

465  {
466  for(const auto& hit3D : fHitPairListPtr)
467  {
468  for(const auto& hit2D : hit3D->getHits())
469  if (hit2D) fHit2DToHit3DListMap[hit2D].emplace_back(hit3D);
470  }
471  }
reco::Hit2DToHit3DListMap fHit2DToHit3DListMap
Definition: Cluster3D.h:494
reco::HitPairListPtr fHitPairListPtr
Definition: Cluster3D.h:493
reco::EdgeList& reco::ClusterParameters::getBestEdgeList ( )
inline

Definition at line 480 of file Cluster3D.h.

480 {return fBestEdgeList;}
reco::EdgeList fBestEdgeList
Definition: Cluster3D.h:499
reco::HitPairListPtr& reco::ClusterParameters::getBestHitPairListPtr ( )
inline

Definition at line 479 of file Cluster3D.h.

479 {return fBestHitPairListPtr;}
reco::HitPairListPtr fBestHitPairListPtr
Definition: Cluster3D.h:498
reco::PlaneToClusterParamsMap& reco::ClusterParameters::getClusterParams ( )
inline

Definition at line 473 of file Cluster3D.h.

473 {return fClusterParams;}
PlaneToClusterParamsMap fClusterParams
Definition: Cluster3D.h:492
reco::ConvexHull& reco::ClusterParameters::getConvexHull ( )
inline

Definition at line 481 of file Cluster3D.h.

481 {return fConvexHull;}
reco::ConvexHull fConvexHull
Definition: Cluster3D.h:500
dcel2d::FaceList& reco::ClusterParameters::getFaceList ( )
inline

Definition at line 482 of file Cluster3D.h.

482 {return fFaceList;}
dcel2d::FaceList fFaceList
Definition: Cluster3D.h:501
reco::PrincipalComponents& reco::ClusterParameters::getFullPCA ( )
inline

Definition at line 476 of file Cluster3D.h.

476 {return fFullPCA;}
reco::PrincipalComponents fFullPCA
Definition: Cluster3D.h:495
dcel2d::HalfEdgeList& reco::ClusterParameters::getHalfEdgeList ( )
inline

Definition at line 484 of file Cluster3D.h.

484 {return fHalfEdgeList;}
dcel2d::HalfEdgeList fHalfEdgeList
Definition: Cluster3D.h:503
reco::Hit2DToHit3DListMap& reco::ClusterParameters::getHit2DToHit3DListMap ( )
inline

Definition at line 474 of file Cluster3D.h.

474 {return fHit2DToHit3DListMap;}
reco::Hit2DToHit3DListMap fHit2DToHit3DListMap
Definition: Cluster3D.h:494
reco::Hit3DToEdgeMap& reco::ClusterParameters::getHit3DToEdgeMap ( )
inline

Definition at line 478 of file Cluster3D.h.

478 {return fHit3DToEdgeMap;}
reco::Hit3DToEdgeMap fHit3DToEdgeMap
Definition: Cluster3D.h:497
reco::HitPairListPtr& reco::ClusterParameters::getHitPairListPtr ( )
inline

Definition at line 475 of file Cluster3D.h.

475 {return fHitPairListPtr;}
reco::HitPairListPtr fHitPairListPtr
Definition: Cluster3D.h:493
reco::PrincipalComponents& reco::ClusterParameters::getSkeletonPCA ( )
inline

Definition at line 477 of file Cluster3D.h.

477 {return fSkeletonPCA;}
reco::PrincipalComponents fSkeletonPCA
Definition: Cluster3D.h:496
dcel2d::VertexList& reco::ClusterParameters::getVertexList ( )
inline

Definition at line 483 of file Cluster3D.h.

483 {return fVertexList;}
dcel2d::VertexList fVertexList
Definition: Cluster3D.h:502
void reco::ClusterParameters::UpdateParameters ( const reco::ClusterHit2D hit)
inline

Definition at line 451 of file Cluster3D.h.

452  {
453  fClusterParams[hit->WireID().Plane].UpdateParameters(hit);
454  }
const geo::WireID & WireID() const
Definition: Cluster3D.h:76
PlaneToClusterParamsMap fClusterParams
Definition: Cluster3D.h:492
PlaneID_t Plane
Index of the plane within its TPC.
Definition: geo_types.h:493

Friends And Related Function Documentation

bool operator< ( const ClusterParameters a,
const ClusterParameters b 
)
friend

Definition at line 486 of file Cluster3D.h.

487  {
488  return a.fHitPairListPtr.size() > b.fHitPairListPtr.size();
489  }
process_name gaushit a

Member Data Documentation

reco::EdgeList reco::ClusterParameters::fBestEdgeList
private

Definition at line 499 of file Cluster3D.h.

reco::HitPairListPtr reco::ClusterParameters::fBestHitPairListPtr
private

Definition at line 498 of file Cluster3D.h.

ClusterParametersList reco::ClusterParameters::fClusterParameters
private

Definition at line 504 of file Cluster3D.h.

PlaneToClusterParamsMap reco::ClusterParameters::fClusterParams
private

Definition at line 492 of file Cluster3D.h.

reco::ConvexHull reco::ClusterParameters::fConvexHull
private

Definition at line 500 of file Cluster3D.h.

dcel2d::FaceList reco::ClusterParameters::fFaceList
private

Definition at line 501 of file Cluster3D.h.

reco::PrincipalComponents reco::ClusterParameters::fFullPCA
private

Definition at line 495 of file Cluster3D.h.

dcel2d::HalfEdgeList reco::ClusterParameters::fHalfEdgeList
private

Definition at line 503 of file Cluster3D.h.

reco::Hit2DToHit3DListMap reco::ClusterParameters::fHit2DToHit3DListMap
private

Definition at line 494 of file Cluster3D.h.

reco::Hit3DToEdgeMap reco::ClusterParameters::fHit3DToEdgeMap
private

Definition at line 497 of file Cluster3D.h.

reco::HitPairListPtr reco::ClusterParameters::fHitPairListPtr
private

Definition at line 493 of file Cluster3D.h.

reco::PrincipalComponents reco::ClusterParameters::fSkeletonPCA
private

Definition at line 496 of file Cluster3D.h.

dcel2d::VertexList reco::ClusterParameters::fVertexList
private

Definition at line 502 of file Cluster3D.h.


The documentation for this class was generated from the following file: