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 162 of file TrackClusterSplitter.cc.

Constructor & Destructor Documentation

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

Definition at line 167 of file TrackClusterSplitter.cc.

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

Member Function Documentation

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

Definition at line 169 of file TrackClusterSplitter.cc.

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

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

Member Data Documentation

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

Definition at line 177 of file TrackClusterSplitter.cc.