CMS 3D CMS Logo

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

#include <ElementsInConeRef.h>

Public Member Functions

 ElementsInConeRef ()
 
const edm::RefVector< C > operator() (const T &coneAxis, const M &coneMetric, double coneSize, const edm::RefVector< C > &elements) const
 
 ~ElementsInConeRef ()
 

Detailed Description

template<typename T, typename M, typename C>
class ElementsInConeRef< T, M, C >

Definition at line 10 of file ElementsInConeRef.h.

Constructor & Destructor Documentation

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

Definition at line 12 of file ElementsInConeRef.h.

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

Definition at line 13 of file ElementsInConeRef.h.

13 {}

Member Function Documentation

template<typename T, typename M, typename C>
const edm::RefVector<C> ElementsInConeRef< T, M, C >::operator() ( const T coneAxis,
const M &  coneMetric,
double  coneSize,
const edm::RefVector< C > &  elements 
) const
inline

Definition at line 15 of file ElementsInConeRef.h.

15  {
16  edm::RefVector<C> elementsInCone;
17  for(typename edm::RefVector<C>::const_iterator element=elements.begin();element!=elements.end();++element) {
18  double distance = coneMetric(coneAxis,(*element)->momentum());
19  if (distance<=coneSize)elementsInCone.push_back(*element);
20  }
21  return elementsInCone;
22  }
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:255
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:250
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:62