LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
cluster::fuzzyClusterAlg::baseCluster Class Reference

This stores information about a cluster. More...

Inheritance diagram for cluster::fuzzyClusterAlg::baseCluster:
cluster::fuzzyClusterAlg::showerCluster cluster::fuzzyClusterAlg::trackCluster

Public Member Functions

 baseCluster (protoTrack protoTrackTemp)
 
void addProtoTracks (std::vector< protoTrack > tracksToAdd)
 
void clearProtoTracks ()
 

Public Attributes

int clusterNumber =-999999
 
std::vector< protoTrackclusterProtoTracks
 

Detailed Description

This stores information about a cluster.

Definition at line 58 of file fuzzyClusterAlg.cxx.

Constructor & Destructor Documentation

cluster::fuzzyClusterAlg::baseCluster::baseCluster ( protoTrack  protoTrackTemp)
inline

Definition at line 63 of file fuzzyClusterAlg.cxx.

References protoTrack::clusterNumber.

64  {
65  clusterNumber = protoTrackTemp.clusterNumber;
66  clusterProtoTracks.emplace_back(std::move(protoTrackTemp));
67  }
std::vector< protoTrack > clusterProtoTracks
int clusterNumber
Definition: HoughBaseAlg.h:210

Member Function Documentation

void cluster::fuzzyClusterAlg::baseCluster::addProtoTracks ( std::vector< protoTrack tracksToAdd)
inline

Definition at line 69 of file fuzzyClusterAlg.cxx.

Referenced by cluster::fuzzyClusterAlg::mergeShowerTrackClusters().

70  {
71  for(auto& trackToAdd: tracksToAdd)
72  trackToAdd.clusterNumber = clusterNumber;
73  clusterProtoTracks.reserve
74  (clusterProtoTracks.size() + tracksToAdd.size());
75  std::move(tracksToAdd.begin(),tracksToAdd.end(),
76  std::back_inserter(clusterProtoTracks));
77  } // addProtoTracks()
std::vector< protoTrack > clusterProtoTracks
void cluster::fuzzyClusterAlg::baseCluster::clearProtoTracks ( )
inline

Definition at line 79 of file fuzzyClusterAlg.cxx.

Referenced by cluster::fuzzyClusterAlg::mergeShowerTrackClusters().

80  {
81  clusterProtoTracks.clear();
82  } // clearProtoTracks()
std::vector< protoTrack > clusterProtoTracks

Member Data Documentation

int cluster::fuzzyClusterAlg::baseCluster::clusterNumber =-999999

Definition at line 60 of file fuzzyClusterAlg.cxx.

std::vector<protoTrack> cluster::fuzzyClusterAlg::baseCluster::clusterProtoTracks

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