CMS 3D CMS Logo

Public Member Functions

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

#include <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.

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

Definition at line 13 of file ElementsInAnnulus.h.

{}  

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.

                                                                                                                                                                                        {
      edm::RefVector<C> elementsInBand;
      for(typename edm::RefVector<C>::const_iterator element=elements.begin();element!=elements.end();++element) {
        double innerconeMetric_distance=innerconeMetric(coneAxis,(*element)->momentum());
        double outerconeMetric_distance=outerconeMetric(coneAxis,(*element)->momentum());
        if (innerconeMetric_distance>innerconeSize && outerconeMetric_distance<=outerconeSize)elementsInBand.push_back(*element);
      }
      return elementsInBand;
    }