#include <ParametricResolution.h>
Definition at line 10 of file ParametricResolution.h.
◆ Kind
◆ ParametricResolution() [1/2]
l1tpf::ParametricResolution::ParametricResolution |
( |
| ) |
|
|
inline |
◆ ParametricResolution() [2/2]
Definition at line 8 of file ParametricResolution.cc.
References Calo, etas_, Exception, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), getVFloat(), kind_, ptMaxs_, ptMin, ptMins_, AlCaHLTBitMon_QueryRunRegistry::string, and Track.
10 if (cpset.
existsAs<std::vector<double>>(
"ptMin")) {
16 if (cpset.
existsAs<std::vector<double>>(
"ptMax")) {
25 else if (skind ==
"calo")
28 throw cms::Exception(
"Configuration",
"Bad kind of resolution: " + skind);
std::vector< float > ptMins_
T getParameter(std::string const &) const
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
std::vector< float > scales_
std::vector< float > ptMaxs_
static std::vector< float > getVFloat(const edm::ParameterSet &cpset, const std::string &name)
std::vector< float > offsets_
std::vector< float > etas_
◆ getVFloat()
std::vector< float > l1tpf::ParametricResolution::getVFloat |
( |
const edm::ParameterSet & |
cpset, |
|
|
const std::string & |
name |
|
) |
| |
|
static |
◆ operator()()
float l1tpf::ParametricResolution::operator() |
( |
const float |
pt, |
|
|
const float |
abseta |
|
) |
| const |
Definition at line 31 of file ParametricResolution.cc.
References dumpRecoGeometry_cfg::Calo, Matriplex::hypot(), mps_fire::i, dqmiodumpmetadata::n, and DiDispStaMuonMonitor_cfi::pt.
32 for (
unsigned int i = 0,
n =
etas_.size();
i <
n; ++
i) {
47 return std::min<float>(
pt, 0.3 *
pt + 7);
std::vector< float > ptMins_
MPlex< T, D1, D2, N > hypot(const MPlex< T, D1, D2, N > &a, const MPlex< T, D1, D2, N > &b)
std::vector< float > scales_
std::vector< float > ptMaxs_
std::vector< float > offsets_
std::vector< float > etas_
◆ etas_
std::vector<float> l1tpf::ParametricResolution::etas_ |
|
protected |
◆ kind_
Kind l1tpf::ParametricResolution::kind_ |
|
protected |
◆ offsets_
std::vector<float> l1tpf::ParametricResolution::offsets_ |
|
protected |
◆ ptMaxs_
std::vector<float> l1tpf::ParametricResolution::ptMaxs_ |
|
protected |
◆ ptMins_
std::vector<float> l1tpf::ParametricResolution::ptMins_ |
|
protected |
◆ scales_
std::vector<float> l1tpf::ParametricResolution::scales_ |
|
protected |