#include <MemoryBase.h>
Public Member Functions | |
virtual void | clean ()=0 |
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) | |
void | openFile (bool first, std::string dirName, std::string filebase) |
virtual | ~MemoryBase ()=default |
Static Public Member Functions | |
static size_t | find_nth (const std::string &haystack, size_t pos, const std::string &needle, size_t nth) |
Protected Attributes | |
int | bx_ |
int | event_ |
unsigned int | iSector_ |
std::string | name_ |
std::ofstream | out_ |
Settings const & | settings_ |
Definition at line 13 of file MemoryBase.h.
MemoryBase::MemoryBase | ( | std::string | name, |
Settings const & | settings | ||
) |
|
virtualdefault |
|
pure virtual |
Implemented in trklet::VMStubsMEMemory, trklet::VMStubsTEMemory, trklet::StubPairsMemory, trklet::TrackFitMemory, trklet::StubTripletsMemory, trklet::DTCLinkMemory, trklet::FullMatchMemory, trklet::InputLinkMemory, trklet::CandidateMatchMemory, trklet::TrackletParametersMemory, trklet::VMProjectionsMemory, trklet::AllInnerStubsMemory, trklet::AllStubsMemory, trklet::TrackletProjectionsMemory, trklet::AllProjectionsMemory, and trklet::CleanTrackMemory.
|
static |
Definition at line 103 of file MemoryBase.cc.
Referenced by trklet::FullMatchMemory::FullMatchMemory(), and trklet::TrackletProjectionsMemory::TrackletProjectionsMemory().
void MemoryBase::findAndReplaceAll | ( | std::string & | data, |
std::string | toSearch, | ||
std::string | replaceStr | ||
) |
|
inline |
Definition at line 20 of file MemoryBase.h.
References name_.
|
inline |
Definition at line 19 of file MemoryBase.h.
References name_.
Referenced by trklet::VMRouter::addInput(), trklet::CandidateMatchMemory::addMatch(), trklet::FullMatchMemory::addMatch(), trklet::TrackletProjectionsMemory::addProj(), trklet::TrackletCalculatorDisplaced::addProjectionDisk(), trklet::VMStubsTEMemory::addVMStub(), plotting.Plot::draw(), trklet::TrackletEngineDisplaced::execute(), trklet::MatchProcessor::execute(), openFile(), trklet::TrackletEngine::setVMPhiBin(), trklet::AllProjectionsMemory::writeAP(), trklet::CandidateMatchMemory::writeCM(), trklet::CleanTrackMemory::writeCT(), trklet::FullMatchMemory::writeMC(), trklet::StubPairsMemory::writeSP(), trklet::StubTripletsMemory::writeST(), trklet::VMStubsMEMemory::writeStubs(), trklet::TrackFitMemory::writeTF(), trklet::TrackletParametersMemory::writeTPAR(), trklet::TrackletProjectionsMemory::writeTPROJ(), and trklet::VMProjectionsMemory::writeVMPROJ().
unsigned int MemoryBase::initLayerDisk | ( | unsigned int | pos | ) |
Definition at line 33 of file MemoryBase.cc.
References initLayerDisk(), phase1PixelTopology::layer, and trklet::N_DISK.
void MemoryBase::initLayerDisk | ( | unsigned int | pos, |
int & | layer, | ||
int & | disk | ||
) |
Definition at line 19 of file MemoryBase.cc.
References Exception, phase1PixelTopology::layer, and name_.
Referenced by trklet::AllProjectionsMemory::AllProjectionsMemory(), trklet::FullMatchMemory::FullMatchMemory(), initLayerDisk(), trklet::TrackletProjectionsMemory::TrackletProjectionsMemory(), trklet::VMProjectionsMemory::VMProjectionsMemory(), trklet::VMStubsMEMemory::VMStubsMEMemory(), and trklet::VMStubsTEMemory::VMStubsTEMemory().
void MemoryBase::initSpecialSeeding | ( | unsigned int | pos, |
bool & | overlap, | ||
bool & | extra, | ||
bool & | extended | ||
) |
Definition at line 42 of file MemoryBase.cc.
References name_, and muon::overlap().
Referenced by trklet::VMStubsTEMemory::VMStubsTEMemory().
void MemoryBase::openFile | ( | bool | first, |
std::string | dirName, | ||
std::string | filebase | ||
) |
Definition at line 74 of file MemoryBase.cc.
References bx_, TrackerOfflineValidation_Dqm_cff::dirName, event_, findAndReplaceAll(), first, alignmentValidation::fname, getName(), iSector_, trklet::openfile(), out_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by trklet::InputLinkMemory::writeStubs(), trklet::DTCLinkMemory::writeStubs(), trklet::AllStubsMemory::writeStubs(), trklet::AllInnerStubsMemory::writeStubs(), and trklet::VMStubsTEMemory::writeStubs().
|
protected |
Definition at line 47 of file MemoryBase.h.
Referenced by MemoryBase(), openFile(), trklet::AllProjectionsMemory::writeAP(), trklet::CandidateMatchMemory::writeCM(), trklet::CleanTrackMemory::writeCT(), trklet::FullMatchMemory::writeMC(), trklet::StubPairsMemory::writeSP(), trklet::StubTripletsMemory::writeST(), trklet::VMStubsMEMemory::writeStubs(), trklet::TrackFitMemory::writeTF(), trklet::TrackletParametersMemory::writeTPAR(), trklet::TrackletProjectionsMemory::writeTPROJ(), and trklet::VMProjectionsMemory::writeVMPROJ().
|
protected |
Definition at line 48 of file MemoryBase.h.
Referenced by MemoryBase(), openFile(), trklet::AllProjectionsMemory::writeAP(), trklet::CandidateMatchMemory::writeCM(), trklet::CleanTrackMemory::writeCT(), trklet::FullMatchMemory::writeMC(), trklet::StubPairsMemory::writeSP(), trklet::StubTripletsMemory::writeST(), trklet::VMStubsMEMemory::writeStubs(), trklet::TrackFitMemory::writeTF(), trklet::TrackletParametersMemory::writeTPAR(), trklet::TrackletProjectionsMemory::writeTPROJ(), and trklet::VMProjectionsMemory::writeVMPROJ().
|
protected |
Definition at line 44 of file MemoryBase.h.
Referenced by MemoryBase(), openFile(), trklet::AllProjectionsMemory::writeAP(), trklet::CandidateMatchMemory::writeCM(), trklet::CleanTrackMemory::writeCT(), trklet::FullMatchMemory::writeMC(), trklet::StubPairsMemory::writeSP(), trklet::StubTripletsMemory::writeST(), trklet::InputLinkMemory::writeStubs(), trklet::DTCLinkMemory::writeStubs(), trklet::AllInnerStubsMemory::writeStubs(), trklet::AllStubsMemory::writeStubs(), trklet::VMStubsTEMemory::writeStubs(), trklet::VMStubsMEMemory::writeStubs(), trklet::TrackFitMemory::writeTF(), trklet::TrackletParametersMemory::writeTPAR(), trklet::TrackletProjectionsMemory::writeTPROJ(), and trklet::VMProjectionsMemory::writeVMPROJ().
|
protected |
Definition at line 43 of file MemoryBase.h.
Referenced by getLastPartOfName(), getName(), initLayerDisk(), and initSpecialSeeding().
|
protected |
Definition at line 46 of file MemoryBase.h.
Referenced by openFile(), trklet::AllProjectionsMemory::writeAP(), trklet::CandidateMatchMemory::writeCM(), trklet::CleanTrackMemory::writeCT(), trklet::FullMatchMemory::writeMC(), trklet::StubPairsMemory::writeSP(), trklet::StubTripletsMemory::writeST(), trklet::InputLinkMemory::writeStubs(), trklet::DTCLinkMemory::writeStubs(), trklet::AllInnerStubsMemory::writeStubs(), trklet::AllStubsMemory::writeStubs(), trklet::VMStubsTEMemory::writeStubs(), trklet::VMStubsMEMemory::writeStubs(), trklet::TrackFitMemory::writeTF(), trklet::TrackletParametersMemory::writeTPAR(), trklet::TrackletProjectionsMemory::writeTPROJ(), and trklet::VMProjectionsMemory::writeVMPROJ().
|
protected |
Definition at line 50 of file MemoryBase.h.
Referenced by trklet::FullMatchMemory::addMatch(), trklet::VMStubsMEMemory::addStub(), trklet::DTCLinkMemory::addStub(), trklet::VMStubsTEMemory::addVMStub(), trklet::VMStubsTEMemory::getPhiRange(), trklet::VMStubsMEMemory::VMStubsMEMemory(), trklet::VMStubsTEMemory::VMStubsTEMemory(), trklet::AllProjectionsMemory::writeAP(), trklet::CandidateMatchMemory::writeCM(), trklet::CleanTrackMemory::writeCT(), trklet::FullMatchMemory::writeMC(), trklet::StubPairsMemory::writeSP(), trklet::StubTripletsMemory::writeST(), trklet::InputLinkMemory::writeStubs(), trklet::DTCLinkMemory::writeStubs(), trklet::AllStubsMemory::writeStubs(), trklet::AllInnerStubsMemory::writeStubs(), trklet::VMStubsTEMemory::writeStubs(), trklet::VMStubsMEMemory::writeStubs(), trklet::TrackFitMemory::writeTF(), trklet::TrackletParametersMemory::writeTPAR(), trklet::TrackletProjectionsMemory::writeTPROJ(), and trklet::VMProjectionsMemory::writeVMPROJ().