#include <ElementsInCone.h>
Public Member Functions | |
ElementsInCone () | |
const edm::RefVector< C > | operator() (const T &coneAxis, const M &coneMetric, double coneSize, const edm::RefVector< C > &elements) const |
~ElementsInCone () |
Definition at line 10 of file ElementsInCone.h.
ElementsInCone< T, M, C >::ElementsInCone | ( | ) | [inline] |
Definition at line 12 of file ElementsInCone.h.
{}
ElementsInCone< T, M, C >::~ElementsInCone | ( | ) | [inline] |
Definition at line 13 of file ElementsInCone.h.
{}
const edm::RefVector<C> ElementsInCone< T, M, C >::operator() | ( | const T & | coneAxis, |
const M & | coneMetric, | ||
double | coneSize, | ||
const edm::RefVector< C > & | elements | ||
) | const [inline] |
Definition at line 14 of file ElementsInCone.h.
{ edm::RefVector<C> elementsInCone; for(typename edm::RefVector<C>::const_iterator element=elements.begin();element!=elements.end();++element) { double distance = coneMetric(coneAxis,(*element)->momentum()); if (distance<=coneSize)elementsInCone.push_back(*element); } return elementsInCone; }