14 using namespace trklet;
25 stubs_.emplace_back(stubptr);
35 for (
unsigned int j = 0;
j <
stubs_.size();
j++) {
36 string dtcname =
stubs_[
j]->l1tstub()->DTClink();
37 int layerdisk =
stubs_[
j]->l1tstub()->layerdisk();
40 int start = dtcname.substr(0, 3) ==
"neg" ? 3 : 0;
43 string dtcbase = dtcname.substr(start, dtcname.size() - 2 -
start);
49 if (layerdisk == layers[
index]) {
57 string stub =
stubs_[
j]->str() +
"|" + ldcode.
str() +
"|1";
58 out_ << std::setfill(
'0') << std::setw(2);
66 for (
auto& stub :
stubs_) {
67 delete stub->l1tstub();
std::string memPath() const
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
std::vector< Stub * > stubs_
void openFile(bool first, std::string dirName, std::string filebase)
void writeStubs(bool first, unsigned int iSector)
std::string hexFormat(const std::string &binary)
Settings const & settings_
void addStub(const L1TStub &al1stub, const Stub &stub)
unsigned int maxStep(std::string module) const
DTCLinkMemory(std::string name, Settings const &settings, double, double)
const std::vector< int > & dtcLayers(const std::string &dtcName) const
void setl1tstub(L1TStub *l1tstub)