CMS 3D CMS Logo

TauConeIsolationAlgo< T, C, M > Class Template Reference

#include <PhysicsTools/IsolationUtils/interface/TauConeIsolationAlgo.h>

List of all members.

Public Member Functions

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


Detailed Description

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

Definition at line 9 of file TauConeIsolationAlgo.h.


Constructor & Destructor Documentation

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

Definition at line 11 of file TauConeIsolationAlgo.h.

00011 {}

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

Definition at line 12 of file TauConeIsolationAlgo.h.

00012 {}


Member Function Documentation

template<typename T, typename C, typename M>
const edm::RefVector< C > TauConeIsolationAlgo< T, C, M >::operator() ( const T &  coneAxis,
double  coneSize,
const edm::RefVector< C > &  elements,
const M &  metric 
) const [inline]

Definition at line 18 of file TauConeIsolationAlgo.h.

References edm::RefVector< C, T, F >::begin(), element(), edm::RefVector< C, T, F >::end(), and edm::RefVector< C, T, F >::push_back().

00019 {
00020   edm::RefVector<C> elementsInCone;
00021   for( typename edm::RefVector<C>::const_iterator element = elements.begin(); 
00022        element != elements.end(); ++element ) {
00023     double distance = metric(coneAxis, (*element)->momentum());
00024 
00025     if ( distance <= coneSize ) {
00026       elementsInCone.push_back(*element);
00027     }
00028   }
00029 
00030   return elementsInCone;
00031 }


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