#include <JetCorrectorParametersHelper.h>
Public Types | |
using | tuple_type = typename generate_tuple_type< float, JetCorrectorParameters::MAX_SIZE_DIMENSIONALITY >::type |
using | tuple_type_Nm1 = typename generate_tuple_type< float, JetCorrectorParameters::MAX_SIZE_DIMENSIONALITY - 1 >::type |
Public Member Functions | |
bool | binBoundChecks (unsigned dim, const float &value, const float &min, const float &max) const |
void | binIndexChecks (unsigned N, const std::vector< float > &fX) const |
int | binIndexN (const std::vector< float > &fX, const std::vector< JetCorrectorParameters::Record > &mRecords) const |
void | checkMiddleBinUniformity (const std::vector< JetCorrectorParameters::Record > &mRecords) const |
void | init (const JetCorrectorParameters::Definitions &mDefinitions, const std::vector< JetCorrectorParameters::Record > &mRecords) |
void | initTransientMaps () |
unsigned | size () const |
Private Attributes | |
std::vector< std::vector< float > > | mBinBoundaries |
std::unordered_map< tuple_type, size_t > | mIndexMap |
std::unordered_map< tuple_type_Nm1, std::pair< size_t, size_t > > | mMap |
unsigned | SIZE |
Definition at line 24 of file JetCorrectorParametersHelper.h.
using JetCorrectorParametersHelper::tuple_type = typename generate_tuple_type<float, JetCorrectorParameters::MAX_SIZE_DIMENSIONALITY>::type |
Definition at line 36 of file JetCorrectorParametersHelper.h.
using JetCorrectorParametersHelper::tuple_type_Nm1 = typename generate_tuple_type<float, JetCorrectorParameters::MAX_SIZE_DIMENSIONALITY - 1>::type |
Definition at line 37 of file JetCorrectorParametersHelper.h.
bool JetCorrectorParametersHelper::binBoundChecks | ( | unsigned | dim, |
const float & | value, | ||
const float & | min, | ||
const float & | max | ||
) | const |
Definition at line 131 of file JetCorrectorParametersHelper.cc.
References SiStripPI::max.
Referenced by binIndexN().
void JetCorrectorParametersHelper::binIndexChecks | ( | unsigned | N, |
const std::vector< float > & | fX | ||
) | const |
Definition at line 124 of file JetCorrectorParametersHelper.cc.
References N.
Referenced by binIndexN().
int JetCorrectorParametersHelper::binIndexN | ( | const std::vector< float > & | fX, |
const std::vector< JetCorrectorParameters::Record > & | mRecords | ||
) | const |
Definition at line 144 of file JetCorrectorParametersHelper.cc.
References binBoundChecks(), binIndexChecks(), mps_fire::end, hcaldqm::quantity::fN, mps_fire::i, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, JetCorrectorParameters::MAX_SIZE_DIMENSIONALITY, mBinBoundaries, mIndexMap, mMap, size(), SIZE, and multiplicitycorr_cfi::xMax.
void JetCorrectorParametersHelper::checkMiddleBinUniformity | ( | const std::vector< JetCorrectorParameters::Record > & | mRecords | ) | const |
Definition at line 90 of file JetCorrectorParametersHelper.cc.
References Exception, hcaldqm::quantity::fN, mBinBoundaries, N, SIZE, and photonAnalyzer_cfi::xMin.
Referenced by init().
void JetCorrectorParametersHelper::init | ( | const JetCorrectorParameters::Definitions & | mDefinitions, |
const std::vector< JetCorrectorParameters::Record > & | mRecords | ||
) |
Definition at line 24 of file JetCorrectorParametersHelper.cc.
References checkMiddleBinUniformity(), mps_fire::end, spr::find(), mps_fire::i, initTransientMaps(), dqmiolumiharvest::j, dqmdumpme::k, JetCorrectorParameters::MAX_SIZE_DIMENSIONALITY, mBinBoundaries, mIndexMap, mMap, JetCorrectorParameters::Definitions::nBinVar(), size(), SIZE, and photonAnalyzer_cfi::xMin.
void JetCorrectorParametersHelper::initTransientMaps | ( | ) |
Definition at line 18 of file JetCorrectorParametersHelper.cc.
References JetCorrectorParameters::MAX_SIZE_DIMENSIONALITY, mBinBoundaries, mIndexMap, and mMap.
Referenced by init().
|
inline |
Definition at line 27 of file JetCorrectorParametersHelper.h.
References mIndexMap.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), binIndexN(), and init().
|
private |
Definition at line 42 of file JetCorrectorParametersHelper.h.
Referenced by binIndexN(), checkMiddleBinUniformity(), init(), and initTransientMaps().
|
private |
Definition at line 44 of file JetCorrectorParametersHelper.h.
Referenced by binIndexN(), init(), initTransientMaps(), and size().
|
private |
Definition at line 46 of file JetCorrectorParametersHelper.h.
Referenced by binIndexN(), init(), and initTransientMaps().
|
private |
Definition at line 48 of file JetCorrectorParametersHelper.h.
Referenced by binIndexN(), checkMiddleBinUniformity(), and init().