CMS 3D CMS Logo

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

#include <ElementsInAnnulusRef.h>

Public Member Functions

 ElementsInAnnulusRef ()
 
const edm::RefVector< C > operator() (const T &coneAxis, const M &innerconeMetric, double innerconeSize, const N &outerconeMetric, double outerconeSize, const edm::RefVector< C > &elements) const
 
 ~ElementsInAnnulusRef ()
 

Detailed Description

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

Definition at line 10 of file ElementsInAnnulusRef.h.

Constructor & Destructor Documentation

template<typename T, typename M, typename N, typename C>
ElementsInAnnulusRef< T, M, N, C >::ElementsInAnnulusRef ( )
inline

Definition at line 12 of file ElementsInAnnulusRef.h.

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

Definition at line 13 of file ElementsInAnnulusRef.h.

13 {}

Member Function Documentation

template<typename T, typename M, typename N, typename C>
const edm::RefVector<C> ElementsInAnnulusRef< 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 ElementsInAnnulusRef.h.

14  {
15  edm::RefVector<C> elementsInBand;
16  for(typename edm::RefVector<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  }
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:249
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:244
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:64