#include <RecoTauTag/TauTagTools/interface/ElementsInAnnulus.h>
Public Member Functions | |
ElementsInAnnulus () | |
const edm::RefVector< C > | operator() (const T &coneAxis, const M &innerconeMetric, double innerconeSize, const N &outerconeMetric, double outerconeSize, const edm::RefVector< C > &elements) const |
~ElementsInAnnulus () |
Definition at line 10 of file ElementsInAnnulus.h.
ElementsInAnnulus< T, M, N, C >::ElementsInAnnulus | ( | ) | [inline] |
ElementsInAnnulus< T, M, N, C >::~ElementsInAnnulus | ( | ) | [inline] |
const edm::RefVector<C> ElementsInAnnulus< T, M, N, C >::operator() | ( | const T & | coneAxis, | |
const M & | innerconeMetric, | |||
double | innerconeSize, | |||
const N & | outerconeMetric, | |||
double | outerconeSize, | |||
const edm::RefVector< C > & | elements | |||
) | const [inline] |
Definition at line 14 of file ElementsInAnnulus.h.
00014 { 00015 edm::RefVector<C> elementsInBand; 00016 for(typename edm::RefVector<C>::const_iterator element=elements.begin();element!=elements.end();++element) { 00017 double innerconeMetric_distance=innerconeMetric(coneAxis,(*element)->momentum()); 00018 double outerconeMetric_distance=outerconeMetric(coneAxis,(*element)->momentum()); 00019 if (innerconeMetric_distance>innerconeSize && outerconeMetric_distance<=outerconeSize)elementsInBand.push_back(*element); 00020 } 00021 return elementsInBand; 00022 }