CMS 3D CMS Logo

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

◆ value_type

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

Definition at line 12 of file TrkCalIsolationAlgo.h.

Constructor & Destructor Documentation

◆ TrkCalIsolationAlgo() [1/2]

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

◆ TrkCalIsolationAlgo() [2/2]

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

Definition at line 14 of file TrkCalIsolationAlgo.h.

14 : dRMin_(dRMin), dRMax_(dRMax) {}

◆ ~TrkCalIsolationAlgo()

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

Definition at line 15 of file TrkCalIsolationAlgo.h.

15 {}

Member Function Documentation

◆ operator()()

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.

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

References PbPb_ZMuSkimMuonDPG_cff::deltaR, HGC3DClusterGenMatchSelector_cfi::dR, and bookConverter::elements.

Member Data Documentation

◆ dRMax_

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

Definition at line 19 of file TrkCalIsolationAlgo.h.

◆ dRMin_

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

Definition at line 19 of file TrkCalIsolationAlgo.h.

HLT_FULL_cff.dRMin
dRMin
Definition: HLT_FULL_cff.py:8663
TrkCalIsolationAlgo::dRMax_
double dRMax_
Definition: TrkCalIsolationAlgo.h:19
TrkCalIsolationAlgo::dRMin_
double dRMin_
Definition: TrkCalIsolationAlgo.h:19
PbPb_ZMuSkimMuonDPG_cff.deltaR
deltaR
Definition: PbPb_ZMuSkimMuonDPG_cff.py:63
cand
Definition: decayParser.h:32
metBenchmark_cfi.dRMax
dRMax
Definition: metBenchmark_cfi.py:18
bookConverter.elements
elements
Definition: bookConverter.py:147
HGC3DClusterGenMatchSelector_cfi.dR
dR
Definition: HGC3DClusterGenMatchSelector_cfi.py:7