CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
ElementsInAnnulus< T, M, N, C > Class Template Reference

#include <ElementsInAnnulus.h>

Public Member Functions

 ElementsInAnnulus ()
 
const std::vector< edm::Ptr< C > > operator() (const T &coneAxis, const M &innerconeMetric, double innerconeSize, const N &outerconeMetric, double outerconeSize, const std::vector< edm::Ptr< 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.

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

Definition at line 13 of file ElementsInAnnulus.h.

13 {}

Member Function Documentation

template<typename T, typename M, typename N, typename C>
const std::vector<edm::Ptr<C> > ElementsInAnnulus< T, M, N, C >::operator() ( const T coneAxis,
const M &  innerconeMetric,
double  innerconeSize,
const N outerconeMetric,
double  outerconeSize,
const std::vector< edm::Ptr< C > > &  elements 
) const
inline

Definition at line 14 of file ElementsInAnnulus.h.

14  {
15  std::vector<edm::Ptr<C> > elementsInBand;
16  for(typename std::vector<edm::Ptr<C> >::const_iterator element=elements.begin();element!=elements.end();++element) {
17  double innerconeMetric_distance=innerconeMetric(coneAxis,(*element)->momentum());
18  double outerconeMetric_distance=outerconeMetric(coneAxis,(*element)->momentum());
19  if (innerconeMetric_distance>innerconeSize && outerconeMetric_distance<=outerconeSize)elementsInBand.push_back(*element);
20  }
21  return elementsInBand;
22  }
list elements
Definition: asciidump.py:414