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 406 of file Cluster3D.h.

Constructor & Destructor Documentation

reco::ClusterParameters::ClusterParameters ( )
inline

Definition at line 409 of file Cluster3D.h.

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

Definition at line 424 of file Cluster3D.h.

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

Definition at line 437 of file Cluster3D.h.

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

Member Function Documentation

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

Definition at line 457 of file Cluster3D.h.

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

Definition at line 450 of file Cluster3D.h.

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

Definition at line 465 of file Cluster3D.h.

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

Definition at line 481 of file Cluster3D.h.

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

Definition at line 480 of file Cluster3D.h.

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

Definition at line 474 of file Cluster3D.h.

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

Definition at line 482 of file Cluster3D.h.

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

Definition at line 483 of file Cluster3D.h.

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

Definition at line 477 of file Cluster3D.h.

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

Definition at line 485 of file Cluster3D.h.

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

Definition at line 475 of file Cluster3D.h.

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

Definition at line 479 of file Cluster3D.h.

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

Definition at line 476 of file Cluster3D.h.

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

Definition at line 478 of file Cluster3D.h.

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

Definition at line 484 of file Cluster3D.h.

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

Definition at line 452 of file Cluster3D.h.

453  {
454  fClusterParams[hit->WireID().Plane].UpdateParameters(hit);
455  }
const geo::WireID & WireID() const
Definition: Cluster3D.h:77
PlaneToClusterParamsMap fClusterParams
Definition: Cluster3D.h:493
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 487 of file Cluster3D.h.

488  {
489  return a.fHitPairListPtr.size() > b.fHitPairListPtr.size();
490  }
const double a
static bool * b
Definition: config.cpp:1043

Member Data Documentation

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

Definition at line 500 of file Cluster3D.h.

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

Definition at line 499 of file Cluster3D.h.

ClusterParametersList reco::ClusterParameters::fClusterParameters
private

Definition at line 505 of file Cluster3D.h.

PlaneToClusterParamsMap reco::ClusterParameters::fClusterParams
private

Definition at line 493 of file Cluster3D.h.

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

Definition at line 501 of file Cluster3D.h.

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

Definition at line 502 of file Cluster3D.h.

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

Definition at line 496 of file Cluster3D.h.

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

Definition at line 504 of file Cluster3D.h.

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

Definition at line 495 of file Cluster3D.h.

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

Definition at line 498 of file Cluster3D.h.

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

Definition at line 494 of file Cluster3D.h.

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

Definition at line 497 of file Cluster3D.h.

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

Definition at line 503 of file Cluster3D.h.


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