#include <TrackDerTable.h>
Public Member Functions | |
void | addEntry (unsigned int layermask, unsigned int diskmask, int multiplicity, int nrinv) |
void | fillTable () |
const TrackDer * | getDerivatives (int index) const |
const TrackDer * | getDerivatives (unsigned int layermask, unsigned int diskmask, unsigned int alphaindex, unsigned int rinvindex) const |
int | getEntries () const |
int | getIndex (unsigned int layermask, unsigned int diskmask) const |
void | readPatternFile (std::string fileName) |
TrackDerTable (Settings const &settings) | |
~TrackDerTable ()=default | |
Static Public Member Functions | |
static void | calculateDerivatives (Settings const &settings, unsigned int nlayers, double r[N_LAYER], unsigned int ndisks, double z[N_DISK], double alpha[N_DISK], double t, double rinv, double D[N_FITPARAM][N_FITSTUB *2], int iD[N_FITPARAM][N_FITSTUB *2], double MinvDt[N_FITPARAM][N_FITSTUB *2], int iMinvDt[N_FITPARAM][N_FITSTUB *2], double sigma[N_FITSTUB *2], double kfactor[N_FITSTUB *2]) |
static void | invert (double M[4][8], unsigned int n) |
static void | invert (std::vector< std::vector< double > > &M, unsigned int n) |
static double | tpar (Settings const &settings, int diskmask, int layermask) |
Private Attributes | |
unsigned int | alphaBits_ |
std::vector< TrackDer > | derivatives_ |
std::vector< int > | DiskMem_ |
unsigned int | DiskMemBits_ |
int | lastMultiplicity_ |
std::vector< int > | LayerDiskMem_ |
unsigned int | LayerDiskMemBits_ |
std::vector< int > | LayerMem_ |
unsigned int | LayerMemBits_ |
unsigned int | Ndisk_ |
int | nextDiskValue_ |
int | nextLayerDiskValue_ |
int | nextLayerValue_ |
unsigned int | Nlay_ |
Settings const & | settings_ |
Definition at line 18 of file TrackDerTable.h.
TrackDerTable::TrackDerTable | ( | Settings const & | settings | ) |
Definition at line 12 of file TrackDerTable.cc.
References alphaBits_, trklet::Settings::alphaBitsTable(), DiskMem_, DiskMemBits_, mps_fire::i, lastMultiplicity_, LayerDiskMem_, LayerDiskMemBits_, LayerMem_, LayerMemBits_, trklet::N_DISK, trklet::N_LAYER, Ndisk_, nextDiskValue_, nextLayerDiskValue_, nextLayerValue_, Nlay_, and settings_.
|
default |
void TrackDerTable::addEntry | ( | unsigned int | layermask, |
unsigned int | diskmask, | ||
int | multiplicity, | ||
int | nrinv | ||
) |
Definition at line 91 of file TrackDerTable.cc.
References alphaBits_, cms::cuda::assert(), derivatives_, DiskMem_, DiskMemBits_, mps_fire::i, lastMultiplicity_, LayerDiskMem_, LayerMem_, LayerMemBits_, Ndisk_, nextDiskValue_, nextLayerDiskValue_, nextLayerValue_, Nlay_, and createJobs::tmp.
Referenced by readPatternFile().
|
static |
Definition at line 800 of file TrackDerTable.cc.
References funct::abs(), alpha, cms::cuda::assert(), trklet::Settings::chisqphifactbits(), trklet::Settings::chisqzfactbits(), funct::cos(), makePileupJSON::denom, MillePedeFileConverter_cfg::e, fact, trklet::Settings::fitphi0bitshift(), trklet::Settings::fitrinvbitshift(), trklet::Settings::fittbitshift(), trklet::Settings::fitz0bitshift(), mps_fire::i, testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, invert(), dqmiolumiharvest::j, kfactor, trklet::Settings::kphi(), trklet::Settings::kphi0pars(), trklet::Settings::kphi1(), trklet::Settings::kr(), trklet::Settings::krinvpars(), trklet::Settings::krprojshiftdisk(), trklet::Settings::ktpars(), trklet::Settings::kz(), trklet::Settings::kz0pars(), dqmiodumpmetadata::n, trklet::N_FITPARAM, trklet::N_FITSTUB, nlayers, trklet::Settings::nzbitsstub(), alignCSCRings::r, trklet::rinv(), trklet::Settings::rPS2S(), funct::sin(), mathSSE::sqrt(), trklet::Settings::stripLength(), trklet::Settings::stripPitch(), submitPVValidationJobs::t, and HLTMuonOfflineAnalyzer_cfi::z0.
Referenced by fillTable(), and trklet::FitTrack::trackFitChisq().
void TrackDerTable::fillTable | ( | ) |
Definition at line 186 of file TrackDerTable.cc.
References funct::abs(), alpha, alphaBits_, trklet::TrackDer::alphaMask(), cms::cuda::assert(), calculateDerivatives(), ztail::d, dumpMFGeometry_cfg::delta, derivatives_, trklet::TrackDer::diskMask(), DiskMem_, Exception, trklet::Settings::fittbitshift(), trklet::Settings::fitz0bitshift(), alignmentValidation::fname, getEntries(), trklet::Settings::half2SmoduleWidth(), hfClusterShapes_cfi::hits, mps_fire::i, cuy::ii, trklet::TrackDer::irinv(), dqmiolumiharvest::j, kfactor, trklet::Settings::kr(), trklet::Settings::ktpars(), trklet::Settings::kz(), trklet::Settings::kz0pars(), cmsLHEtoEOSManager::l, LayerDiskMem_, trklet::TrackDer::layerMask(), LayerMem_, trklet::N_DISK, trklet::N_FITPARAM, trklet::N_FITSTUB, trklet::N_LAYER, trklet::N_PROJ, trklet::N_TRKLSEED, nlayers, trklet::Settings::nrinvBitsTable(), or, hcallasereventfilter2012_cfi::prefix, print(), alignCSCRings::r, diffTwoXMLs::r2, trklet::Settings::rcorrbits(), trklet::rinv(), trklet::Settings::rinvmax(), trklet::Settings::rmean(), trklet::Settings::rPS2S(), fileCollector::seed, trklet::FPGAWord::set(), trklet::TrackDer::setiphi0dphi(), trklet::TrackDer::setiphi0dzordr(), trklet::TrackDer::setirinvdphi(), trklet::TrackDer::setirinvdzordr(), trklet::TrackDer::setitdphi(), trklet::TrackDer::setitdzcorr(), trklet::TrackDer::setitdzordr(), trklet::TrackDer::setiz0dphi(), trklet::TrackDer::setiz0dzcorr(), trklet::TrackDer::setiz0dzordr(), trklet::TrackDer::setphi0dphi(), trklet::TrackDer::setphi0dzordr(), trklet::TrackDer::setrinvdphi(), trklet::TrackDer::setrinvdzordr(), trklet::TrackDer::settdphi(), trklet::TrackDer::settdzcorr(), trklet::TrackDer::settdzordr(), settings_, trklet::TrackDer::settpar(), trklet::TrackDer::setz0dphi(), trklet::TrackDer::setz0dzcorr(), trklet::TrackDer::setz0dzordr(), trklet::FPGAWord::str(), AlCaHLTBitMon_QueryRunRegistry::string, submitPVValidationJobs::t, trklet::Settings::tablePath(), createJobs::tmp, tpar(), trklet::Settings::writeTable(), and trklet::Settings::zmean().
Referenced by trklet::FitTrack::trackFitChisq().
|
inline |
Definition at line 24 of file TrackDerTable.h.
References derivatives_.
Referenced by trklet::FitTrack::trackFitChisq().
const TrackDer * TrackDerTable::getDerivatives | ( | unsigned int | layermask, |
unsigned int | diskmask, | ||
unsigned int | alphaindex, | ||
unsigned int | rinvindex | ||
) | const |
Definition at line 40 of file TrackDerTable.cc.
References derivatives_, getIndex(), trklet::Settings::nrinvBitsTable(), and settings_.
|
inline |
Definition at line 37 of file TrackDerTable.h.
References nextLayerDiskValue_.
Referenced by fillTable(), and trklet::FitTrack::trackFitChisq().
int TrackDerTable::getIndex | ( | unsigned int | layermask, |
unsigned int | diskmask | ||
) | const |
Definition at line 51 of file TrackDerTable.cc.
References cms::cuda::assert(), DiskMem_, DiskMemBits_, LayerDiskMem_, LayerDiskMemBits_, LayerMem_, LayerMemBits_, settings_, and trklet::Settings::warnNoDer().
Referenced by getDerivatives().
|
static |
Definition at line 731 of file TrackDerTable.cc.
References a, cms::cuda::assert(), mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, dqmiodumpmetadata::n, and particleFlowDisplacedVertex_cfi::ratio.
Referenced by calculateDerivatives().
|
static |
Definition at line 765 of file TrackDerTable.cc.
References a, cms::cuda::assert(), mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, dqmiodumpmetadata::n, particleFlowDisplacedVertex_cfi::ratio, and findQualityFiles::size.
void TrackDerTable::readPatternFile | ( | std::string | fileName | ) |
Definition at line 141 of file TrackDerTable.cc.
References addEntry(), alphaBits_, trklet::Settings::debugTracklet(), alignBH_cfg::disks, MillePedeFileConverter_cfg::fileName, recoMuon::in, hgcalTopologyTester_cfi::layers, trklet::Settings::nrinvBitsTable(), settings_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by trklet::FitTrack::trackFitChisq().
|
static |
Definition at line 1055 of file TrackDerTable.cc.
References ztail::d, createfilelist::int, cmsLHEtoEOSManager::l, trklet::N_DISK, trklet::N_LAYER, trklet::Settings::rmean(), tmax, muonTiming_cfi::tmin, trklet::Settings::zlength(), and trklet::Settings::zmean().
Referenced by fillTable(), and trklet::FitTrack::trackFitChisq().
|
private |
Definition at line 72 of file TrackDerTable.h.
Referenced by addEntry(), fillTable(), readPatternFile(), and TrackDerTable().
|
private |
Definition at line 77 of file TrackDerTable.h.
Referenced by addEntry(), fillTable(), and getDerivatives().
|
private |
Definition at line 66 of file TrackDerTable.h.
Referenced by addEntry(), fillTable(), getIndex(), and TrackDerTable().
|
private |
Definition at line 70 of file TrackDerTable.h.
Referenced by addEntry(), getIndex(), and TrackDerTable().
|
private |
Definition at line 82 of file TrackDerTable.h.
Referenced by addEntry(), and TrackDerTable().
|
private |
Definition at line 67 of file TrackDerTable.h.
Referenced by addEntry(), fillTable(), getIndex(), and TrackDerTable().
|
private |
Definition at line 71 of file TrackDerTable.h.
Referenced by getIndex(), and TrackDerTable().
|
private |
Definition at line 65 of file TrackDerTable.h.
Referenced by addEntry(), fillTable(), getIndex(), and TrackDerTable().
|
private |
Definition at line 69 of file TrackDerTable.h.
Referenced by addEntry(), getIndex(), and TrackDerTable().
|
private |
Definition at line 75 of file TrackDerTable.h.
Referenced by addEntry(), and TrackDerTable().
|
private |
Definition at line 80 of file TrackDerTable.h.
Referenced by addEntry(), and TrackDerTable().
|
private |
Definition at line 81 of file TrackDerTable.h.
Referenced by addEntry(), getEntries(), and TrackDerTable().
|
private |
Definition at line 79 of file TrackDerTable.h.
Referenced by addEntry(), and TrackDerTable().
|
private |
Definition at line 74 of file TrackDerTable.h.
Referenced by addEntry(), and TrackDerTable().
|
private |
Definition at line 63 of file TrackDerTable.h.
Referenced by fillTable(), getDerivatives(), getIndex(), readPatternFile(), and TrackDerTable().