CMS 3D CMS Logo

Public Member Functions | Private Attributes

TrackClusterSplitter::FindCluster< Cluster > Class Template Reference

List of all members.

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.

: 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.

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

Member Data Documentation

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

Definition at line 177 of file TrackClusterSplitter.cc.