#include <PhysicsTools/IsolationUtils/interface/TauConeIsolationAlgo.h>
Public Member Functions | |
const edm::RefVector< C > | operator() (const T &coneAxis, double coneSize, const edm::RefVector< C > &elements, const M &metric) const |
TauConeIsolationAlgo () | |
~TauConeIsolationAlgo () |
Definition at line 9 of file TauConeIsolationAlgo.h.
TauConeIsolationAlgo< T, C, M >::TauConeIsolationAlgo | ( | ) | [inline] |
TauConeIsolationAlgo< T, C, M >::~TauConeIsolationAlgo | ( | ) | [inline] |
const edm::RefVector< C > TauConeIsolationAlgo< T, C, M >::operator() | ( | const T & | coneAxis, | |
double | coneSize, | |||
const edm::RefVector< C > & | elements, | |||
const M & | metric | |||
) | const [inline] |
Definition at line 18 of file TauConeIsolationAlgo.h.
References edm::RefVector< C, T, F >::begin(), element(), edm::RefVector< C, T, F >::end(), and edm::RefVector< C, T, F >::push_back().
00019 { 00020 edm::RefVector<C> elementsInCone; 00021 for( typename edm::RefVector<C>::const_iterator element = elements.begin(); 00022 element != elements.end(); ++element ) { 00023 double distance = metric(coneAxis, (*element)->momentum()); 00024 00025 if ( distance <= coneSize ) { 00026 elementsInCone.push_back(*element); 00027 } 00028 } 00029 00030 return elementsInCone; 00031 }