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.

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

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

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

◆ square()

double Clusterizer1DCommons::square ( const double  a)
inline

Definition at line 8 of file Clusterizer1DCommons.h.

8 { return a * a; }

References a.

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

mps_fire.i
i
Definition: mps_fire.py:428
source
static const std::string source
Definition: EdmProvDump.cc:47
a
double a
Definition: hdecay.h:119
mps_fire.dest
dest
Definition: mps_fire.py:179