#include <TrackletLUT.h>
Public Types | |
enum | MatchType { barrelphi, barrelz, disk2Sphi, disk2Sr, diskPSphi, diskPSr } |
enum | VMRTableType { me, disk, inner, inneroverlap, innerthird } |
Public Member Functions | |
void | initBendMatch (unsigned int layerdisk) |
void | initmatchcut (unsigned int layerdisk, MatchType type, unsigned int region) |
void | initPhiCorrTable (unsigned int layerdisk, unsigned int rbits) |
void | initProjectionBend (double k_phider, unsigned int idisk, unsigned int nrbits, unsigned int nphiderbits) |
void | initteptlut (bool fillInner, bool fillTEMem, unsigned int iSeed, unsigned int layerdisk1, unsigned int layerdisk2, unsigned int innerphibits, unsigned int outerphibits, double innerphimin, double innerphimax, double outerphimin, double outerphimax, const std::string &innermem, const std::string &outermem) |
void | initTPlut (bool fillInner, unsigned int iSeed, unsigned int layerdisk1, unsigned int layerdisk2, unsigned int nbitsfinephidiff, unsigned int iTP) |
void | initTPregionlut (unsigned int iSeed, unsigned int layerdisk1, unsigned int layerdisk2, unsigned int iAllStub, unsigned int nbitsfinephidiff, unsigned int nbitsfinephi, const TrackletLUT &tplutinner, unsigned int iTP) |
void | initVMRTable (unsigned int layerdisk, VMRTableType type, int region=-1) |
int | lookup (unsigned int index) const |
TrackletLUT & | operator= (const TrackletLUT &other) |
unsigned int | size () const |
TrackletLUT (const Settings &settings) | |
void | writeTable () const |
~TrackletLUT ()=default | |
Private Member Functions | |
int | getphiCorrValue (unsigned int layerdisk, unsigned int ibend, unsigned int irbin, double rmean, double dr, double drmax) const |
int | getVMRLookup (unsigned int layerdisk, double z, double r, double dz, double dr, int iseed=-1) const |
Private Attributes | |
std::string | name_ |
unsigned int | nbits_ |
bool | positive_ |
const Settings & | settings_ |
std::vector< int > | table_ |
Definition at line 12 of file TrackletLUT.h.
Enumerator | |
---|---|
barrelphi | |
barrelz | |
disk2Sphi | |
disk2Sr | |
diskPSphi | |
diskPSr |
Definition at line 27 of file TrackletLUT.h.
Enumerator | |
---|---|
me | |
disk | |
inner | |
inneroverlap | |
innerthird |
Definition at line 66 of file TrackletLUT.h.
TrackletLUT::TrackletLUT | ( | const Settings & | settings | ) |
Definition at line 12 of file TrackletLUT.cc.
|
default |
|
private |
Definition at line 854 of file TrackletLUT.cc.
References trklet::Settings::benddecode(), trklet::Settings::kphi(), trklet::Settings::kphi1(), trklet::N_PSLAYER, settings_, and trklet::Settings::stripPitch().
Referenced by initPhiCorrTable().
|
private |
Definition at line 669 of file TrackletLUT.cc.
References funct::abs(), cms::cuda::assert(), PVValHelper::dz, iseed, trklet::L1D1, trklet::L2D1, trklet::L2L3, trklet::L2L3D1, SiStripPI::max, SiStripPI::min, trklet::N_LAYER, NBINS, trklet::Settings::NLONGVMBINS(), hltL1SingleMuFiltered5_cfi::overlap, diffTwoXMLs::r2, trklet::Settings::rmaxdisk(), trklet::Settings::rmaxdiskl1overlapvm(), trklet::Settings::rmaxdiskvm(), trklet::Settings::rmean(), trklet::Settings::rmindiskl2overlapvm(), trklet::Settings::rmindiskvm(), settings_, relativeConstraints::value, trklet::Settings::z0cut(), testProducerWithPsetDescEmpty_cfi::z2, trklet::Settings::zlength(), SiStripMonitorCluster_cfi::zmax, trklet::Settings::zmean(), and SiStripMonitorCluster_cfi::zmin.
Referenced by initVMRTable().
void TrackletLUT::initBendMatch | ( | unsigned int | layerdisk | ) |
Definition at line 446 of file TrackletLUT.cc.
References funct::abs(), Reference_intrackfit_cff::barrel, trklet::Settings::bendcutme(), trklet::Settings::benddecode(), trklet::bendstrip(), trklet::Settings::krinvpars(), trklet::TrackletConfigBuilder::LayerName(), trklet::N_BENDBITS_2S, trklet::N_BENDBITS_PS, trklet::N_LAYER, trklet::N_PSLAYER, name_, trklet::Settings::nbitsrinv(), trklet::NRINVBITS, positive_, trklet::rinv(), trklet::Settings::rmean(), settings_, trklet::Settings::stripPitch(), table_, and writeTable().
Referenced by trklet::MatchEngine::MatchEngine(), and trklet::MatchProcessor::MatchProcessor().
void TrackletLUT::initmatchcut | ( | unsigned int | layerdisk, |
MatchType | type, | ||
unsigned int | region | ||
) |
Definition at line 14 of file TrackletLUT.cc.
References barrelphi, barrelz, trklet::Settings::combined(), disk2Sphi, disk2Sr, diskPSphi, diskPSr, trklet::Settings::kphi(), trklet::Settings::kphi1(), trklet::Settings::kr(), trklet::Settings::krprojshiftdisk(), trklet::Settings::kz(), trklet::TrackletConfigBuilder::LayerName(), trklet::N_LAYER, name_, positive_, trklet::Settings::rcut2S(), trklet::Settings::rcutPS(), HLT_2023v12_cff::region, trklet::Settings::rmean(), trklet::Settings::rphicut2S(), trklet::Settings::rphicutPS(), trklet::Settings::rphimatchcut(), settings_, table_, writeTable(), and trklet::Settings::zmatchcut().
Referenced by trklet::MatchCalculator::MatchCalculator(), and trklet::MatchProcessor::MatchProcessor().
void TrackletLUT::initPhiCorrTable | ( | unsigned int | layerdisk, |
unsigned int | rbits | ||
) |
Definition at line 826 of file TrackletLUT.cc.
References trklet::Settings::drmax(), getphiCorrValue(), trklet::N_BENDBITS_2S, trklet::N_BENDBITS_PS, trklet::N_PSLAYER, name_, nbits_, positive_, trklet::Settings::rmean(), settings_, table_, to_string(), and writeTable().
Referenced by trklet::Sector::addStub().
void TrackletLUT::initProjectionBend | ( | double | k_phider, |
unsigned int | idisk, | ||
unsigned int | nrbits, | ||
unsigned int | nphiderbits | ||
) |
Definition at line 394 of file TrackletLUT.cc.
References trklet::bendstrip(), l1t::bitShift(), trklet::Settings::combined(), trklet::Settings::krprojshiftdisk(), trklet::TrackletConfigBuilder::LayerName(), trklet::N_LAYER, name_, trklet::Settings::nbitsphiprojderL123(), trklet::Settings::nrbitsstub(), trklet::NRINVBITS, positive_, trklet::Settings::rcrit(), trklet::rinv(), settings_, trklet::Settings::stripPitch(), submitPVValidationJobs::t, table_, writeTable(), and trklet::Settings::zmean().
Referenced by trklet::MatchProcessor::MatchProcessor(), and trklet::ProjectionRouter::ProjectionRouter().
void TrackletLUT::initteptlut | ( | bool | fillInner, |
bool | fillTEMem, | ||
unsigned int | iSeed, | ||
unsigned int | layerdisk1, | ||
unsigned int | layerdisk2, | ||
unsigned int | innerphibits, | ||
unsigned int | outerphibits, | ||
double | innerphimin, | ||
double | innerphimax, | ||
double | outerphimin, | ||
double | outerphimax, | ||
const std::string & | innermem, | ||
const std::string & | outermem | ||
) |
Definition at line 241 of file TrackletLUT.cc.
References funct::abs(), trklet::Settings::bendcutte(), trklet::Settings::benddecode(), trklet::bendstrip(), trklet::D1D2, trklet::D3D4, testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, testProducerWithPsetDescEmpty_cfi::i3, trklet::L1D1, trklet::L2D1, trklet::L3L4, trklet::L5L6, trklet::N_LAYER, name_, positive_, trklet::Settings::rcrit(), trklet::rinv(), trklet::Settings::rinvcutte(), trklet::Settings::rmaxdiskvm(), trklet::Settings::rmean(), trklet::Settings::rmindiskvm(), settings_, trklet::Settings::stripPitch(), table_, writeTable(), and trklet::Settings::zmean().
Referenced by trklet::TrackletEngine::setVMPhiBin().
void TrackletLUT::initTPlut | ( | bool | fillInner, |
unsigned int | iSeed, | ||
unsigned int | layerdisk1, | ||
unsigned int | layerdisk2, | ||
unsigned int | nbitsfinephidiff, | ||
unsigned int | iTP | ||
) |
Definition at line 64 of file TrackletLUT.cc.
References funct::abs(), trklet::Settings::bendcutte(), trklet::Settings::benddecode(), trklet::bendstrip(), trklet::D1D2, trklet::D3D4, trklet::Settings::dphisectorHG(), testProducerWithPsetDescEmpty_cfi::i2, testProducerWithPsetDescEmpty_cfi::i3, trklet::L1D1, trklet::L1L2, trklet::L2D1, trklet::L2L3, trklet::L3L4, trklet::L5L6, trklet::TrackletConfigBuilder::LayerName(), trklet::N_LAYER, trklet::Settings::nallstubs(), name_, trklet::Settings::nfinephi(), trklet::Settings::nvmte(), positive_, trklet::Settings::rcrit(), trklet::rinv(), trklet::Settings::rinvcutte(), trklet::Settings::rmaxdiskvm(), trklet::Settings::rmean(), trklet::Settings::rmindiskvm(), settings_, trklet::Settings::stripPitch(), table_, writeTable(), and trklet::Settings::zmean().
Referenced by trklet::TrackletProcessor::addInput().
void TrackletLUT::initTPregionlut | ( | unsigned int | iSeed, |
unsigned int | layerdisk1, | ||
unsigned int | layerdisk2, | ||
unsigned int | iAllStub, | ||
unsigned int | nbitsfinephidiff, | ||
unsigned int | nbitsfinephi, | ||
const TrackletLUT & | tplutinner, | ||
unsigned int | iTP | ||
) |
Definition at line 184 of file TrackletLUT.cc.
References l1t::bitShift(), trklet::D1D2, trklet::D3D4, trklet::L1D1, trklet::L2D1, trklet::L5L6, trklet::TrackletConfigBuilder::LayerName(), lookup(), name_, trklet::Settings::nbitsallstubs(), trklet::Settings::nfinephi(), trklet::Settings::nvmte(), positive_, settings_, table_, and writeTable().
Referenced by trklet::TrackletProcessor::addInput().
void TrackletLUT::initVMRTable | ( | unsigned int | layerdisk, |
VMRTableType | type, | ||
int | region = -1 |
||
) |
Definition at line 493 of file TrackletLUT.cc.
References cms::cuda::assert(), newFWLiteAna::bin, trklet::Settings::combined(), trklet::D3, trklet::Settings::drmax(), PVValHelper::dz, trklet::Settings::dzmax(), getVMRLookup(), SurfaceOrientation::inner, PixelRegions::L1, PixelRegions::L2, trklet::L2L3, trklet::L2L3D1, PixelRegions::L3, PixelRegions::L4, trklet::L5, trklet::L6, trklet::TrackletConfigBuilder::LayerName(), hlt_dqm_clientPB-live_cfg::me, trklet::N_LAYER, name_, NBINS, nbits_, trklet::Settings::NLONGVMBINS(), positive_, trklet::Settings::rDSSinner(), trklet::Settings::rDSSouter(), HLT_2023v12_cff::region, trklet::Settings::rmaxdisk(), trklet::Settings::rmaxdiskvm(), trklet::Settings::rmean(), trklet::Settings::rmindiskvm(), settings_, table_, trklet::Settings::vmrlutrbits(), trklet::Settings::vmrlutzbits(), writeTable(), globals_cff::zbins, trklet::Settings::zlength(), SiStripMonitorCluster_cfi::zmax, trklet::Settings::zmean(), and SiStripMonitorCluster_cfi::zmin.
Referenced by trklet::TrackletProcessor::TrackletProcessor(), trklet::TrackletProcessorDisplaced::TrackletProcessorDisplaced(), trklet::VMRouter::VMRouter(), and trklet::VMRouterCM::VMRouterCM().
int TrackletLUT::lookup | ( | unsigned int | index | ) | const |
Definition at line 904 of file TrackletLUT.cc.
References cms::cuda::assert(), and table_.
Referenced by trklet::Sector::addStub(), trklet::VMStubsTEMemory::addVMStub(), trklet::ProjectionRouter::execute(), trklet::MatchEngine::execute(), trklet::TrackletEngine::execute(), trklet::MatchCalculator::execute(), trklet::MatchProcessor::execute(), trklet::TrackletProcessor::execute(), trklet::TrackletProcessorDisplaced::execute(), trklet::VMRouterCM::execute(), trklet::VMRouter::execute(), initTPregionlut(), trklet::MatchProcessor::matchCalculator(), trklet::MatchEngineUnit::processPipeline(), and trklet::TrackletEngineUnit::step().
|
inline |
Definition at line 16 of file TrackletLUT.h.
References name_, nbits_, trackingPlots::other, positive_, and table_.
|
inline |
Definition at line 77 of file TrackletLUT.h.
References table_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and trklet::VMStubsTEMemory::addVMStub().
void TrackletLUT::writeTable | ( | ) | const |
Definition at line 874 of file TrackletLUT.cc.
References mps_fire::i, name_, nbits_, trklet::openfile(), MillePedeFileConverter_cfg::out, positive_, settings_, table_, trklet::Settings::tablePath(), and trklet::Settings::writeTable().
Referenced by initBendMatch(), initmatchcut(), initPhiCorrTable(), initProjectionBend(), initteptlut(), initTPlut(), initTPregionlut(), and initVMRTable().
|
private |
Definition at line 87 of file TrackletLUT.h.
Referenced by initBendMatch(), initmatchcut(), initPhiCorrTable(), initProjectionBend(), initteptlut(), initTPlut(), initTPregionlut(), initVMRTable(), operator=(), and writeTable().
|
private |
Definition at line 91 of file TrackletLUT.h.
Referenced by initPhiCorrTable(), initVMRTable(), operator=(), and writeTable().
|
private |
Definition at line 93 of file TrackletLUT.h.
Referenced by initBendMatch(), initmatchcut(), initPhiCorrTable(), initProjectionBend(), initteptlut(), initTPlut(), initTPregionlut(), initVMRTable(), operator=(), and writeTable().
|
private |
Definition at line 85 of file TrackletLUT.h.
Referenced by getphiCorrValue(), getVMRLookup(), initBendMatch(), initmatchcut(), initPhiCorrTable(), initProjectionBend(), initteptlut(), initTPlut(), initTPregionlut(), initVMRTable(), and writeTable().
|
private |
Definition at line 89 of file TrackletLUT.h.
Referenced by initBendMatch(), initmatchcut(), initPhiCorrTable(), initProjectionBend(), initteptlut(), initTPlut(), initTPregionlut(), initVMRTable(), lookup(), operator=(), size(), and writeTable().