Main Page
Namespaces
Classes
Package Documentation
src
PhysicsTools
IsolationUtils
interface
CalIsolationAlgoNoExp.h
Go to the documentation of this file.
1
#ifndef IsolationUtils_CalIsolationAlgoNoExp_h
2
#define IsolationUtils_CalIsolationAlgoNoExp_h
3
/* \class CalIsolationAlgoNoExp<T1, C2>
4
*
5
* \author Christian Autermann, U Hamburg
6
*/
7
#include "PhysicsTools/Utilities/interface/Math.h"
8
9
template
<
typename
T1,
typename
C2>
10
class
CalIsolationAlgoNoExp
{
11
public
:
12
typedef
double
value_type
;
13
CalIsolationAlgoNoExp
( );
14
CalIsolationAlgoNoExp
(
double
dRMin
,
double
dRMax
) :
dRMin_
( dRMin ),
dRMax_
( dRMax ) { }
15
~CalIsolationAlgoNoExp
() { }
16
double
operator()
(
const
T1 &,
const
C2 &)
const
;
17
18
private
:
19
double
dRMin_
,
dRMax_
;
20
};
21
22
template
<
typename
T1,
typename
C2>
double
CalIsolationAlgoNoExp<T1,C2>::
23
operator()
(
const
T1 &
cand
,
const
C2 &
elements
)
const
{
24
double
etSum = 0;
25
for
(
typename
C2::const_iterator
elem
= elements.begin();
26
elem
!= elements.end(); ++
elem
) {
27
double
dR =
deltaR
(
elem
->eta(),
elem
->phi(),
28
cand.eta(), cand.phi() );
29
if
( dR < dRMax_ && dR >
dRMin_
) {
30
etSum +=
elem
->et();
31
}
32
}
33
return
etSum;
34
}
35
36
#endif
CalIsolationAlgoNoExp::dRMin_
double dRMin_
Definition:
CalIsolationAlgoNoExp.h:19
CalIsolationAlgoNoExp::CalIsolationAlgoNoExp
CalIsolationAlgoNoExp()
allElectronIsolations_cfi.dRMax
dRMax
Definition:
allElectronIsolations_cfi.py:7
CalIsolationAlgoNoExp
Definition:
CalIsolationAlgoNoExp.h:10
allElectronIsolations_cfi.dRMin
dRMin
Definition:
allElectronIsolations_cfi.py:6
allElectronIsolations_cfi.elements
elements
Definition:
allElectronIsolations_cfi.py:8
boostedElectronIsolation_cff.deltaR
deltaR
Definition:
boostedElectronIsolation_cff.py:77
CalIsolationAlgoNoExp::CalIsolationAlgoNoExp
CalIsolationAlgoNoExp(double dRMin, double dRMax)
Definition:
CalIsolationAlgoNoExp.h:14
HTMLExport.elem
def elem(elemtype, innerHTML='', html_class='', kwargs)
Definition:
HTMLExport.py:19
CalIsolationAlgoNoExp::~CalIsolationAlgoNoExp
~CalIsolationAlgoNoExp()
Definition:
CalIsolationAlgoNoExp.h:15
CalIsolationAlgoNoExp::value_type
double value_type
Definition:
CalIsolationAlgoNoExp.h:12
CalIsolationAlgoNoExp::dRMax_
double dRMax_
Definition:
CalIsolationAlgoNoExp.h:19
cand
Definition:
decayParser.h:34
CalIsolationAlgoNoExp::operator()
double operator()(const T1 &, const C2 &) const
Definition:
CalIsolationAlgoNoExp.h:23
Generated for CMSSW Reference Manual by
1.8.11