CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
ElementsInCone< T, M, std::pair< math::XYZPoint, float > > Class Template Reference

#include <ElementsInCone.h>

Public Member Functions

 ElementsInCone ()
 
const std::vector< std::pair
< math::XYZPoint, float > > 
operator() (const T &coneAxis, const M &coneMetric, double coneSize, const std::vector< std::pair< math::XYZPoint, float > > &elements) const
 
 ~ElementsInCone ()
 

Detailed Description

template<typename T, typename M>
class ElementsInCone< T, M, std::pair< math::XYZPoint, float > >

Definition at line 25 of file ElementsInCone.h.

Constructor & Destructor Documentation

template<typename T , typename M >
ElementsInCone< T, M, std::pair< math::XYZPoint, float > >::ElementsInCone ( )
inline

Definition at line 27 of file ElementsInCone.h.

27 {}
template<typename T , typename M >
ElementsInCone< T, M, std::pair< math::XYZPoint, float > >::~ElementsInCone ( )
inline

Definition at line 28 of file ElementsInCone.h.

28 {}

Member Function Documentation

template<typename T , typename M >
const std::vector<std::pair<math::XYZPoint,float> > ElementsInCone< T, M, std::pair< math::XYZPoint, float > >::operator() ( const T coneAxis,
const M &  coneMetric,
double  coneSize,
const std::vector< std::pair< math::XYZPoint, float > > &  elements 
) const
inline

Definition at line 29 of file ElementsInCone.h.

References asciidump::elements.

29  {
30  std::vector<std::pair<math::XYZPoint,float> > elementsInCone;
31  for(typename std::vector<std::pair<math::XYZPoint,float> >::const_iterator element=elements.begin();element!=elements.end();++element) {
32  double distance = coneMetric(coneAxis,(*element).first);
33  if (distance<=coneSize)elementsInCone.push_back(*element);
34  }
35  return elementsInCone;
36  }
list elements
Definition: asciidump.py:414