#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, unsigned int iSector) |
|
void | writeSP (bool first) |
|
| ~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, unsigned int iSector) |
|
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, |
|
|
unsigned int |
iSector |
|
) |
| |
◆ ~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 | ) |
|
Definition at line 12 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();
23 if (not std::filesystem::exists(dirSP)) {
24 int fail = system((
string(
"mkdir -p ") + dirSP).c_str());
26 throw cms::Exception(
"BadDir") << __FILE__ <<
" " << __LINE__ <<
" could not create directory " << dirSP;
30 throw cms::Exception(
"BadFile") << __FILE__ <<
" " << __LINE__ <<
" could not create file " <<
fname;
35 out_ <<
"BX = " << (bitset<3>)
bx_ <<
" Event : " <<
event_ << endl;
37 for (
unsigned int j = 0;
j <
stubs_.size();
j++) {
38 string stub1index =
stubs_[
j].first.stub()->stubindex().str();
39 string stub2index =
stubs_[
j].second.stub()->stubindex().str();
41 out_ << std::setfill(
'0') << std::setw(2);
43 out_ <<
" " << stub1index <<
"|" << stub2index <<
" " <<
trklet::hexFormat(stub1index + stub2index) << endl;
References trklet::MemoryBase::bx_, TauDecayModes::dec, trklet::MemoryBase::event_, Exception, first, alignmentValidation::fname, trklet::MemoryBase::getName(), trklet::hexFormat(), trklet::MemoryBase::iSector_, dqmiolumiharvest::j, trklet::Settings::memPath(), 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 |