#include <VMStubsTEMemory.h>
Public Member Functions | |
bool | addVMStub (VMStubTE vmstub, int bin) |
bool | addVMStub (VMStubTE vmstub) |
void | clean () override |
void | getPhiRange (double &phimin, double &phimax, unsigned int iSeed, unsigned int inner) |
const VMStubTE & | getVMStubTE (unsigned int i) const |
const VMStubTE & | getVMStubTEBinned (unsigned int bin, unsigned int i) const |
unsigned int | nBin () const |
unsigned int | nVMStubs () const |
unsigned int | nVMStubsBinned (unsigned int bin) const |
VMStubsTEMemory * | other () |
int | phibin () const |
void | resize (int nbins) |
void | setbendtable (const TrackletLUT &bendtable) |
void | setother (VMStubsTEMemory *other) |
VMStubsTEMemory (std::string name, Settings const &settings) | |
void | writeStubs (bool first, unsigned int iSector) |
~VMStubsTEMemory () override=default | |
Public Member Functions inherited from trklet::MemoryBase | |
void | findAndReplaceAll (std::string &data, std::string toSearch, std::string replaceStr) |
std::string | getLastPartOfName () const |
std::string const & | getName () const |
void | initLayerDisk (unsigned int pos, int &layer, int &disk) |
unsigned int | initLayerDisk (unsigned int pos) |
void | initSpecialSeeding (unsigned int pos, bool &overlap, bool &extra, bool &extended) |
MemoryBase (std::string name, Settings const &settings) | |
void | openFile (bool first, std::string dirName, std::string filebase) |
virtual | ~MemoryBase ()=default |
Private Attributes | |
TrackletLUT | bendtable_ |
int | disk_ |
bool | extended_ |
bool | extra_ |
bool | isinner_ |
int | layer_ |
int | layerdisk_ |
VMStubsTEMemory * | other_ |
bool | overlap_ |
int | phibin_ |
std::vector< std::vector< VMStubTE > > | stubsbinnedvm_ |
std::vector< VMStubTE > | stubsvm_ |
Additional Inherited Members | |
Static Public Member Functions inherited from trklet::MemoryBase | |
static size_t | find_nth (const std::string &haystack, size_t pos, const std::string &needle, size_t nth) |
static std::string | hexstr (unsigned int index) |
Protected Attributes inherited from trklet::MemoryBase | |
int | bx_ |
int | event_ |
unsigned int | iSector_ |
std::string | name_ |
std::ofstream | out_ |
Settings const & | settings_ |
Definition at line 18 of file VMStubsTEMemory.h.
VMStubsTEMemory::VMStubsTEMemory | ( | std::string | name, |
Settings const & | settings | ||
) |
Definition at line 10 of file VMStubsTEMemory.cc.
References disk_, extended_, extra_, trklet::MemoryBase::initLayerDisk(), trklet::MemoryBase::initSpecialSeeding(), isinner_, layer_, layerdisk_, Skims_PA_cff::name, trklet::Settings::NLONGVMBINS(), or, other_, overlap_, phibin_, trklet::MemoryBase::settings_, and stubsbinnedvm_.
|
overridedefault |
bool VMStubsTEMemory::addVMStub | ( | VMStubTE | vmstub, |
int | bin | ||
) |
Definition at line 55 of file VMStubsTEMemory.cc.
References cms::cuda::assert(), trklet::VMStubTE::bend(), trklet::Settings::benddecode(), bendtable_, newFWLiteAna::bin, trklet::Settings::combined(), trklet::Settings::debugTracklet(), trklet::Stub::disk(), disk_, trklet::Settings::extended(), trklet::MemoryBase::getName(), isinner_, trklet::VMStubTE::isPSmodule(), trklet::Stub::isPSmodule(), layer_, trklet::Stub::layerdisk(), layerdisk_, trklet::TrackletLUT::lookup(), trklet::Settings::maxStubsPerBin(), trklet::N_LAYER, trklet::N_VMSTUBSMAX, overlap_, trklet::MemoryBase::settings_, trklet::TrackletLUT::size(), findQualityFiles::size, trklet::VMStubTE::stub(), stubsbinnedvm_, stubsvm_, and trklet::FPGAWord::value().
bool VMStubsTEMemory::addVMStub | ( | VMStubTE | vmstub | ) |
Definition at line 133 of file VMStubsTEMemory.cc.
References cms::cuda::assert(), trklet::VMStubTE::bend(), trklet::Settings::benddecode(), bendtable_, newFWLiteAna::bin, trklet::Settings::debugTracklet(), trklet::Stub::disk(), disk_, trklet::Settings::extended(), extended_, trklet::MemoryBase::getName(), isinner_, trklet::VMStubTE::isPSmodule(), trklet::Stub::isPSmodule(), layer_, trklet::Stub::layerdisk(), layerdisk_, trklet::TrackletLUT::lookup(), trklet::N_LAYER, overlap_, trklet::Stub::r(), trklet::MemoryBase::settings_, trklet::TrackletLUT::size(), trklet::VMStubTE::stub(), stubsbinnedvm_, stubsvm_, trklet::FPGAWord::value(), and trklet::VMStubTE::vmbits().
|
overridevirtual |
Implements trklet::MemoryBase.
Definition at line 216 of file VMStubsTEMemory.cc.
References stubsbinnedvm_, and stubsvm_.
void VMStubsTEMemory::getPhiRange | ( | double & | phimin, |
double & | phimax, | ||
unsigned int | iSeed, | ||
unsigned int | inner | ||
) |
Definition at line 245 of file VMStubsTEMemory.cc.
References cms::cuda::assert(), disk_, trklet::Settings::dphisectorHG(), extra_, SurfaceOrientation::inner, layer_, trklet::N_DISK, trklet::Settings::nallstubs(), trklet::Settings::nvmte(), overlap_, phibin(), phimax, phimin, and trklet::MemoryBase::settings_.
Referenced by trklet::TrackletEngine::setVMPhiBin().
|
inline |
Definition at line 36 of file VMStubsTEMemory.h.
References mps_fire::i, and stubsvm_.
Referenced by trklet::TrackletEngine::execute(), and trklet::TrackletEngineDisplaced::execute().
|
inline |
Definition at line 38 of file VMStubsTEMemory.h.
References newFWLiteAna::bin, mps_fire::i, and stubsbinnedvm_.
Referenced by trklet::TrackletEngine::execute(), trklet::TrackletEngineDisplaced::execute(), and trklet::TrackletEngineUnit::step().
|
inline |
Definition at line 34 of file VMStubsTEMemory.h.
References stubsbinnedvm_.
|
inline |
Definition at line 30 of file VMStubsTEMemory.h.
References stubsvm_.
Referenced by trklet::TrackletEngine::execute(), trklet::TrackletEngineDisplaced::execute(), and trklet::TrackletProcessor::execute().
|
inline |
Definition at line 32 of file VMStubsTEMemory.h.
References newFWLiteAna::bin, and stubsbinnedvm_.
Referenced by trklet::TrackletEngine::execute(), trklet::TrackletEngineDisplaced::execute(), and trklet::TrackletProcessor::execute().
|
inline |
Definition at line 50 of file VMStubsTEMemory.h.
References other_.
Referenced by trackingPlots.Iteration::modules(), and setother().
|
inline |
|
inline |
Definition at line 24 of file VMStubsTEMemory.h.
References LaserClient_cfi::nbins, and stubsbinnedvm_.
void VMStubsTEMemory::setbendtable | ( | const TrackletLUT & | bendtable | ) |
Definition at line 274 of file VMStubsTEMemory.cc.
References bendtable_.
Referenced by trklet::TrackletEngine::setVMPhiBin().
|
inline |
Definition at line 48 of file VMStubsTEMemory.h.
References other(), and other_.
Referenced by trklet::TrackletEngine::setVMPhiBin().
void VMStubsTEMemory::writeStubs | ( | bool | first, |
unsigned int | iSector | ||
) |
Definition at line 223 of file VMStubsTEMemory.cc.
References dqmdumpme::first, trklet::hexFormat(), trklet::MemoryBase::hexstr(), mps_fire::i, trklet::MemoryBase::iSector_, isinner_, dqmiolumiharvest::j, trklet::Settings::memPath(), trklet::MemoryBase::openFile(), trklet::MemoryBase::out_, trklet::MemoryBase::settings_, stubsbinnedvm_, and stubsvm_.
|
private |
Definition at line 65 of file VMStubsTEMemory.h.
Referenced by addVMStub(), and setbendtable().
|
private |
Definition at line 56 of file VMStubsTEMemory.h.
Referenced by addVMStub(), getPhiRange(), and VMStubsTEMemory().
|
private |
Definition at line 62 of file VMStubsTEMemory.h.
Referenced by addVMStub(), and VMStubsTEMemory().
|
private |
Definition at line 61 of file VMStubsTEMemory.h.
Referenced by getPhiRange(), and VMStubsTEMemory().
|
private |
Definition at line 63 of file VMStubsTEMemory.h.
Referenced by addVMStub(), VMStubsTEMemory(), and writeStubs().
|
private |
Definition at line 55 of file VMStubsTEMemory.h.
Referenced by addVMStub(), getPhiRange(), and VMStubsTEMemory().
|
private |
Definition at line 57 of file VMStubsTEMemory.h.
Referenced by addVMStub(), and VMStubsTEMemory().
|
private |
Definition at line 59 of file VMStubsTEMemory.h.
Referenced by other(), setother(), and VMStubsTEMemory().
|
private |
Definition at line 60 of file VMStubsTEMemory.h.
Referenced by addVMStub(), getPhiRange(), and VMStubsTEMemory().
|
private |
Definition at line 58 of file VMStubsTEMemory.h.
Referenced by phibin(), and VMStubsTEMemory().
|
private |
Definition at line 68 of file VMStubsTEMemory.h.
Referenced by addVMStub(), clean(), getVMStubTEBinned(), nBin(), nVMStubsBinned(), resize(), VMStubsTEMemory(), and writeStubs().
|
private |
Definition at line 67 of file VMStubsTEMemory.h.
Referenced by addVMStub(), clean(), getVMStubTE(), nVMStubs(), and writeStubs().