CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
TrackClusterSplitter::FindCluster< Cluster > Class Template Reference

Public Member Functions

 FindCluster (const TrackingRecHit *hit)
 
bool operator() (const ClusterWithTracks< Cluster > &test) const
 

Private Attributes

const Cluster * toFind_
 

Detailed Description

template<typename Cluster>
class TrackClusterSplitter::FindCluster< Cluster >

Definition at line 165 of file TrackClusterSplitter.cc.

Constructor & Destructor Documentation

template<typename Cluster >
TrackClusterSplitter::FindCluster< Cluster >::FindCluster ( const TrackingRecHit hit)
inline

Definition at line 170 of file TrackClusterSplitter.cc.

170 : toFind_( getCluster<Cluster>(hit) ) { }

Member Function Documentation

template<typename Cluster >
bool TrackClusterSplitter::FindCluster< Cluster >::operator() ( const ClusterWithTracks< Cluster > &  test) const
inline

Definition at line 172 of file TrackClusterSplitter.cc.

References TrackClusterSplitter::ClusterWithTracks< Cluster >::cluster.

173  {
174  assert(test.cluster); // make sure this is not 0
175  return test.cluster == toFind_ || equalClusters<Cluster>(*test.cluster, *toFind_);
176  }

Member Data Documentation

template<typename Cluster >
const Cluster* TrackClusterSplitter::FindCluster< Cluster >::toFind_
private

Definition at line 180 of file TrackClusterSplitter.cc.