CMS 3D CMS Logo

Classes | Functions
Clusterizer1DCommons Namespace Reference

Classes

struct  ComparePairs
 

Functions

template<class T >
void add (const std::vector< const T *> &source, std::vector< const T *> &dest)
 
double square (const double a)
 

Function Documentation

◆ add()

template<class T >
void Clusterizer1DCommons::add ( const std::vector< const T *> &  source,
std::vector< const T *> &  dest 
)

Definition at line 18 of file Clusterizer1DCommons.h.

References mps_fire::dest, mps_fire::i, and source.

Referenced by MtvClusterizer1D< T >::operator()(), and FsmwClusterizer1D< T >::operator()().

18  {
19  for (typename std::vector<const T*>::const_iterator i = source.begin(); i != source.end(); ++i) {
20  dest.push_back(*i);
21  };
22  }
static std::string const source
Definition: EdmProvDump.cc:46

◆ square()

double Clusterizer1DCommons::square ( const double  a)
inline

Definition at line 8 of file Clusterizer1DCommons.h.

References a.

Referenced by MtvClusterizer1D< T >::operator()(), and FsmwClusterizer1D< T >::operator()().

8 { return a * a; }
double a
Definition: hdecay.h:119