Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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()
asciidump.elements
list elements
Definition:
asciidump.py:414
CalIsolationAlgoNoExp
Definition:
CalIsolationAlgoNoExp.h:10
HTMLExport.elem
def elem
Definition:
HTMLExport.py:18
HLT_25ns14e33_v1_cff.dRMin
tuple dRMin
Definition:
HLT_25ns14e33_v1_cff.py:2495
PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi.dR
tuple dR
Definition:
PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi.py:19
CalIsolationAlgoNoExp::CalIsolationAlgoNoExp
CalIsolationAlgoNoExp(double dRMin, double dRMax)
Definition:
CalIsolationAlgoNoExp.h:14
HLT_25ns14e33_v1_cff.dRMax
tuple dRMax
Definition:
HLT_25ns14e33_v1_cff.py:2505
deltaR
double deltaR(double eta1, double eta2, double phi1, double phi2)
Definition:
TreeUtility.cc:17
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
CalIsolationAlgoNoExp::operator()
double operator()(const T1 &, const C2 &) const
Definition:
CalIsolationAlgoNoExp.h:23
Generated for CMSSW Reference Manual by
1.8.5