![]() |
![]() |
#include <RecoTauTag/TauTagTools/interface/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] |
ElementsInCone< T, M, C >::~ElementsInCone | ( | ) | [inline] |
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.
00014 { 00015 edm::RefVector<C> elementsInCone; 00016 for(typename edm::RefVector<C>::const_iterator element=elements.begin();element!=elements.end();++element) { 00017 double distance = coneMetric(coneAxis,(*element)->momentum()); 00018 if (distance<=coneSize)elementsInCone.push_back(*element); 00019 } 00020 return elementsInCone; 00021 }