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

Constructor & Destructor Documentation

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

Definition at line 172 of file TrackClusterSplitter.cc.

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

Member Function Documentation

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

Definition at line 174 of file TrackClusterSplitter.cc.

References assert(), and TrackClusterSplitter::ClusterWithTracks< Cluster >::cluster.

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

Member Data Documentation

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

Definition at line 182 of file TrackClusterSplitter.cc.