#include <Cordic.h>
Public Member Functions | |
Cordic (const uint32_t &aPhiScale, const uint32_t &aMagnitudeBits, const uint32_t &aSteps) | |
Cordic () | |
Cordic (int aPhiScale, int aMagnitudeBits, const int aSteps, bool debug) | |
int32_t | IntegerizeMagnitude (const double &aMagnitude) const |
double | NormalizeMagnitude (const uint32_t &aMagnitude) const |
double | NormalizePhi (const uint32_t &aPhi) const |
void | operator() (int32_t aX, int32_t aY, int32_t &aPhi, uint32_t &aMagnitude) const |
l1tmetemu::EtMiss | toPolar (l1tmetemu::Et_t x, l1tmetemu::Et_t y) const |
virtual | ~Cordic () |
Private Member Functions | |
uint32_t | tower (const double &aRadians) const |
Private Attributes | |
std::vector< l1tmetemu::METphi_t > | atanLUT |
const int | cordicSteps |
const bool | debug |
std::vector< l1tmetemu::Et_t > | magNormalisationLUT |
uint32_t | mMagnitudeBits |
const int | mMagnitudeBits |
uint64_t | mMagnitudeRenormalization |
uint32_t | mMagnitudeScale |
const int | mMagnitudeScale |
uint32_t | mPhiScale |
const int | mPhiScale |
const double | mPi |
std::vector< uint32_t > | mRotations |
uint32_t | mSteps |
Cordic::Cordic | ( | const uint32_t & | aPhiScale, |
const uint32_t & | aMagnitudeBits, | ||
const uint32_t & | aSteps | ||
) |
Definition at line 9 of file Cordic.cc.
References mMagnitudeRenormalization, mMagnitudeScale, mRotations, mSteps, funct::pow(), mathSSE::sqrt(), and tower().
Cordic::Cordic | ( | ) |
Cordic::Cordic | ( | int | aPhiScale, |
int | aMagnitudeBits, | ||
const int | aSteps, | ||
bool | debug | ||
) |
Definition at line 8 of file Cordic.cc.
References atanLUT, debug, mps_fire::i, dqmiolumiharvest::j, M_PI, magNormalisationLUT, mMagnitudeScale, mPhiScale, funct::pow(), and heppy_batch::val.
int32_t Cordic::IntegerizeMagnitude | ( | const double & | aMagnitude | ) | const |
double Cordic::NormalizeMagnitude | ( | const uint32_t & | aMagnitude | ) | const |
double Cordic::NormalizePhi | ( | const uint32_t & | aPhi | ) | const |
void Cordic::operator() | ( | int32_t | aX, |
int32_t | aY, | ||
int32_t & | aPhi, | ||
uint32_t & | aMagnitude | ||
) | const |
Definition at line 38 of file Cordic.cc.
References simKBmtfDigis_cfi::aPhi, mMagnitudeBits, mMagnitudeRenormalization, mPi, mRotations, mSteps, tower(), testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.
EtMiss Cordic::toPolar | ( | l1tmetemu::Et_t | x, |
l1tmetemu::Et_t | y | ||
) | const |
Definition at line 41 of file Cordic.cc.
References atanLUT, cordicSteps, debug, l1tmetemu::EtMiss::Et, dqmMemoryStats::float, createfilelist::int, l1tmetemu::kMaxMET, l1tmetemu::kMaxTrackPt, l1tmetemu::kMETSize, magNormalisationLUT, mMagnitudeBits, mPhiScale, phi, l1tmetemu::EtMiss::Phi, Validation_hcalonly_cfi::sign, x, and y.
|
private |
|
private |
|
private |
|
private |
Definition at line 32 of file Cordic.h.
Referenced by Cordic(), runTauIdMVA.TauIDEmbedder::loadMVA_WPs_run2_2017(), runTauIdMVA.TauIDEmbedder::runTauID(), and toPolar().
|
private |
|
private |
Definition at line 24 of file Cordic.h.
Referenced by operator()(), and toPolar().
|
private |
Definition at line 26 of file Cordic.h.
Referenced by Cordic(), and operator()().
|
private |
Definition at line 23 of file Cordic.h.
Referenced by Cordic(), IntegerizeMagnitude(), and NormalizeMagnitude().
|
private |
|
private |
Definition at line 29 of file Cordic.h.
Referenced by operator()(), and tower().
|
private |
Definition at line 27 of file Cordic.h.
Referenced by Cordic(), and operator()().
|
private |
Definition at line 25 of file Cordic.h.
Referenced by Cordic(), and operator()().