#include <VMStubsTEMemory.h>
Public Member Functions | |
bool | addVMStub (VMStubTE vmstub) |
bool | addVMStub (VMStubTE vmstub, int bin) |
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 () |
bool | passbend (unsigned int ibend) const |
int | phibin () const |
void | resize (int nbins) |
void | setbendtable (std::vector< bool > vmbendtable) |
void | setother (VMStubsTEMemory *other) |
VMStubsTEMemory (std::string name, Settings const &settings, unsigned int iSector) | |
void | writeStubs (bool first) |
void | writeVMBendTable () |
~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 |
unsigned int | initLayerDisk (unsigned int pos) |
void | initLayerDisk (unsigned int pos, int &layer, int &disk) |
void | initSpecialSeeding (unsigned int pos, bool &overlap, bool &extra, bool &extended) |
MemoryBase (std::string name, Settings const &settings, unsigned int iSector) | |
void | openFile (bool first, std::string dirName, std::string filebase) |
virtual | ~MemoryBase ()=default |
Private Attributes | |
int | disk_ |
bool | extended_ |
bool | extra_ |
bool | isinner_ |
int | layer_ |
VMStubsTEMemory * | other_ |
bool | overlap_ |
int | phibin_ |
std::vector< std::vector< VMStubTE > > | stubsbinnedvm_ |
std::vector< VMStubTE > | stubsvm_ |
std::vector< bool > | vmbendtable_ |
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) |
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 16 of file VMStubsTEMemory.h.
VMStubsTEMemory::VMStubsTEMemory | ( | std::string | name, |
Settings const & | settings, | ||
unsigned int | iSector | ||
) |
Definition at line 9 of file VMStubsTEMemory.cc.
References disk_, extended_, extra_, mps_fire::i, trklet::MemoryBase::initLayerDisk(), trklet::MemoryBase::initSpecialSeeding(), isinner_, layer_, Skims_PA_cff::name, LaserClient_cfi::nbins, trklet::Settings::NLONGVMBINS(), or, other_, overlap_, phibin_, trklet::MemoryBase::settings_, stubsbinnedvm_, and vmbendtable_.
|
overridedefault |
bool VMStubsTEMemory::addVMStub | ( | VMStubTE | vmstub | ) |
Definition at line 133 of file VMStubsTEMemory.cc.
References cms::cuda::assert(), trklet::VMStubTE::bend(), trklet::benddecode(), newFWLiteAna::bin, trklet::Settings::debugTracklet(), trklet::Stub::disk(), disk_, extended_, trklet::MemoryBase::getName(), trklet::Stub::isBarrel(), isinner_, trklet::VMStubTE::isPSmodule(), trklet::Stub::isPSmodule(), layer_, overlap_, passbend(), trklet::Stub::r(), trklet::MemoryBase::settings_, trklet::VMStubTE::stub(), stubsbinnedvm_, stubsvm_, trklet::FPGAWord::value(), and trklet::VMStubTE::vmbits().
bool VMStubsTEMemory::addVMStub | ( | VMStubTE | vmstub, |
int | bin | ||
) |
Definition at line 62 of file VMStubsTEMemory.cc.
References cms::cuda::assert(), trklet::VMStubTE::bend(), trklet::benddecode(), newFWLiteAna::bin, trklet::Settings::combined(), trklet::Settings::debugTracklet(), trklet::Stub::disk(), disk_, trklet::MemoryBase::getName(), trklet::Stub::isBarrel(), isinner_, trklet::VMStubTE::isPSmodule(), trklet::Stub::isPSmodule(), layer_, trklet::Settings::maxStubsPerBin(), overlap_, passbend(), trklet::MemoryBase::settings_, findQualityFiles::size, trklet::VMStubTE::stub(), stubsbinnedvm_, stubsvm_, and trklet::FPGAWord::value().
|
overridevirtual |
Implements trklet::MemoryBase.
Definition at line 210 of file VMStubsTEMemory.cc.
References stubsbinnedvm_, and stubsvm_.
void VMStubsTEMemory::getPhiRange | ( | double & | phimin, |
double & | phimax, | ||
unsigned int | iSeed, | ||
unsigned int | inner | ||
) |
Definition at line 241 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 34 of file VMStubsTEMemory.h.
References mps_fire::i, and stubsvm_.
Referenced by trklet::TrackletEngine::execute(), and trklet::TrackletEngineDisplaced::execute().
|
inline |
Definition at line 36 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 |
|
inline |
Definition at line 28 of file VMStubsTEMemory.h.
References stubsvm_.
Referenced by trklet::TrackletEngine::execute(), trklet::TrackletEngineDisplaced::execute(), and trklet::TrackletProcessor::execute().
|
inline |
Definition at line 30 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 48 of file VMStubsTEMemory.h.
References other_.
Referenced by trackingPlots.Iteration::modules(), and setother().
|
inline |
Definition at line 52 of file VMStubsTEMemory.h.
References cms::cuda::assert(), and vmbendtable_.
Referenced by addVMStub().
|
inline |
|
inline |
Definition at line 22 of file VMStubsTEMemory.h.
References LaserClient_cfi::nbins, and stubsbinnedvm_.
void VMStubsTEMemory::setbendtable | ( | std::vector< bool > | vmbendtable | ) |
Definition at line 270 of file VMStubsTEMemory.cc.
References cms::cuda::assert(), mps_fire::i, trklet::MemoryBase::iSector_, trklet::MemoryBase::settings_, vmbendtable_, trklet::Settings::writeTable(), and writeVMBendTable().
Referenced by trklet::TrackletEngine::setVMPhiBin().
|
inline |
Definition at line 46 of file VMStubsTEMemory.h.
References other(), and other_.
Referenced by trklet::TrackletEngine::setVMPhiBin().
void VMStubsTEMemory::writeStubs | ( | bool | first | ) |
Definition at line 217 of file VMStubsTEMemory.cc.
References TauDecayModes::dec, first, trklet::hexFormat(), mps_fire::i, isinner_, dqmiolumiharvest::j, trklet::Settings::memPath(), trklet::Settings::NLONGVMBINS(), trklet::MemoryBase::openFile(), trklet::MemoryBase::out_, trklet::MemoryBase::settings_, stubsbinnedvm_, and stubsvm_.
void VMStubsTEMemory::writeVMBendTable | ( | ) |
Definition at line 280 of file VMStubsTEMemory.cc.
References cms::cuda::assert(), Exception, alignmentValidation::fname, trklet::MemoryBase::getName(), mps_fire::i, trklet::MemoryBase::settings_, trklet::Settings::tablePath(), and vmbendtable_.
Referenced by setbendtable().
|
private |
Definition at line 61 of file VMStubsTEMemory.h.
Referenced by addVMStub(), getPhiRange(), and VMStubsTEMemory().
|
private |
Definition at line 66 of file VMStubsTEMemory.h.
Referenced by addVMStub(), and VMStubsTEMemory().
|
private |
Definition at line 65 of file VMStubsTEMemory.h.
Referenced by getPhiRange(), and VMStubsTEMemory().
|
private |
Definition at line 67 of file VMStubsTEMemory.h.
Referenced by addVMStub(), VMStubsTEMemory(), and writeStubs().
|
private |
Definition at line 60 of file VMStubsTEMemory.h.
Referenced by addVMStub(), getPhiRange(), and VMStubsTEMemory().
|
private |
Definition at line 63 of file VMStubsTEMemory.h.
Referenced by other(), setother(), and VMStubsTEMemory().
|
private |
Definition at line 64 of file VMStubsTEMemory.h.
Referenced by addVMStub(), getPhiRange(), and VMStubsTEMemory().
|
private |
Definition at line 62 of file VMStubsTEMemory.h.
Referenced by phibin(), and VMStubsTEMemory().
|
private |
Definition at line 72 of file VMStubsTEMemory.h.
Referenced by addVMStub(), clean(), getVMStubTEBinned(), nBin(), nVMStubsBinned(), resize(), VMStubsTEMemory(), and writeStubs().
|
private |
Definition at line 71 of file VMStubsTEMemory.h.
Referenced by addVMStub(), clean(), getVMStubTE(), nVMStubs(), and writeStubs().
|
private |
Definition at line 69 of file VMStubsTEMemory.h.
Referenced by passbend(), setbendtable(), VMStubsTEMemory(), and writeVMBendTable().