#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 25 of file JetCorrectorParametersHelper.h.
using JetCorrectorParametersHelper::tuple_type = typename generate_tuple_type<float,JetCorrectorParameters::MAX_SIZE_DIMENSIONALITY>::type |
Definition at line 38 of file JetCorrectorParametersHelper.h.
using JetCorrectorParametersHelper::tuple_type_Nm1 = typename generate_tuple_type<float,JetCorrectorParameters::MAX_SIZE_DIMENSIONALITY-1>::type |
Definition at line 39 of file JetCorrectorParametersHelper.h.
bool JetCorrectorParametersHelper::binBoundChecks | ( | unsigned | dim, |
const float & | value, | ||
const float & | min, | ||
const float & | max | ||
) | const |
Definition at line 133 of file JetCorrectorParametersHelper.cc.
Referenced by binIndexN(), and size().
void JetCorrectorParametersHelper::binIndexChecks | ( | unsigned | N, |
const std::vector< float > & | fX | ||
) | const |
Definition at line 124 of file JetCorrectorParametersHelper.cc.
Referenced by binIndexN(), and size().
int JetCorrectorParametersHelper::binIndexN | ( | const std::vector< float > & | fX, |
const std::vector< JetCorrectorParameters::Record > & | mRecords | ||
) | const |
Definition at line 142 of file JetCorrectorParametersHelper.cc.
References begin, binBoundChecks(), binIndexChecks(), end, hcaldqm::quantity::fN, mps_fire::i, JetCorrectorParameters::MAX_SIZE_DIMENSIONALITY, mBinBoundaries, mIndexMap, mMap, size(), SIZE, and anotherprimaryvertexanalyzer_cfi::xMax.
Referenced by size().
void JetCorrectorParametersHelper::checkMiddleBinUniformity | ( | const std::vector< JetCorrectorParameters::Record > & | mRecords | ) | const |
Definition at line 91 of file JetCorrectorParametersHelper.cc.
References Exception, hcaldqm::quantity::fN, mBinBoundaries, N, SIZE, and anotherprimaryvertexanalyzer_cfi::xMin.
Referenced by init(), and size().
void JetCorrectorParametersHelper::init | ( | const JetCorrectorParameters::Definitions & | mDefinitions, |
const std::vector< JetCorrectorParameters::Record > & | mRecords | ||
) |
Definition at line 25 of file JetCorrectorParametersHelper.cc.
References begin, checkMiddleBinUniformity(), end, spr::find(), mps_fire::i, initTransientMaps(), gen::k, JetCorrectorParameters::MAX_SIZE_DIMENSIONALITY, mBinBoundaries, mIndexMap, mMap, JetCorrectorParameters::Definitions::nBinVar(), size(), SIZE, and anotherprimaryvertexanalyzer_cfi::xMin.
Referenced by size().
void JetCorrectorParametersHelper::initTransientMaps | ( | ) |
Definition at line 18 of file JetCorrectorParametersHelper.cc.
References JetCorrectorParameters::MAX_SIZE_DIMENSIONALITY, mBinBoundaries, mIndexMap, and mMap.
Referenced by init(), and size().
|
inline |
Definition at line 29 of file JetCorrectorParametersHelper.h.
References binBoundChecks(), binIndexChecks(), binIndexN(), checkMiddleBinUniformity(), init(), initTransientMaps(), hpstanc_transforms::max, min(), mIndexMap, and N.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), binIndexN(), and init().
|
private |
Definition at line 43 of file JetCorrectorParametersHelper.h.
Referenced by binIndexN(), checkMiddleBinUniformity(), init(), and initTransientMaps().
|
private |
Definition at line 45 of file JetCorrectorParametersHelper.h.
Referenced by binIndexN(), init(), initTransientMaps(), and size().
|
private |
Definition at line 47 of file JetCorrectorParametersHelper.h.
Referenced by binIndexN(), init(), and initTransientMaps().
|
private |
Definition at line 49 of file JetCorrectorParametersHelper.h.
Referenced by binIndexN(), checkMiddleBinUniformity(), and init().