src
RecoMuon
MuonIsolation
interface
CutsConeSizeFunction.h
Go to the documentation of this file.
1
#ifndef MuonIsolation_CutsConeSizeFunction_H
2
#define MuonIsolation_CutsConeSizeFunction_H
3
4
#include "
RecoMuon/MuonIsolation/interface/Cuts.h
"
5
#include "
RecoMuon/MuonIsolation/interface/IsolatorByDeposit.h
"
6
7
namespace
muonisolation
{
8
class
CutsConeSizeFunction
:
public
IsolatorByDeposit::ConeSizeFunction
{
9
public
:
10
CutsConeSizeFunction
(
const
Cuts
&
cuts
) :
theLastCut
(nullptr),
theCuts
(
cuts
) {}
11
~CutsConeSizeFunction
()
override
=
default
;
12
float
threshold
()
const
{
return
theLastCut
->
threshold
; }
13
float
coneSize
(
float
eta
,
float
pt
)
const override
{
14
theLastCut
= &
theCuts
(
eta
);
15
return
theLastCut
->
conesize
;
16
}
17
18
private
:
19
mutable
const
Cuts::CutSpec
*
theLastCut
;
20
const
Cuts
&
theCuts
;
21
};
22
}
// namespace muonisolation
23
#endif
muonisolation::Cuts::CutSpec::threshold
double threshold
Definition:
Cuts.h:19
PVValHelper::eta
Definition:
PVValidationHelpers.h:70
muonisolation::IsolatorByDeposit::ConeSizeFunction
Definition:
IsolatorByDeposit.h:20
muonisolation::CutsConeSizeFunction
Definition:
CutsConeSizeFunction.h:8
DiDispStaMuonMonitor_cfi.pt
pt
Definition:
DiDispStaMuonMonitor_cfi.py:39
cuts
TkSoA const *__restrict__ CAHitNtupletGeneratorKernelsGPU::QualityCuts cuts
Definition:
CAHitNtupletGeneratorKernelsImpl.h:414
muonisolation::CutsConeSizeFunction::theCuts
const Cuts & theCuts
Definition:
CutsConeSizeFunction.h:20
muonisolation::Cuts::CutSpec::conesize
double conesize
Definition:
Cuts.h:18
Cuts.h
muonisolation::Cuts
Definition:
Cuts.h:14
muonisolation::CutsConeSizeFunction::theLastCut
const Cuts::CutSpec * theLastCut
Definition:
CutsConeSizeFunction.h:19
muonisolation
Definition:
CandViewExtractor.cc:14
muonisolation::CutsConeSizeFunction::coneSize
float coneSize(float eta, float pt) const override
Definition:
CutsConeSizeFunction.h:13
IsolatorByDeposit.h
muonisolation::CutsConeSizeFunction::threshold
float threshold() const
Definition:
CutsConeSizeFunction.h:12
muonisolation::CutsConeSizeFunction::~CutsConeSizeFunction
~CutsConeSizeFunction() override=default
muonisolation::Cuts::CutSpec
Definition:
Cuts.h:16
muonisolation::CutsConeSizeFunction::CutsConeSizeFunction
CutsConeSizeFunction(const Cuts &cuts)
Definition:
CutsConeSizeFunction.h:10
Generated for CMSSW Reference Manual by
1.8.14