#include <ElementsInEllipse.h>
Public Member Functions | |
ElementsInEllipse () | |
const std::pair < edm::RefVector< C > , edm::RefVector< C > > | operator() (const T &axis, double rPhi, double rEta, const edm::RefVector< C > &elements) const |
~ElementsInEllipse () |
Definition at line 9 of file ElementsInEllipse.h.
ElementsInEllipse< T, C >::ElementsInEllipse | ( | ) | [inline] |
Definition at line 11 of file ElementsInEllipse.h.
{}
ElementsInEllipse< T, C >::~ElementsInEllipse | ( | ) | [inline] |
Definition at line 12 of file ElementsInEllipse.h.
{}
const std::pair<edm::RefVector<C>, edm::RefVector<C> > ElementsInEllipse< T, C >::operator() | ( | const T & | axis, |
double | rPhi, | ||
double | rEta, | ||
const edm::RefVector< C > & | elements | ||
) | const [inline] |
Definition at line 14 of file ElementsInEllipse.h.
{ edm::RefVector<C> elementsInEllipse; edm::RefVector<C> elementsOutEllipse; for(typename edm::RefVector<C>::const_iterator element = elements.begin(); element != elements.end(); ++element){ double distance = ellipse(axis, (*element)->momentum(), rPhi, rEta); if(distance <= 1.)elementsInEllipse.push_back(*element); else elementsOutEllipse.push_back(*element); } std::pair<edm::RefVector<C>, edm::RefVector<C> > theInOutPair(elementsInEllipse, elementsOutEllipse); return theInOutPair; }