#include <StubPairsMemory.h>
|
void | addStubPair (const VMStubTE &stub1, const VMStubTE &stub2, const unsigned index=0, const std::string &tedName="") |
|
void | clean () override |
|
unsigned | getIndex (const unsigned i) const |
|
const std::string & | getTEDName (const unsigned i) const |
|
const VMStubTE & | getVMStub1 (unsigned int i) const |
|
const VMStubTE & | getVMStub2 (unsigned int i) const |
|
unsigned int | nStubPairs () const |
|
| StubPairsMemory (std::string name, Settings const &settings) |
|
void | writeSP (bool first, unsigned int iSector) |
|
| ~StubPairsMemory () override=default |
|
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 |
|
Definition at line 13 of file StubPairsMemory.h.
◆ StubPairsMemory()
StubPairsMemory::StubPairsMemory |
( |
std::string |
name, |
|
|
Settings const & |
settings |
|
) |
| |
◆ ~StubPairsMemory()
trklet::StubPairsMemory::~StubPairsMemory |
( |
| ) |
|
|
overridedefault |
◆ addStubPair()
void trklet::StubPairsMemory::addStubPair |
( |
const VMStubTE & |
stub1, |
|
|
const VMStubTE & |
stub2, |
|
|
const unsigned |
index = 0 , |
|
|
const std::string & |
tedName = "" |
|
) |
| |
|
inline |
◆ clean()
void trklet::StubPairsMemory::clean |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getIndex()
unsigned trklet::StubPairsMemory::getIndex |
( |
const unsigned |
i | ) |
const |
|
inline |
◆ getTEDName()
const std::string& trklet::StubPairsMemory::getTEDName |
( |
const unsigned |
i | ) |
const |
|
inline |
◆ getVMStub1()
const VMStubTE& trklet::StubPairsMemory::getVMStub1 |
( |
unsigned int |
i | ) |
const |
|
inline |
◆ getVMStub2()
const VMStubTE& trklet::StubPairsMemory::getVMStub2 |
( |
unsigned int |
i | ) |
const |
|
inline |
◆ nStubPairs()
unsigned int trklet::StubPairsMemory::nStubPairs |
( |
| ) |
const |
|
inline |
◆ writeSP()
void StubPairsMemory::writeSP |
( |
bool |
first, |
|
|
unsigned int |
iSector |
|
) |
| |
Definition at line 11 of file StubPairsMemory.cc.
15 std::ostringstream oss;
16 oss << dirSP <<
"StubPairs_" <<
getName() <<
"_" << std::setfill(
'0') << std::setw(2) << (
iSector_ + 1) <<
".dat";
17 auto const&
fname = oss.str();
21 out_ <<
"BX = " << (bitset<3>)
bx_ <<
" Event : " <<
event_ << endl;
23 for (
unsigned int j = 0;
j <
stubs_.size();
j++) {
24 string stub1index =
stubs_[
j].first.stub()->stubindex().str();
25 string stub2index =
stubs_[
j].second.stub()->stubindex().str();
27 out_ << std::setfill(
'0') << std::setw(2);
29 out_ <<
" " << stub1index <<
"|" << stub2index <<
" " <<
trklet::hexFormat(stub1index + stub2index) << endl;
References trklet::MemoryBase::bx_, TauDecayModes::dec, trklet::MemoryBase::event_, first, alignmentValidation::fname, trklet::MemoryBase::getName(), trklet::hexFormat(), trklet::MemoryBase::iSector_, dqmiolumiharvest::j, trklet::Settings::memPath(), trklet::openfile(), trklet::MemoryBase::out_, trklet::MemoryBase::settings_, and stubs_.
◆ indices_
std::vector<unsigned> trklet::StubPairsMemory::indices_ |
|
private |
◆ stubs_
std::vector<std::pair<const VMStubTE, const VMStubTE> > trklet::StubPairsMemory::stubs_ |
|
private |
◆ tedNames_
std::vector<std::string> trklet::StubPairsMemory::tedNames_ |
|
private |