CMS 3D CMS Logo

Cluster1D< T > Class Template Reference

A generic templated cluster that lives in 1d. More...

#include <CommonTools/Clustering1D/interface/Cluster1D.h>

List of all members.

Public Member Functions

 Cluster1D (const Measurement1D &meas, const std::vector< const T * > &tracks, double weight=1.0)
 Cluster1D ()
Measurement1D position () const
std::vector< const T * > tracks () const
double weight () const

Private Attributes

Measurement1D theMeasurement1D
std::vector< const T * > theTracks
double theWeight


Detailed Description

template<class T>
class Cluster1D< T >

A generic templated cluster that lives in 1d.

Definition at line 13 of file Cluster1D.h.


Constructor & Destructor Documentation

template<class T>
Cluster1D< T >::Cluster1D (  )  [inline]

Definition at line 43 of file Cluster1D.h.

00043                         :
00044         theMeasurement1D(), theTracks(), theWeight(0.)
00045 {}

template<class T>
Cluster1D< T >::Cluster1D ( const Measurement1D meas,
const std::vector< const T * > &  tracks,
double  weight = 1.0 
) [inline]

Definition at line 36 of file Cluster1D.h.

00038                                      :
00039         theMeasurement1D(meas), theTracks(t), theWeight(weight)
00040 {}


Member Function Documentation

template<class T>
Measurement1D Cluster1D< T >::position (  )  const [inline]

Definition at line 55 of file Cluster1D.h.

References Cluster1D< T >::theMeasurement1D.

Referenced by pixeltemp::Cluster1DMerger< T >::operator()(), Cluster1DMerger< T >::operator()(), and Clusterizer1DCommons::ComparePairs< T >::operator()().

00056 {
00057     return theMeasurement1D;
00058 }

template<class T>
std::vector< const T * > Cluster1D< T >::tracks (  )  const [inline]

Definition at line 49 of file Cluster1D.h.

References Cluster1D< T >::theTracks.

Referenced by pixeltemp::Cluster1DMerger< T >::operator()(), Cluster1DMerger< T >::operator()(), and pseudoVertexFit().

00050 {
00051     return theTracks;
00052 }

template<class T>
double Cluster1D< T >::weight (  )  const [inline]

Definition at line 61 of file Cluster1D.h.

References Cluster1D< T >::theWeight.

Referenced by pixeltemp::Cluster1DMerger< T >::operator()(), and Cluster1DMerger< T >::operator()().

00062 {
00063     return theWeight;
00064 }


Member Data Documentation

template<class T>
Measurement1D Cluster1D< T >::theMeasurement1D [private]

Definition at line 26 of file Cluster1D.h.

Referenced by Cluster1D< T >::position().

template<class T>
std::vector< const T *> Cluster1D< T >::theTracks [private]

Definition at line 27 of file Cluster1D.h.

Referenced by Cluster1D< T >::tracks().

template<class T>
double Cluster1D< T >::theWeight [private]

Definition at line 28 of file Cluster1D.h.

Referenced by Cluster1D< T >::weight().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:16:21 2009 for CMSSW by  doxygen 1.5.4