CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
TrkCalIsolationAlgo< T1, C2 > Class Template Reference

#include <TrkCalIsolationAlgo.h>

Public Types

typedef double value_type
 

Public Member Functions

double operator() (const T1 &, const C2 &) const
 
 TrkCalIsolationAlgo ()
 
 TrkCalIsolationAlgo (double dRMin, double dRMax)
 
 ~TrkCalIsolationAlgo ()
 

Private Attributes

double dRMax_
 
double dRMin_
 

Detailed Description

template<typename T1, typename C2>
class TrkCalIsolationAlgo< T1, C2 >

Definition at line 10 of file TrkCalIsolationAlgo.h.

Member Typedef Documentation

template<typename T1 , typename C2 >
typedef double TrkCalIsolationAlgo< T1, C2 >::value_type

Definition at line 12 of file TrkCalIsolationAlgo.h.

Constructor & Destructor Documentation

template<typename T1 , typename C2 >
TrkCalIsolationAlgo< T1, C2 >::TrkCalIsolationAlgo ( )
template<typename T1 , typename C2 >
TrkCalIsolationAlgo< T1, C2 >::TrkCalIsolationAlgo ( double  dRMin,
double  dRMax 
)
inline

Definition at line 14 of file TrkCalIsolationAlgo.h.

template<typename T1 , typename C2 >
TrkCalIsolationAlgo< T1, C2 >::~TrkCalIsolationAlgo ( )
inline

Definition at line 15 of file TrkCalIsolationAlgo.h.

15 { }

Member Function Documentation

template<typename T1 , typename C2 >
double TrkCalIsolationAlgo< T1, C2 >::operator() ( const T1 &  cand,
const C2 &  elements 
) const

Definition at line 28 of file TrkCalIsolationAlgo.h.

References deltaR(), PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, and HTMLExport::elem().

28  {
29  double etSum = 0;
30  for( typename C2::const_iterator elem = elements.begin();
31  elem != elements.end(); ++elem ) {
32  double dR = deltaR( elem->eta(), elem->phi(),
33  cand.outerEta(), cand.outerPhi() );
34  if ( dR < dRMax_ && dR > dRMin_ ) {
35  etSum += elem->et();
36  }
37  }
38  return etSum;
39 }
dictionary elements
double deltaR(double eta1, double eta2, double phi1, double phi2)
Definition: TreeUtility.cc:17

Member Data Documentation

template<typename T1 , typename C2 >
double TrkCalIsolationAlgo< T1, C2 >::dRMax_
private

Definition at line 19 of file TrkCalIsolationAlgo.h.

template<typename T1 , typename C2 >
double TrkCalIsolationAlgo< T1, C2 >::dRMin_
private

Definition at line 19 of file TrkCalIsolationAlgo.h.