CMS 3D CMS Logo

ElementsInAnnulus< T, M, N, C > Class Template Reference

#include <RecoTauTag/TauTagTools/interface/ElementsInAnnulus.h>

List of all members.

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 ()


Detailed Description

template<typename T, typename M, typename N, typename C>
class ElementsInAnnulus< T, M, N, C >

Definition at line 10 of file ElementsInAnnulus.h.


Constructor & Destructor Documentation

template<typename T, typename M, typename N, typename C>
ElementsInAnnulus< T, M, N, C >::ElementsInAnnulus (  )  [inline]

Definition at line 12 of file ElementsInAnnulus.h.

00012 {}

template<typename T, typename M, typename N, typename C>
ElementsInAnnulus< T, M, N, C >::~ElementsInAnnulus (  )  [inline]

Definition at line 13 of file ElementsInAnnulus.h.

00013 {}  


Member Function Documentation

template<typename T, typename M, typename N, typename C>
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     }


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:20:22 2009 for CMSSW by  doxygen 1.5.4